Networking Forums

Networking Forums > Computer Networking > Linux Networking > Cannot resolve internet names from Redhat box

Reply
Thread Tools Display Modes

Cannot resolve internet names from Redhat box

 
 
Luk
Guest
Posts: n/a

 
      01-22-2004, 10:32 PM
Hi All

My problem is such. I have a network with 2 windows PCs and a redhat 7.3
machine connected all together and accessing the internet through a Nexland
adsl router. The router also acts as a DHCP server. The network is working
correctly and internet is accessible 100% from the 2 windows machines. The
only problem I have is that the Linux box will not resolve internet names. I
can ping external IPs ok but when I try to ping the actual name like
www.google.com it won't resolve the name.
I seem to have the appropriate entry in /etc/resolv.conf which points to the
router:
nameserver 192.168.0.1

Is there another setting somewhere that I need to look at to get this
working?

Cheers
Lukas


 
Reply With Quote
 
 
 
 
Al
Guest
Posts: n/a

 
      01-22-2004, 11:41 PM
"Luk" <(E-Mail Removed)> wrote in message
news:bupmkd$s7f$(E-Mail Removed)...
> Hi All
>
> My problem is such. I have a network with 2 windows PCs and a redhat 7.3
> machine connected all together and accessing the internet through a

Nexland
> adsl router. The router also acts as a DHCP server. The network is working
> correctly and internet is accessible 100% from the 2 windows machines. The
> only problem I have is that the Linux box will not resolve internet names.

I
> can ping external IPs ok but when I try to ping the actual name like
> www.google.com it won't resolve the name.
> I seem to have the appropriate entry in /etc/resolv.conf which points to

the
> router:
> nameserver 192.168.0.1
>
> Is there another setting somewhere that I need to look at to get this
> working?
>
> Cheers
> Lukas
>
>

Are you using DHCP from your router to get an IP address for this system?
I'm running 7.3 on another box behind a LinkSys router using DHCP and my
/etc/resolv.conf contains the IP addresses of my ISP's DNS servers. If you
set a static IP address for your box you will have to manually enter this
info, I don't think just having the gateway address in there will work.

Regards

Al


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.564 / Virus Database: 356 - Release Date: 1/19/04


 
Reply With Quote
 
Frank Winans
Guest
Posts: n/a

 
      01-22-2004, 11:55 PM
"Luk" wrote
> My problem is such. I have a network with 2 windows PCs and a redhat 7.3
> machine connected all together and accessing the internet through a Nexland
> adsl router. The router also acts as a DHCP server. The network is working
> correctly and internet is accessible 100% from the 2 windows machines. The
> only problem I have is that the Linux box will not resolve internet names. I
> can ping external IPs ok but when I try to ping the actual name like
> www.google.com it won't resolve the name.
> I seem to have the appropriate entry in /etc/resolv.conf which points to the
> router:
> nameserver 192.168.0.1

Make your router answer a sample dns query by doing
host -a www.google.com 192.168.0.1
The host command ignores resolv.conf anyway. I once saw an adsl router
that only answered dns queries from lan computers on dhcp leases, and if
your router ignores the host command, then neither will the linux name
service work.



 
Reply With Quote
 
Luk
Guest
Posts: n/a

 
      01-23-2004, 02:54 AM
Thanks Al, that was it.
My other problem was that in General Ethernet Settings I had "Automatically
detect DNS information from service provider" ticked and so every time I
tried to add entries in resolv.conf, upon restarting the network interface
all got wiped and substituted with my router IP. But once I have unticked
that box I was able to add my ISPs DNS server IP into the file as you
suggested and when I restarted the interface it then correctly resolved the
names.
Thanks!
Lukas

"Al" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> "Luk" <(E-Mail Removed)> wrote in message
> news:bupmkd$s7f$(E-Mail Removed)...
> > Hi All
> >
> > My problem is such. I have a network with 2 windows PCs and a redhat 7.3
> > machine connected all together and accessing the internet through a

> Nexland
> > adsl router. The router also acts as a DHCP server. The network is

working
> > correctly and internet is accessible 100% from the 2 windows machines.

The
> > only problem I have is that the Linux box will not resolve internet

names.
> I
> > can ping external IPs ok but when I try to ping the actual name like
> > www.google.com it won't resolve the name.
> > I seem to have the appropriate entry in /etc/resolv.conf which points to

> the
> > router:
> > nameserver 192.168.0.1
> >
> > Is there another setting somewhere that I need to look at to get this
> > working?
> >
> > Cheers
> > Lukas
> >
> >

