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 am having a very basic networking problem that I can't figure out.
The machine's hostname is 'bluespacedb' (as you can see from the shell output below) and I am using DHCP to get an ip address. As my DHCP server (an SMC barricade) is not doing DNS, I added the ip address and the hostname in /etc/hosts.
I could then ping the local machine, but the problem is that host does not work.
I verified that /etc/host.conf is set up to use the hosts file first. As far as i know that's all it takes to do dns lookups.
Any help is appreciated.
[root@bluespacedb etc]# hostname
bluespacedb
[root@bluespacedb etc]# more host.conf
order hosts,bind
[root@bluespacedb etc]# more hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.2.112 bluespacedb.localdomain bluespacedb
192.168.2.105 thunder
192.168.2.124 sonya
[root@bluespacedb etc]# ping -c 2 bluespacedb
PING bluespacedb (192.168.2.112) from 192.168.2.112 : 56(84) bytes of data.
64 bytes from bluespacedb (192.168.2.112): icmp_seq=0 ttl=255 time=241 usec
64 bytes from bluespacedb (192.168.2.112): icmp_seq=1 ttl=255 time=8 usec
--- bluespacedb ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/mdev = 0.008/0.124/0.241/0.117 ms
[root@bluespacedb etc]# host bluespacedb
Host bluespacedb. not found: 3(NXDOMAIN)
I think that "host" is specifically designed to use a DNS server (by default, the one listed in /etc/resolv.conf). If the ping command is resolving the name of the system correctly I wouldn't worry about it.
Not so sure if I need not worry about it. I ran into the problem while I was running oracle's database configuration assistant and it said: "Thrown when the IP address of host cannot be determined". I am assuming it is using the host command as that's the one that is not working.
Regarding /etc/sysconfig/netword and /etc/sysconfig/network-scripts/ifcfg-eth0:
I did found posts like that on several sites but I have no such directories. I am installing on RedHat Linux Advanced Server 2.1.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.