Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have an application that references the database connection via a common alias, let's say datatier, and futher that alias is generally stored in the HOSTS file. However, it's not in the HOSTS file on this server I'm working with.

Two questions:

  1. Where else could the alias be stored?
  2. Is there a way I can determine the IP anyway?

P.S. -- I've tried running an nslookup datatier to determine the IP address but that didn't work.

Thanks all!

share|improve this question
up vote 1 down vote accepted

You can't use nslookup for things like hosts file entries. However, first idea coming to my mind is starting a simple ping: ping datatier

Even if the host doesn't answer or you cancel using Ctrl+C, it should print the IP address of the host as it's been resolved/determined by whatever means.

share|improve this answer
OK, so that got me the IP address ... where else could that alias be stored? – Mike Perrenoud Nov 28 '12 at 11:18
It might be cached by Windows and possibly be returned by a non-standard DNS (i.e. not the ones set as the default DNS in your TCP/IP configuration). By default nslookup will only query the standard DNS servers. You could try clearing the cache using ipconfig /flushdns, then try pinging again. – Mario Nov 28 '12 at 11:21
OK, well I'll go down that road and see what I find -- however, you got me exactly what I needed, the IP address, thanks for your help Mario! – Mike Perrenoud Nov 28 '12 at 11:24

If nslookup isn't providing the answer, and it isn't in the hosts file, then netbios is the most likely resolution protocol being used given it is Windows.

Try nbtstat -a datatier

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .