How to make nslookup work on Windows

When I needed to look up a hostname on Window I kept trying nslookup, but it gave the wrong result every time. I would login to a Linux box, run host, and be done with it. But I finally got fed up with not knowing why it didn’t work on Windows, so I researched the issue.

It turns out nslookup is more than just a command line utility – it’s a shell. Running nslookup will drop you to a shell where you can look up hostnames to your heart’s delight. But it still gave the wrong “Non-authoritative” result.

The solution? Add a period (.) after the hostname, hearkening back to the days of editing /etc/named.conf where a trailing period could mean the difference between a domain functioning properly and utter chaos.

Apparently nslookup on Unix and Linux requires the trailing period as well, but I’ve always used host and dig so I didn’t know.

In short, if nslookup isn’t working, throw a dot on the end.







Number of readers
- home
comics
news links
other links

about me
blog archives
docs
entertainment
experiences
funny lists
humor
intellectual
interests
metafilter
music
opinions
photos
web designs
tools
software
webmaster help

Sign up
Enter your email address to be notified of new posts



Search blog archives

Calendar
March 2009
S M T W T F S
« Feb   Apr »
1234567
891011121314
15161718192021
22232425262728
293031  







Random quote
(View all quotes)
"If anything can go wrong, it will and at the worst possible moment."










(?) Choose theme:  X X X X X X