Dear all,
I am using windows DNS server in my environment.
All windows clients can ping all linux and windows machines. but I can't ping from one Linux host to another Linux. Ping response is unknown host. However it is working fine with FQDN(eg: host1.linux.example.com).
I need to resolve only with hostname (eg host1.linux).
How to get it resolve.
Hostname resolution from one linux host to another linux hos
-
- Lance Naik
- Posts: 32
- Joined: Mon Dec 20, 2010 10:27 pm
- Location: Karachi
- Contact:
Re: Hostname resolution from one linux host to another linux
add the search or domain field to your /etc/resolv.conf files. for example
or
Code: Select all
nameserver 192.168.1.1
domain mycompany.com
Code: Select all
nameserver 192.168.1.1
search mysubdomain.mycompany.com mycompany.com
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
-
- Lance Naik
- Posts: 32
- Joined: Mon Dec 20, 2010 10:27 pm
- Location: Karachi
- Contact:
Re: Hostname resolution from one linux host to another linux
Thanks Lambda,
Adding search option in /etc/resolv.conf file fixed my issue.
Adding search option in /etc/resolv.conf file fixed my issue.