11.01.2013 Views

Workshop

Workshop

Workshop

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Name Game<br />

Previous Table of Contents Next<br />

Without name services, very little works. Although you can usually rule out a name service problem by<br />

trying the same operation by IP address rather than name, name services that fail to work on the server<br />

end can be tricky.<br />

It’s important to realize that existing connections will continue to work; it’s only new ones that will<br />

typically fail.<br />

A UNIX host typically performs a name lookup to whatever its name resolution host is after the<br />

connection is established in order to get the symbolic identity of the caller. Therefore, if name services<br />

have a problem, this can cause a domino effect that causes problems for other services.<br />

I see a lot of problems in the field that are DNS related, even though some of them don’t seem to be at<br />

first. For example, after a name server dies on a given UNIX host, Telnet sessions to that host can take a<br />

long time to show a login prompt. That is, even though the connection is accepted, and the netstat<br />

–an output shows there’s a connection, something prevents the login prompt from being issued.<br />

That something is the DNS server. The Telnet server is configured to look up all connecting Telnet<br />

addresses after they connect; although the name server is dead, the Telnet service keeps trying before it<br />

issues a login prompt. Depending on the operating system and Telnet implementation, this can result in<br />

long delays.<br />

nslookup<br />

The tool for checking name services is called nslookup. As the name implies, it can contact a name<br />

server (hence the ns in nslookup) and look up information from it. If you know your UNIX host is<br />

running named and should be answering name queries from itself and others, you can type this:<br />

nslookup hostname hostname<br />

You should get a response. If you get an error message, the named that runs on hostname is likely<br />

down.<br />

Note that you can use nslookup on any host, not just the one that you’re logged into.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!