Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-28-2003, 10:14 AM
|
#1
|
LQ Newbie
Registered: Aug 2003
Posts: 4
Rep:
|
Internet via IP, but not via URL?
Good Morning,
I have been struggling to give my new RH9 PC access to the Internet. I’ve spent a lot of time searching and reading posts on this site and thanks to that I’ve come quite a way. But still have one final hurdle that I can’t seem to overcome: I can access websites if I use the IP address, but not if I use the URL.
Here’s my setup. I have a Verizon DSL line coming into a DSL modem. That modem is attached to a Linksys DSL router. The router is configured to handle the PPPoE password, etc. Connected to the router are two PCs: and old NT4.0 PC and the RH9 PC. The NT machine accesses the Internet just fine so I know I the router and modem are fine. I can also ping the router and access the router’s configuration page from the RH9 box. Finally, as I mentioned above, I can access Internet websites from the RH box if I use the IP address, but not if I use the URL. When I try to use a URL I get a "Could not find blablabla" message.
So that made me think I have some DNS setting wrong. I checked my NT box to see what DNS settings I have and there are none. The Verizon documentation does not mention any DNS settings. So I did a WhoIs search and found the Name Server IP addresses for the two BellAtlantic Name Servers. I added those and still URL’s don’t work.
I bet there is something obvious I am missing, but being a newbie, it isn’t so obvious to me.
One other thing. After I logon to the RH9 box I get the following error message:
Could not look up internet address for localhost. This will prevent GNOME from operation correctly. It may be possible to correct the problem by adding localhost to the file /etc/hosts.
I’m not sure whether that is significant or not. I’m sure that message is a fairly new one, so in my effort to get online I probably tweaked something the wrong way.
Thanks,
Victor
|
|
|
08-28-2003, 10:29 AM
|
#2
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
You'll need to put your ISP's DNS entries in /etc/resolv.conf file. If you don't know them, ask your ISP for them.
Usually in this type of format for the file:
search isp.domain.com
nameserver <isp's dns ip number1>
nameserver <isp's dns ip number2>
|
|
|
08-28-2003, 10:33 AM
|
#3
|
Member
Registered: Jul 2001
Location: London
Distribution: RH 9
Posts: 151
Rep:
|
Does the /etc/hosts file still exist?
localhost is the basic entry that even MS installations have in their hosts file. Try opening the file and seeing whats there. If there isn't a file create one and add the line
127.0.0.1 localhost
that should cure GNOME error. As far as the internet errors go are you sure the correct nameservers are inputted into your Linux box? I'm not the expert here so this post will probably result in 20 posts correcting mine, but here goes anyway!
You'll need to know the IP addresses of you DNS servers. When you have them, stick them in a file /etc/resolv.conf (I think) like this
nameserver 1.2.3.4
where 1.2.3.4 is the IP of the dns server. Add as many lines like this as you like.
To get the IP addresses go to your NT box, and in command promp type "ipconfig /all" and the IP addresses should be there somewhere (I think that command was included in the NT distribution of Windows).
I really hope that's ok, and that I haven't mislead you
glj
|
|
|
08-28-2003, 08:15 PM
|
#4
|
LQ Newbie
Registered: Aug 2003
Posts: 4
Original Poster
Rep:
|
Thanks for your responses.
The changes suggested to /etc/hosts did make the error message go away, but I still can not get to the internet using a URL.
This is what I have in /etc/resolv.conf
; generated by /sbin/dhclient-script
search
nameserver 199.45.32.40
nameserver 199.45.32.41
Is this correct, or do I need to tweak this some.
Thanks,
Victor
|
|
|
08-29-2003, 07:22 AM
|
#5
|
LQ Newbie
Registered: Aug 2003
Posts: 4
Original Poster
Rep:
|
Should resolv.conf read
; generated by /sbin/dhclient-script
search www.bellatlantic.net
nameserver 199.45.32.40
nameserver 199.45.32.41
Does adding the bellatlantic.net make a difference?
|
|
|
08-29-2003, 07:41 AM
|
#6
|
LQ Guru
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796
Rep:
|
First of all there's gotta be a DNS server setting on the NT box, do a "ipconfig /all" in command prompt and check for DNS servers(usually it points at the local ip of your router because they're capable of forwarding DNS queries)
if all fails, you might want to try installing named with caching-nameserver configuration and point the nameserver to yourself, you can't go wrong this way.
If you decide to do that make sure you configure your firewall properly so that it allows yourself to acces port 53.
Last edited by Demonbane; 08-29-2003 at 07:43 AM.
|
|
|
08-29-2003, 07:44 AM
|
#7
|
Senior Member
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120
Rep:
|
The Red Hat firewall has been known to cause this exact problem. If it's on turn it off and try again.
as root do
iptables --list
if there is any output other than three empty table row headings then it's on, especially of you see the word Lokkit in there.
|
|
|
08-30-2003, 12:09 PM
|
#8
|
LQ Newbie
Registered: Aug 2003
Posts: 4
Original Poster
Rep:
|
Looking_lost
Yes, that was it. I turned the firewall off and I can now access the Internet.
Thank you very much!
Victor
|
|
|
All times are GMT -5. The time now is 03:28 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
|
|