LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-15-2007, 12:37 AM   #1
**Area51**
LQ Newbie
 
Registered: Feb 2007
Posts: 5

Rep: Reputation: 0
Home Networking help


Hi,
I currently have a D-link router DI-524 connected to a Linksys EZXS55W switch. I have a dedicated Linux environment on one machine and a Windows environment on the other machine. I am able to ping between boxes on the LAN, however I can not ping the world wide web, i.e. www.linuxquestions.org. I get a response which says "ping: unknown host www.linuxquestions.org" . Does anyone know the file that must be configured for my linux box to be able to ping sites in the WAN? I am a noobie to Linux, so please let me know if anything need clarification or further explanation. I am using the bash shell environment, with no GUI.

Last edited by **Area51**; 02-15-2007 at 12:38 AM.
 
Old 02-15-2007, 12:52 AM   #2
wildar
Member
 
Registered: Jan 2007
Distribution: Mandriva 2008, Mandrake 2005, Ubuntu 8.04.1
Posts: 239

Rep: Reputation: 30
Check your DNS setting in /etc/resolv.conf. Make sure you have nameserver IP addresses. If namserver IP is your router, try replacing the IP with whatever your ISP is assigning to your router. If not sure how to get that info, try putting nameserver 4.2.2.2 in the /etc/resolv.conf.
 
Old 02-15-2007, 12:56 AM   #3
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
On most home LANs, the nameserver in /etc/resolv.conf should be pointing to your router. If your routers IP address is 192.168.1.1, then the entry in /etc/resolv.conf should be
Code:
nameserver 192.168.1.1
Can you ping an IP address, eg: 64.233.167.99 (Google)?

What Linux distro are you using? Can you access websites from your Windows machine?

I hope this helps
--Ian
 
Old 02-15-2007, 01:18 AM   #4
**Area51**
LQ Newbie
 
Registered: Feb 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for the prompt replies wildar and Iball! Both of your replies are very helpful in troubleshooting my current issue. Currently in my resolv.conf file I have input the following: nameserver 68.87.71.224 . I am using that address because it looked like the DNS ip address within my D-link router console interface.
Actually it listed it as DNS 68.87.73.242 68.87.71.226, and I assumed the first was the primary DNS and the second to be the secondary DNS address.

Since reading both of your posts I have input "nameserver 192.168.0.1" (ip address of my router) and "nameserver 4.2.2.2" within the resolv.conf file and I am still unable to ping the world wide web using a websites name. I am however able to ping the ip addresses, such as Iball suggested. I am able to ping the ip address 64.233.167.99 (Google), but I still get the "ping: unknown host www.google.com" response when I try to ping Google's website using the url. Yes, I can access websites from my windows machine. Thanks again for the suggestions, please keep them coming.

Last edited by **Area51**; 02-15-2007 at 01:44 AM.
 
Old 02-15-2007, 01:25 AM   #5
wildar
Member
 
Registered: Jan 2007
Distribution: Mandriva 2008, Mandrake 2005, Ubuntu 8.04.1
Posts: 239

Rep: Reputation: 30
Might help if we could examine your resolv.conf file. Mind posting it?
 
Old 02-15-2007, 01:36 AM   #6
**Area51**
LQ Newbie
 
Registered: Feb 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Currently I have the following in my resolv.conf file:
#cat resolv.conf
nameserver 192.168.0.1

hope this helps

Last edited by **Area51**; 02-15-2007 at 01:42 AM.
 
Old 02-15-2007, 01:38 AM   #7
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
There is no need to mask IP addresses, particularly your internal LAN ones. It just makes life difficult for us.

AFAIK, the nameserver in /etc/resolv.conf should point to your router. Have a look in the Windows machines network config, and see what it has in there for a DNS server. It should be your router. You should only have one line in /etc/resolv.conf. Please post this file here.

Also, you said in your original post that you don't have a GUI interface. Why? Since you are a newbie, a GUI can be most helpful.

--Ian
 
Old 02-15-2007, 01:50 AM   #8
**Area51**
LQ Newbie
 
