nslookup returns local ip when resolving another servers fqdn on same subnet
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
nslookup returns local ip when resolving another servers fqdn on same subnet
Hi,
I have a server (192.168.1.19) running redhat es2.1, it is on a private subnet (192.168.1.0/24) with two other redhat es2.1 machines, 192.168.1.20 and 192.168.1.21. All three are nat'd to public IP's which are pointed to from public DNS. When I try to resolve the fqdn for the other two servers I get their private IP's as the reponse. I cannot figure out where this information is coming from; the private addresses are not in DNS (the publics are in DNS), and the /etc/hosts file only contains the private IP of the server on which it resides and does not contain private IP's for the other two. This problem is identical on all three redhat machines. Resolving these machine's fqdn from anywhere else works fine.
Does anyone know what might be going on with this?
Thanks in advance for any wisdom...
excerpt from /etc/nsswitch.conf
hosts: files nisplus dns
/etc/host.conf
order hosts,bind
/etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
204.144.131.19 storm.criticaldatagroup.com storm
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.