> Are you using DHCP from your router to get an IP address for this system?
> I'm running 7.3 on another box behind a LinkSys router using DHCP and my
> /etc/resolv.conf contains the IP addresses of my ISP's DNS servers. If you
> set a static IP address for your box you will have to manually enter this
> info, I don't think just having the gateway address in there will work.
>
> Regards
>
> Al
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.564 / Virus Database: 356 - Release Date: 1/19/04
>
>



 
Reply With Quote
 
johnny bobby bee
Guest
Posts: n/a

 
      01-23-2004, 03:15 AM
Luk typed:

> Is there another setting somewhere that I need to look at to get this
> working?


glad you got yours working ... i'd hate to piggy-back off your question,
but nobody's responded to my query in comp.os.linux.misc so i thought i'd
try here, since it's similar to yours:

hey group,
i'm a bit stuck here. i've got an SMC7004VBR firewall/nat router that provides
dhcp/dns services to 3 pc's on my network. i've got a Mac OS X box and a
Windows XP box that have no problems when surfing (pages load instantly).
but on many occasions on my Linux (Mandrake 9.1) box, pages sometimes take
10+ seconds to load. this is with an ADSL connection. the status bar on
the bottom of the browser will say "resolving host slashdot.org" and will
stay that way for a few seconds then "transmitting" then "resolving" back
and forth for 10 seconds or more sometimes.

contents of /etc/resolv.conf:
cat /etc/resolv.conf
nameserver 192.168.2.1
(the above is the IP address of the SMC router)

i've tried adding other dns servers to /etc/dhclient.conf:
cat /etc/dhclient.conf
append domain-name-servers 137.82.1.1, 142.103.1.1;

(which are 2 dns servers of our local university. it doesn't seem to make
any difference.)

i've tried various combination(s) of starting/stopping services:
/etc/rc.d/init.d/network
/etc/rc.d/init.d/internet
killall dhclient
starting dhclient with 'dhclient'

the 2 other PC's never have the 'resolving' problem.
any other suggestions?



--
- Linux: the choice of a GNU generation
- free; as in free speech and free beer

remove '.eh' to email

 
Reply With Quote
 
Frank Winans
Guest
Posts: n/a

 
      01-23-2004, 02:53 PM
"johnny bobby bee" wrote
> i'm a bit stuck here. i've got an SMC7004VBR firewall/nat router that provides
> dhcp/dns services to 3 pc's on my network. i've got a Mac OS X box and a
> Windows XP box that have no problems when surfing (pages load instantly).
> but on many occasions on my Linux (Mandrake 9.1) box, pages sometimes take
> 10+ seconds to load. this is with an ADSL connection. the status bar on
> the bottom of the browser will say "resolving host slashdot.org" and will
> stay that way for a few seconds then "transmitting" then "resolving" back
> and forth for 10 seconds or more sometimes.
>
> contents of /etc/resolv.conf:
> cat /etc/resolv.conf
> nameserver 192.168.2.1
> (the above is the IP address of the SMC router)
>

And does host -a www.google.com 192.168.2.1 run instantly?
Have you investigated the linux box having an ip address conflicting with
some other computer on the lan.

 
Reply With Quote
 
johnny bobby bee
Guest
Posts: n/a

 
      01-23-2004, 05:57 PM
Frank Winans typed:

> And does host -a www.google.com 192.168.2.1 run instantly?


i just ran it and it came back instantly:
'Received 139 bytes from 192.168.2.1#53 in 118 ms'

> Have you investigated the linux box having an ip address conflicting with
> some other computer on the lan.


no conflicting IP's. infact, it's the only computer running now and even
though it returned that 'host' command back instantly, 'ping
www.apple.com' took over 12 seconds to get the first ping return then the
others came instantly. also browsing over to www.apple.com took over 10
seconds to download the entire page.



--
- Linux: the choice of a GNU generation
- free; as in free speech and free beer

remove '.eh' to email

 
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
hosts.allow does not resolve names Bit Twister Linux Networking 13 12-26-2007 08:53 AM
How to resolve names Norbert Kolvenbach Linux Networking 15 03-27-2007 04:33 PM
Some DNS names won't resolve ritterhaus@yahoo.com Linux Networking 3 03-20-2005 08:28 AM
Can Not Resolve Host names =?Utf-8?B?QXR0aWN1cyBGaW5jaA==?= Windows Networking 4 01-16-2005 10:11 PM
Windows 98 won't resolve DNS names Grant Home Networking 2 04-15-2004 05:14 PM



1 2 3 4 5 6 7 8 9 10 11