Debian This forum is for the discussion of Debian Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-02-2006, 12:49 PM
|
#1
|
|
Member
Registered: Mar 2006
Location: England
Distribution: Debian
Posts: 43
Rep:
|
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?
|
|
|
|
08-02-2006, 12:59 PM
|
#2
|
|
Moderator
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,505
Rep: 
|
Well, what does resolv.conf look like on your machine?
|
|
|
|
08-02-2006, 01:04 PM
|
#3
|
|
Member
Registered: Mar 2006
Location: England
Distribution: Debian
Posts: 43
Original Poster
Rep:
|
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).
|
|
|
|
08-02-2006, 02:18 PM
|
#4
|
|
Member
Registered: Jun 2005
Location: Chicago, IL, USA
Distribution: Fedora Core, CentOS
Posts: 188
Rep:
|
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.
|
|
|
|
08-02-2006, 02:38 PM
|
#5
|
|
Member
Registered: Mar 2006
Location: England
Distribution: Debian
Posts: 43
Original Poster
Rep:
|
Yeah, i can ping anything, by IP. All over the world! Just can't resolve hostnames. ***commences hair pulling***
|
|
|
|
08-02-2006, 02:45 PM
|
#6
|
|
Member
Registered: Jun 2005
Location: Chicago, IL, USA
Distribution: Fedora Core, CentOS
Posts: 188
Rep:
|
Are you sure that your wiring is correct?
|
|
|
|
08-02-2006, 03:28 PM
|
#7
|
|
Member
Registered: Mar 2006
Location: England
Distribution: Debian
Posts: 43
Original Poster
Rep:
|
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?
|
|
|
|
08-02-2006, 03:33 PM
|
#8
|
|
Member
Registered: Jun 2005
Location: Chicago, IL, USA
Distribution: Fedora Core, CentOS
Posts: 188
Rep:
|
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.
|
|
|
|
08-02-2006, 03:35 PM
|
#9
|
|
Moderator
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,505
Rep: 
|
What does your "old router" have set as its DNS server IPs?
|
|
|
|
08-02-2006, 03:53 PM
|
#10
|
|
Member
Registered: Mar 2006
Location: England
Distribution: Debian
Posts: 43
Original Poster
Rep:
|
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.
|
|
|
|
08-02-2006, 04:13 PM
|
#11
|
|
Member
Registered: Mar 2006
Location: England
Distribution: Debian
Posts: 43
Original Poster
Rep:
|
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.
|
|
|
|
08-02-2006, 04:14 PM
|
#12
|
|
Member
Registered: Jun 2005
Location: Chicago, IL, USA
Distribution: Fedora Core, CentOS
Posts: 188
Rep:
|
Good catch on the ns1.yahoo.com thing!!!
Happy surfing
|
|
|
|
08-02-2006, 04:31 PM
|
#13
|
|
Moderator
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,505
Rep: 
|
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
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:42 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|