Troubleshooting

When I use nslookup interactively, I get the following error:

*** Can't find server name for address 127.0.0.1: Non-existent host/domain

Your DNS server is running, but you haven't correctly configured your localhost reverse lookup file. Remember that within the reverse file, your line citing 127.0.0.1 should look like this:

1.0.0.127.in-addr.arpa.         IN      PTR     localhost.

Note that the IP address is written backwards.

How can I tell if I'm using my caching name server?

First, make sure your /etc/hosts file has the following as the first name server line:

nameserver 127.0.0.1

Then, start nslookup with no arguments. Your default server should be localhost with address 127.0.0.1. If it's not, you're not using your local name server. ...

Get Special Edition Using Linux®, Sixth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.