1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Resolved Odd driver\etc\host problem

Discussion in 'Networking (Hardware & Software)' started by gw1500se, 2012/05/11.

  1. 2012/05/11
    gw1500se

    gw1500se Well-Known Member Thread Starter

    Joined:
    2003/01/10
    Messages:
    444
    Likes Received:
    0
    I have a LAN with several nodes on it with static IPs. For a couple of years I have had them all defined in the host file on my XP machine and access worked just fine. I recently migrated a Linux machine from Mandriva to CentOS. When I did the migration I assigned the same static IP address to the new OS, yet I can no longer access that host by name from XP (no changes there). A 'tracert' returns an unable to resolve target system name error. Accessing all the other nodes by name still work fine. I can only access the new OS by IP. I have no clue why changing the OS would prevent XP from using the host file but obviously something has changed. Can anyone help me trouble shoot this? TIA.
     
  2. 2012/05/11
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,072
    Likes Received:
    400
    Try flushing dns cache.
     

  3. to hide this advert.

  4. 2012/05/11
    gw1500se

    gw1500se Well-Known Member Thread Starter

    Joined:
    2003/01/10
    Messages:
    444
    Likes Received:
    0
    Thanks for the suggestion but no joy.
     
  5. 2012/05/11
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,072
    Likes Received:
    400
    That you can access the linux system by ip address indicates that it may not ne a networking issue. Check the /etc/hostname file and verify the name is correct. It may be case sensitive.
     
  6. 2012/05/12
    gw1500se

    gw1500se Well-Known Member Thread Starter

    Joined:
    2003/01/10
    Messages:
    444
    Likes Received:
    0
    Thanks again. It is accessible by name from other systems so it has to be something with this particular XP.
     
  7. 2012/05/13
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,072
    Likes Received:
    400
    Try flushing the NetBios cache:
    nbtstat -r

    But you should first run netstat -a and check if there any existing connections to the other computer (done by using its IP address as you mentioned above). Kill any existing connections by logging off Windows and logging back on, then flush the caches.
     
  8. 2012/05/13
    gw1500se

    gw1500se Well-Known Member Thread Starter

    Joined:
    2003/01/10
    Messages:
    444
    Likes Received:
    0
    Thanks but still no joy.
     
  9. 2012/05/14
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,072
    Likes Received:
    400
    Check the routers tables if possible, remove any mandriva comps min client lists.
     
  10. 2012/05/18
    gw1500se

    gw1500se Well-Known Member Thread Starter

    Joined:
    2003/01/10
    Messages:
    444
    Likes Received:
    0
    Thanks for the reply. I am not sure I understand what you are suggesting. Do you mean 'netstat -rn'? That looks normal to me. If you are talking about something else, I don't know what "mandriva comps min client lists" are or how to find any.
     
  11. 2012/05/18
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,072
    Likes Received:
    400
    My typo, it should have said:

    Check the routers tables if possible, remove any mandriva comps in client lists.

    Login to your router, it will have client tables. Check if the "old Linux" system is in any tables and if possible, remove.

    Also, any a security software on Windows comp may be preventing access, e.g. Windows Firewall, antimalware apps, etc.
     
  12. 2012/05/18
    gw1500se

    gw1500se Well-Known Member Thread Starter

    Joined:
    2003/01/10
    Messages:
    444
    Likes Received:
    0
    I didn't think about the router. However, I have a Linksys and I do not see a way to get or clear any cached data. I did try to reset the router but that didn't help. Its my opinion that the hostname is never really being resolved in the XP host. It behaves like it is simply ignoring that entry in the host table.
     
  13. 2012/05/20
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,072
    Likes Received:
    400
    Agreed.
    Either there's a 3rd party program that hooks into hosts file lookups, such as Internet security apps or anti-malware apps. These usually work by write protecting the hosts file though.

    Try going to control panel/admin tools/services and set the DNS Client Service to manual and stopped. It's buggy & not needed anyway. This is the service that is responsible for caching DNS names, but it's not that reliable.
     
  14. 2012/05/20
    gw1500se

    gw1500se Well-Known Member Thread Starter

    Joined:
    2003/01/10
    Messages:
    444
    Likes Received:
    0
    I suppose that was a long shot at best but still no success. I think I need to more closely analyze how I got to this point. Previously everything was working as expected. I then migrated my Linux to a new distro. Post install my Windows XP SEEMINGLY can no longer resolve the original name of the Linux box into an IP. However, I can access it fine with the IP address. So what are the possibilities? Since the only thing that changed was the Linux box it seems logical that the problem lies there. I am going to have to pursue it from that point (CentOS forum) next but I might be back. In the mean time thanks for all the replies.
     
  15. 2012/05/24
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,072
    Likes Received:
    400
    Can you map the partition from xp?
     
  16. 2012/05/24
    rsinfo

    rsinfo SuperGeek Alumni

    Joined:
    2005/12/25
    Messages:
    4,076
    Likes Received:
    178
    What's the hostname of your Linux box ? It should be computername.domainname & NOT localhost.localdomain
     
  17. 2012/05/26
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,072
    Likes Received:
    400
    agreed, and domainname on linux == workgroup on windows. (in not a fqdn)
     
  18. 2012/06/19
    gw1500se

    gw1500se Well-Known Member Thread Starter

    Joined:
    2003/01/10
    Messages:
    444
    Likes Received:
    0
    TonyT nailed it. This indeed turned out to be a Workgroup issue. The Samba config on the Linux machine had the workgroup misspelled (typo). It seems that Windows XP does not use the host file at all.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.