Bluehost.com Web Hosting $6.95

Name resolution problem on redhat 9 box

This is a discussion on Name resolution problem on redhat 9 box within the Linux Networking forums, part of the Linux Forums category; Hi, My Redhat 9 Linux box today developed a domain name resolution problem. First of all lemme tell you about ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-05-2004
Muhammad Ahsan
 
Posts: n/a
Default Name resolution problem on redhat 9 box

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 Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 11:25 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0