Hi onebuck, thanks for the tips. My distro is CentOS 5.3. I am using this box as a webserver. My NIC is embedded and there is no problem with the physical connection as i can connect to this machine remotely. I can access the other machines using their ip address from this machine but not with their domain name. When i do the follwing in this machine this is the results:
First:
# /etc/rc.d/init.d/network restart
Shutting down interface eth1: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth1: RTNETLINK answers: File exists
Error adding address (ip) for eth1.
[ OK ]
Second:
$ ping
www.google.com
ping: unknown host
www.google.com
Third:
#vi /etc/resolv.conf
# Generated by NetworkManager
# No nameservers found; try putting DNS servers into your
# ifcfg files in /etc/sysconfig/network-scripts like so:
#
# DNS1=xxx.xxx.xxx.xxx
# DNS2=xxx.xxx.xxx.xxx
# DOMAIN=lab.foo.com bar.foo.com
In the third case when i put the nameservers manually and restart the network the same results comes.
Any help will be appreciated. Thanks