Registered: Feb 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for the advice. I have edited the post above, I'm not trying to make life difficult, I know mine seems difficult enough, at least right now . Basically, I am trying to learn how to do the commands and edit the files within a shell window. Thats the reason I am not using the GUI. I will check the settings on the windows machine and report back.
 
Old 02-15-2007, 02:07 AM   #9
wildar
Member
 
Registered: Jan 2007
Distribution: Mandriva 2008, Mandrake 2005, Ubuntu 8.04.1
Posts: 239

Rep: Reputation: 30
Just as a test, replace nameserver 192.168.0.1 with nameserver 4.2.2.2.
 
Old 02-15-2007, 06:51 AM   #10
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
You can always use an terminal window in a GUI environment if you want... Some of the editors in a GUI are easier to use as well.

Let us know how changing your DNS settings goes.

--Ian
 
Old 04-18-2007, 12:10 AM   #11
UhhMaybe
Member
 
Registered: Jul 2004
Location: Salt Lake City, Utah
Distribution: Absolute 12.0 Studio 64 1.3.0
Posts: 470

Rep: Reputation: 30
Cool

IBall is correct. Having the added features and capability of the text editors is a solution which delivers results and hope. BASH is excellent for the uses of the Linux Operating System for itself. As a user or administrator of YOUR system, YOU will benefit greatly with more tools. Try the editors, YOU will learn as long as YOU Read,Type and Comprehend the differences. The before and after of using the tools. Good luck. I'm learning VIM. There is a cheatcode card that makes using VIM simple and practical.
 
Old 04-19-2007, 05:19 PM   #12
Seph64
Member
 
Registered: Feb 2003
Distribution: Gentoo, FreeBSD, LFS
Posts: 298
Blog Entries: 21

Rep: Reputation: 30
But that does not actually help him with his network problem.

And... I am having similiar issues with the exact same router (Dlink Dl-524). It takes forever to resolve domain names (even with other DNS server numbers entered in to /etc/resolv.conf, which I will post in a moment). Sometimes it can't resolve them at all. But pinging the server's IP works, it's Domain name resolving that is the issue.

Code:
seph64@Enterprise ~ $ cat /etc/resolv.conf 
# Generated by dhcpcd for interface eth0
search domain.actdsltmp
nameserver 4.2.2.2
nameserver 192.168.0.2
nameserver 192.168.1.1
The middle number is the address of the modem (which is also setup like a router, but only has one ethernet port) while the bottom is the address of the router.

This helps with domain name resolving, but the issue is still there.

Thing of it all, this problem only seems to exist in *nix OSes, seeing as when I am in Windows, there's absolutely no problem at all. Although, I don't think I will jump to conclusions just yet, but reading this post makes me happy that it is not just me that is having this problem. I probably just need a new router by a different company.
 
Old 04-19-2007, 05:27 PM   #13
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,665

Rep: Reputation: Disabled
Quote:
The middle number is the address of the modem (which is also setup like a router, but only has one ethernet port) while the bottom is the address of the router.
What's the big idea doing that double NAT? Turn off one of them and see if your problems are gone.
 
Old 04-19-2007, 05:34 PM   #14
Seph64
Member
 
Registered: Feb 2003
Distribution: Gentoo, FreeBSD, LFS
Posts: 298
Blog Entries: 21

Rep: Reputation: 30
1: the Big idea was that the manufacturer of the modem probably thought it's biggest audience would probably be the wireless crowd (since it is marketed as a wireless gateway, and uh, the wireless part doesn't work very well, I wish my ISP used a different DSL "modem").

2: I had problems with turning off the default behavior for a router in the past, so I am a little hesitant to do it again. But I kinda doubt it's the Double NAT that is causing the problem since Windows has no problems with DNS resolution, and an old router worked as well.
 
  


Reply



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
Home Networking Help samguan SUSE / openSUSE 4 04-25-2006 12:44 AM
home networking nucleran Linux - Networking 1 04-06-2006 07:15 AM
home networking help exec Linux - Networking 9 02-16-2003 03:19 PM
Home Networking jwithers1 Linux - Networking 1 08-06-2002 10:52 AM
Home networking knightmare2279 Linux - Networking 8 11-24-2001 11:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:58 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