- Before connecting, a program gets the address from the resolver:
getent hosts nameshows what it found. - The resolver looks for the name in
/etc/hosts, then asks the DNS server from thenameserverline in/etc/resolv.conf. dig @server nameasks one server directly.NXDOMAINis the server's answer; "no servers could be reached" means no answer came back.- Fix the source of the setting — the
nameserverline; an/etc/hostsline merely hides the fault. - The site at the start of the lesson was working, and the DNS server knew the name: the resolver was asking the wrong server.
Step 8 of 8 · summary · 2 min
Summary
Found an inaccuracy? Report an error in the lesson