4 ms·
> In theory, the `whois example.com` command should fail with NXDOMAIN (Non-eXisting Domain) error Huh? No, it shouldn't. Example domains are, according to the
by vertex-four 12y ago
> In theory, the `whois example.com` command should fail with NXDOMAIN (Non-eXisting Domain) error
Huh? No, it shouldn't. Example domains are, according to the RFC, permanently registered to IANA, although not through the "normal channels" (I suppose they don't have to pay for them).
example.com and other example domains resolve correctly wherever you are. They are not treated specially in any way (or shouldn't be, according to the RFC) aside from that they're permanently registered to IANA and that application developers should understand that they're example domains. The RFC does not prevent IANA from running any services on example domains, and they choose to run an HTTP server.
- jcr 12y agoYou're right about the "example.com" and similar domains always being registered to IANA, and I even did a brain-fade on whois/nslookup in my comment, but as far as I remember, the example domains are never supposed to resolve to an IP? I'll look at this again after I get some sleep.
- gpvos 12y agoThey used not to resolve in the far past. Apparently they decided otherwise later.