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.
On my linux boxes I can ping by IP# but not by name (ie. zen.vv.local)
On my Windows machines I can ping the servers via name and by IP#.
my nslookup comes back correctly
I can do a traceroute and it comes back correctly.
any suggestions? it is only not working on my SUSE Linux servers.
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541
Rep:
You need an entry in /etc/resolv.conf containing one (preferably two) DNS server addresses; your ISP ought to provide DNS service or check for open DNS servers on Google.
The Google Dynamic Name System (DNS) servers are free to use. The entry in /etc/resolv.conf would look like this:
Code:
search com
nameserver 8.8.8.8
nameserver 8.8.4.4
You do not need any more than two entries in that file.
For you local machines, if you're using fixed-IP addressing (or have set an address in your DHCP configuration), add entries of this form for them in /etc/hosts:
I do have my local DNS IP and my state IP#'s in the etc/resolv file
I added one of my OES servers in the /etc/hosts file on my dns server and I was able to ping it by name then. So that helps, but doesn't tell me what the problem is, and it still doesn't let me ping my xp workstations from this server via name, just IP#.
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541
Rep:
I may be a little confused -- in your /etc/resolv.conf file there should only be DNS server addresses (generally a maximum of three). Keep in mind that /etc/resolv.conf is for access to the Internet Domain Name System (DNS), not really for LAN resolution (but, yeah, it can be used that way, sorta, kinda). Your entries will be in descending order the closest DNS server electrically to you, followed by a second, followed by a third (usually unnecessary) where if the first is not available the second will be used (and if the second is not available the third will be used). If the first DNS server is not available it takes some time before the resolver switches to the second and so on.
/etc/hosts, on the other hand, is a separate mechanism (no DNS required) and is useful for locating addresses by name on your LAN; /etc/resolv.conf is for the outside world, /etc/hosts is for the inside world. If the address and name are in /etc/hosts, you won't be looking at a DNS server at all; quick like a bunny that.
It's also useful if you have Ethernet printers (or plotters or other devices) with fixed-IP addresses in /etc/hosts -- you can ping any device by name without ever touching a DNS server.
There is, of course, more to it and you can scan through the manual pages for hosts and resolv.conf for more complete information but, basically, use /etc/hosts for the inside and /etc/resolv.con for the outside and life will be less complicated.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.