Hard to locate hostnames

If you've got a large mixed environment you can't depend on one naming service to know everyone on the network. Whether it's the old WINS or DNS as your main server, some machines will fall through. If they are coming in from the outside, they are almost always going to be in DNS somewhere. It's just tough to find out where. There are some machines that I still haven't found names for, but here is what I do.
I start with the obvious -- simple nslookups with your default name server. No need to work any harder than you have to.

If that fails then follow these steps:

1. Try querying for a SMB name (WINS/ Samba/LANManager...) via these commands:
on winDOS/NT: 'nbtstat -A'
on samba machine: 'nmblookup -A'

2. Get down and dirty with nslookup and whois when a machine is out on the internet.
$whois 10.10.10 #using network portion of the IP address and not the host
{Sometimes, inexplicably, this doesn't go a strong query. If that happens go to

    Requires Free Membership to View

http://www.arin.net/whois/index.html. At any rate you can get the specific information you need, or at least who the parent of that subnet is. Then use that info in some whois and/or nslookup queries.)

>set q=ns #queries to name servers
>set q=any

This was first published in May 2001

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.