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.
I'm running RH 9 at work and it seems my DNS entry is not working. I'm pointing to my corporate internal DNS server but it's still not resolving any internal device names. The same DNS server works properly for 1000+ other PCs so I know it's not a DNS server issue.
I checked following file contents, which seem correct:
resolv.conf
nameserver 10.200.10.200
host.conf
order hosts,bind
I can ping the DNS server by IP and all other devices by IP as well. If I enter some device name & IPs into the hosts file, only then can I ping them by name.
I have a feeling this problem is also screwing up my ability to map from Linux to Windows shares as that is also not working but worked for me before.
"I'm pointing to my corporate internal DNS server but it's still not resolving any internal device names."
I think that you have to point at your DNS twice, once by letter name and once by number name. Try something like this:
resolv.conf
search corp.dns.net
nameserver 10.200.10.200
or perhaps:
resolv.conf
domain corp.dns.net
nameserver 10.200.10.200
I am just guessing here, but have you tired running dhclient __interface__ or dhcpcd __interface__, where __interface__ is the valid network interface that you are trying to connect through? It worked for me.
Thanks for all the feedback, folks! Here's the results of testing.
jojuof,
The dig cmds you suggested worked, as you stated but still no internal resolution is working.
MS3FGX,
We are all DNS. We've retired WINS years ago.
sonajiso,
I ran /sbin/dhclient eth0 as root but that changed me from a static IP to DHCP assigned IP address, which I don't want (sorry , I didn't mention that previously). Regardless, that change didn't resolve the DNS problem.
While trying all of the above, I just found the problem but not sure how to fix it yet. From my Win PC, I see that i have a "primary dns suffix" of "us.myco" and a "connection-specific dns suffix" of "ny.us.myco" so when i try to ping from windows pc's to server1, it appends the us.nyco to the end and successfully resolves.
Now, from Linux, when I try to ping server1 along, it fails. If I ping server1.us.myco, it works. Some servers only work when I ping them via server2.ny.us.myco maybe because they're in a different site.
In either case, where/how can I enter the 2 suffix commands I listed above that are in my Win box into Linux? That should resolve my resolution problems!!
I was entering them through the Network Config --> DNS Search Path but they weren't all working there. I must've been seperating them with the wrong character (using comma instead of space).
FYI, making this change broke my ability to reach websites (either through the browser or dig cmd). I had to reverse the order to resolve this problem. See my new resolv.conf contents below:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.