Jump to content

Strange behaviour resolving hostname


Recommended Posts

I have a strange problem on my XP workstation at home. It seems that sometimes when I open a cmd window and try to reach a host I can't resolve the name.

If I ping a hostname then I get

ping hostname
Ping request could not find host hostname. Please check the name and try again.

but when I immediately do

nslookup hostname
Server: dns1.mydomain.com
Address: 10.0.0.8

Name: realname.mydomain.com
Address: 10.0.0.8
Aliases: hostname.mydomain.com

it shows dns working fine. If I then repeat the ping command expecting it to find the host it again fails the same.

I am a dns administrator and am very confident regarding how this is supposed to work. I don't see why it fails to resolve the host when it worked fine a few mins ago. I am convinced this is a problem with the workstation.

I have checked the hosts file to make sure there is nothing short circuiting the name resolution method and can see that the file is empty.

The dns server is not loaded, it is connected to the same 100Mbit switch as the workstation and there is no other heavy traffic going on at the time.

I just flushed the cache and it works again now. But I don't understand how this could happen. This setup is very simple compared to what I usually do. At exactly the same time I try these things from my Linux laptop it works fine showing that the problem appears to be confined to this workstation.

The next time this happens I will look at the actual dns cache itself (can't now since I just flushed it - Doh).

Any ideas or feedback welcome.

Link to comment
Share on other sites

I have checked the hosts file to make sure there is nothing short circuiting the name resolution method and can see that the file is empty.

I trust it contains

127.0.0.1 localhost

Not that this could be an issue, but you did say it was empty :)

What do you do before the lookup fails? Have you tried it immidiatley upon recieving an IP address, or is it after a while?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy