LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-02-2006, 12:49 PM   #1
Emma77
Member
 
Registered: Mar 2006
Location: England
Distribution: Debian
Posts: 43

Rep: Reputation: 16
Can't resolve hostnames


Hello again, linuxquestions.org users.

I'm back with another problem. I've installed a new router, but as soon as i did i lost the ability to resolve hostnames. (I've had to use windows to log into here!)

The new topography is:

(cloud)
|
82.69.9.203
(new router)
10.0.0.1
|
10.0.0.2
(old router)
192.168.1.1
|
(switching hub)
| | | |
(all my computers)

It used to work, i can't understand why it no longer does.
Anyone got any ideas?
 
Old 08-02-2006, 12:59 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Well, what does resolv.conf look like on your machine?
 
Old 08-02-2006, 01:04 PM   #3
Emma77
Member
 
Registered: Mar 2006
Location: England
Distribution: Debian
Posts: 43

Original Poster
Rep: Reputation: 16
I've been playing about with that, trying to find a solution:

cat /etc/resolve.conf
nameserver 212.23.3.100
nameserver 10.0.0.1
nameserver 192.168.1.1

The first one is the DNS ip provided by my ISP.
I've tried these in various order, no effect.
At first i thought it was a routing issue, but all the other machines work fine. (they all use 10.0.0.1 for DNS).
 
Old 08-02-2006, 02:18 PM   #4
gizza23
Member
 
Registered: Jun 2005
Location: Chicago, IL, USA
Distribution: Fedora Core, CentOS
Posts: 188

Rep: Reputation: 31
Two things I would check here:

1. Make sure that the ethernet s plugged into the right ports on your routers.
2. See if you can ping these addresses.
 
Old 08-02-2006, 02:38 PM   #5
Emma77
Member
 
Registered: Mar 2006
Location: England
Distribution: Debian
Posts: 43

Original Poster
Rep: Reputation: 16
Yeah, i can ping anything, by IP. All over the world! Just can't resolve hostnames. ***commences hair pulling***
 
Old 08-02-2006, 02:45 PM   #6
gizza23
Member
 
Registered: Jun 2005
Location: Chicago, IL, USA
Distribution: Fedora Core, CentOS
Posts: 188

Rep: Reputation: 31
Are you sure that your wiring is correct?
 
Old 08-02-2006, 03:28 PM   #7
Emma77
Member
 
Registered: Mar 2006
Location: England
Distribution: Debian
Posts: 43

Original Poster
Rep: Reputation: 16
Yes, i just checked again. Absolutely correct. It's just as the diagram. The only difference, the Debian machine uses a static IP, 192.168.1.129, instead of DHCP like everything else.

As i write: Someone told me just now to type nslookup google.com, which i did and it reported this:
nslookup google.com
Server: 194.168.4.100
Address: 194.168.4.100#53

** server can't find google.com: REFUSED

That's the IP of my old DNS at my old ISP. Where's that coming from, since it's not mentioned in /etc/resolve.conf?
 
Old 08-02-2006, 03:33 PM   #8
gizza23
Member
 
Registered: Jun 2005
Location: Chicago, IL, USA
Distribution: Fedora Core, CentOS
Posts: 188

Rep: Reputation: 31
The diagram doesn't show what plugs into WAN and numbered ports, that was why I asked. here's a trick,
Code:
nslookup www.google.com ns1.yahoo.com
this command will use yahoo's server as the DNS server. if you can hit that you can eliminate all outbound traffic from your broadband modem to your laptop. You may want to try this for your ISP's DNS server as well.
 
Old 08-02-2006, 03:35 PM   #9
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
What does your "old router" have set as its DNS server IPs?
 
Old 08-02-2006, 03:53 PM   #10
Emma77
Member
 
Registered: Mar 2006
Location: England
Distribution: Debian
Posts: 43

Original Poster
Rep: Reputation: 16
nslookup www.google.com ns1.yahoo.com
nslookup: Couldn't find server 'ns1.yahoo.com': Temporary failure in name resolution

This doesn't suprise me, since it won't be able to resolve the yahoo nameserver. But using the IP of ns1.yahoo.com does suprise me, because i would've thought that'd work.

nslookup www.google.com 66.218.71.63 Server: 66.218.71.63
Address: 66.218.71.63#53

Non-authoritative answer:
*** Can't find www.google.com: No answer

"Old Router" has this configuration:
Physical Address: 00-e0-98-4e-2f-43
IP Address: 10.0.0.2
Network Mask: 255.0.0.0
Default Gateway: 10.0.0.1
DNS IP Address: 10.0.0.1
DHCP Client: OFF

Does any of that help?
==========
STOP PRESS:
I just tried this:

nslookup www.google.com 10.0.0.1
Server: 10.0.0.1
Address: 10.0.0.1#53

Non-authoritative answer:
www.google.com canonical name = www.l.google.com.
Name: www.l.google.com
Address: 216.239.59.99
Name: www.l.google.com
Address: 216.239.59.103
Name: www.l.google.com
Address: 216.239.59.104
Name: www.l.google.com
Address: 216.239.59.147

That's an improvement. What i think i need to do is replace the 194.168.4.100 with 10.0.0.1, but i can't figure out where it's coming from.

Last edited by Emma77; 08-02-2006 at 03:57 PM.
 
Old 08-02-2006, 04:13 PM   #11
Emma77
Member
 
Registered: Mar 2006
Location: England
Distribution: Debian
Posts: 43

Original Poster
Rep: Reputation: 16
Ahem, right, this is really embarrasing. I've been using /etc/resolve.conf, which i must've created by accident. I just noticed (at the bottom of this page) a similar thread which mentions /etc/resolv.conf. I must've created the one with an extra 'e' by mistake in all my hair pulling the other night.

*That's* where the 194.168.4.100 is coming from! I've changed that to 10.0.0.1 and am now resolving hostnames perfectly.

Sorry to have put you through this. I'm very new to linux. If someone hands me a gun i'll now go off and shoot myself. I think i just proved that thing about being blonde.

Thanks for all your help.
 
Old 08-02-2006, 04:14 PM   #12
gizza23
Member
 
Registered: Jun 2005
Location: Chicago, IL, USA
Distribution: Fedora Core, CentOS
Posts: 188

Rep: Reputation: 31
Good catch on the ns1.yahoo.com thing!!!



Happy surfing
 
Old 08-02-2006, 04:31 PM   #13
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Quote:
Originally Posted by Emma77
Ahem, right, this is really embarrasing. I've been using /etc/resolve.conf, which i must've created by accident. I just noticed (at the bottom of this page) a similar thread which mentions /etc/resolv.conf. I must've created the one with an extra 'e' by mistake in all my hair pulling the other night.

*That's* where the 194.168.4.100 is coming from! I've changed that to 10.0.0.1 and am now resolving hostnames perfectly.

Sorry to have put you through this. I'm very new to linux. If someone hands me a gun i'll now go off and shoot myself. I think i just proved that thing about being blonde.

Thanks for all your help.
Everyone seems to make that mistake once or twice. I have yet to figure out why libresolv is named such (and thus /etc/resolv.conf).

Would the 'E' really have killed the typing? :-P
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FC4: cannot resolve hostnames on local network pyepye Linux - Networking 12 04-05-2006 12:29 PM
Cannot resolve hostnames BobBuchanan Linux - Networking 1 02-12-2005 05:56 PM
Can't resolve hostnames....need help shaggystyle Linux - Networking 2 08-28-2004 02:20 AM
pppoe seems to connect but cant resolve hostnames mecister Linux - Networking 2 06-23-2004 06:32 PM
resolve hostnames zero_kewl Linux - General 5 09-01-2003 04:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration