Networking Forums

Networking Forums > Computer Networking > Linux Networking > Name resolution problem on redhat 9 box

Reply
Thread Tools Display Modes

Name resolution problem on redhat 9 box

 
 
Muhammad Ahsan
Guest
Posts: n/a

 
      02-04-2004, 10:01 PM
Hi,

My Redhat 9 Linux box today developed a domain name resolution
problem. First of all lemme tell you about the small home network to
which this box is attached. I have an SMC Barricade router connected
to the outside world. This SMC box is configured to provide ip address
by dhcp to four computers on the network as well as act as a
nameserver. I have two computers (one of which is the linux box) in
one room which are connected to a hub and that hub then connects to
the SMC box. Now the problem (which started after installing lynx on
the linux box) is that it cannot resolve any domain names. Here are
some of the settings which seem fine to me

/etc/resolv.conf
; generated by /sbin/dhclient-script
nameserver 192.168.2.1 # Yes thats the ip address for the smc box
search localdomain

/etc/sysconfig/network
NETWORKING=yes
HOSTNAME=localhost.localdomain

/etc/nsswitch.conf
#hosts: db files nisplus nis dns
hosts: files dns

/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp

netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window
irtt Iface
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0
0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0
0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0
0 lo
0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0
0 eth0

Now in this setup i can reach any computer on the internet using its
ip address. However when i use domain names, things doesn't work. Even
host -a www.google.com 192.168.2.1 doesn't work, but as soon as I do
dig 192.168.2.1 www.google.com whoa! everything starts working nicely
i.e. i can ftp or browse or ping using names. Now if i reboot the
computer, it gets back into same state of not knowing how to resolve
names and i have to do the dig trick again to make things work. Just
for the info all the other three computers on network are windows
machines and have no problem resolving names. Even the linux box never
had this problem until I installed lynx today (problem doesn't go even
if i uninstall lynx now). Does anyone know what is happening here?

Thanks
Ahsan
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Name resolution problem Dave Rudisill Wireless Internet 5 01-06-2006 04:04 PM
name resolution problem Leif PD Windows Networking 0 06-23-2005 12:08 PM
DNS Resolution problem. HELP! plh Windows Networking 3 07-23-2004 07:49 PM
name resolution problem, KC Lee Windows Networking 0 06-04-2004 03:43 AM
98 to XP name resolution problem Lakshman Windows Networking 1 07-23-2003 11:25 AM



1 2 3 4 5 6 7 8 9 10 11