to ensure that you don't join the ranks of the miscreants.
The first step is to use host to look up your
zone's NS records on a name server for your parent zone and
make sure they're correct. Here's how we would check the
fx.movie.edu NS records on
one of the movie.edu name
servers:
% host -t ns fx.movie.edu. terminator.movie.edu.
If everything's okay with the NS records, we'll simply
see them in the output:
fx.movie.edu NS bladerunner.fx.movie.edu
fx.movie.edu NS outland.fx.movie.edu
This tells us that all the NS records delegating fx.movie.edufrom
terminator.movie.eduare correct.
Next, we'll use host 's "SOA
check" mode to query each of the name servers in the NS records
for the fx.movie.edu
zone's SOA record. This will also check whether the response
was authoritative:
% host -C fx.movie.edu.
Normally, this produces the NS records just listed, along with the
contents of the fx.movie.eduzone's SOA record:
fx.movie.edu NS bladerunner.fx.movie.edu
bladerunner.fx.movie.edu hostmaster.fx.movie.edu (1 10800 3600 608400 3600)
fx.movie.edu NS outland.fx.movie.edu
bladerunner.fx.movie.edu hostmaster.fx.movie.edu (1 10800 3600 608400 3600)
If one of the fx.movie.edu
name servers -- say outland -- were misconfigured, we
might see this:
fx.movie.edu NS bladerunner.fx.movie.edu
fx.movie.edu NS outland.fx.movie.edu
fx.movie.edu SOA record currently not present at outland.fx.movie.edu
fx.movie.edu has lame delegation to outland.fx.movie.edu
This indicates that the name server on outlandis running,
but it's not authoritative for fx.movie.edu.
If one of the fx.movie.edu
name servers weren't running at all, we'd see:
fx.movie.edu NS bladerunner.fx.movie.edu
bladerunner.fx.movie.edu hostmaster.fx.movie.edu (1 10800 3600 608400 3600)
fx.movie.edu NS outland.fx.movie.edu
fx.movie.edu SOA record not found at outland.fx.movie.edu, try again
In this case, the try again message indicates
that hostsent outlanda query and
didn't get a response back in an acceptable amount of time.
While we could have checked the fx.movie.edudelegation using nslookup,
host 's powerful command-line
options make the task especially easy.