0

I have a virtual Windows 2008 domain controller with Dynamic IP and a CentOS box in the same network. I have created host record entries for the Linux server in both FLZ and RLZ on the Windows Server. However I cannot ping the Windows Server from the Linux Server using the Windows hostname.

I would prefer to ping the Windows Server by hostname without creating an entry for the Windows server under /etc/hosts file. Is there a way to do the same ?

0

Are you using the netbios name or the fully qualified domain name? If you want to use netbios names your going to need to specify a 'search domain' in your /etc/resolv.conf file. For example if you have a machine 'dev.example.org' and want to access it by just giving 'dev' you would need to add the following line to your /etc/resolv.conf file:

search example.org

You will also want to make sure that /etc/resolv.conf contains the correct DNS servers.

|improve this answer|||||
  • That did the trick. I didn't have to change my DC to static IP. Thanks a bunch. – user24715 Nov 3 '09 at 11:43
0

What server does the linux box use for DNS? (check /etc/resolv.conf)

If you give it the IP of the Windows DC then it should work. However, that requires a static IP for the DC.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy