LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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

Reply
 
Search this Thread
Old 01-03-2004, 12:13 AM   #1
alb1954
Member
 
Registered: Feb 2003
Location: Pittsboro, North Carolina
Distribution: Ubuntu,DSL
Posts: 95

Rep: Reputation: 15
browsers can't use internet connection


My modem connects to the internet but I can't get any browser to use the connection. I am using Red Hat 7.2.
 
Old 01-03-2004, 12:52 AM   #2
scott_R
Member
 
Registered: Jul 2003
Location: Brighton, Michigan, USA
Distribution: Lots of distros in the past, now Linux Mint
Posts: 746

Rep: Reputation: 31
If you can ping addresses but not names, then you need to check you /etc/resolv.conf file to make sure you have the abilty to use a nameserver. 'man resolv.conf' should help you with this. Basically, you first line should be your ISP's address 'amertech.net', for example, the next lines should be the nameserver addresses, "xxx.xxx.xxx.xxx" (the numbers are between 1 and 255 typically, so you might not need all the x's).

You can use gedit or other editors to edit these files, but you'll need to be root.
 
Old 01-03-2004, 01:05 AM   #3
oot
Member
 
Registered: Dec 2002
Distribution: Slackware 12.0
Posts: 240

Rep: Reputation: 30
Another way to test this is to type in an IP address in your web browser. For example, if you type in http://216.239.57.99 and that takes you to Google, but http://www.google.com does not, then you will know you need to change your DNS settings.

If you don't know what address to use for your DNS in /etc/resolv.conf, check your ISP's website. If you can't find it there, here is a list of OpenNIC nameservers that you can use. Pick the IP addresses of servers from your country (for USA, they'll end with .us.opennic.glue, for Canada .ca.opennic.glue, etc.) and add lines saying "nameserver <ip address>" for each one you choose (up to three).

For example, if you were in the USA, you might add the following lines to /etc/resolv.conf:

nameserver 209.104.63.241
nameserver 216.107.80.42
nameserver 144.162.120.230

Last edited by oot; 01-03-2004 at 01:07 AM.
 
Old 01-04-2004, 05:02 PM   #4
alb1954
Member
 
Registered: Feb 2003
Location: Pittsboro, North Carolina
Distribution: Ubuntu,DSL
Posts: 95

Original Poster
Rep: Reputation: 15
Thanks oot you analyzed my problem correctly. I tried to add the server address to the etc/resolv file but a blank file came up. What exactly do I enter to get to this file? Thanks for the help!!!
 
Old 01-04-2004, 05:25 PM   #5
oot
Member
 
Registered: Dec 2002
Distribution: Slackware 12.0
Posts: 240

Rep: Reputation: 30
Just put in those three lines I gave as an example (or the equivalent if you're not from the US). Make sure you're editing /etc/resolv.conf, not /etc/resolv.
 
Old 01-04-2004, 05:31 PM   #6
oot
Member
 
Registered: Dec 2002
Distribution: Slackware 12.0
Posts: 240

Rep: Reputation: 30
Rereading your questions, it looks like you may have been asking how to edit the file. If that's your question, try typing "pico /etc/resolv.conf". When you're done, press ctrl+o (to save) and ctrl+x (to exit).
 
Old 01-04-2004, 07:29 PM   #7
alb1954
Member
 
Registered: Feb 2003
Location: Pittsboro, North Carolina
Distribution: Ubuntu,DSL
Posts: 95

Original Poster
Rep: Reputation: 15
I opened file /etc/resolv.conf in emacs but only a blank page appeared. I expected to see a file with some info.
 
Old 01-04-2004, 07:36 PM   #8
oot
Member
 
Registered: Dec 2002
Distribution: Slackware 12.0
Posts: 240

Rep: Reputation: 30
It's fine if there's no info, it just means a program hasn't set it up for you. To set it up for yourself, just put in the three lines I showed you above.
 
Old 01-04-2004, 07:37 PM   #9
alb1954
Member
 
Registered: Feb 2003
Location: Pittsboro, North Carolina
Distribution: Ubuntu,DSL
Posts: 95

Original Poster
Rep: Reputation: 15
Thanks so much I'll give it a try.
 
Old 01-04-2004, 07:42 PM   #10
oot
Member
 
Registered: Dec 2002
Distribution: Slackware 12.0
Posts: 240

Rep: Reputation: 30
You're welcome. Let me know if it works.
 
Old 01-04-2004, 09:09 PM   #11
alb1954
Member
 
Registered: Feb 2003
Location: Pittsboro, North Carolina
Distribution: Ubuntu,DSL
Posts: 95

Original Poster
Rep: Reputation: 15
Eureka!!!! I am now responding to you using Linux. Thanks again for the info. I needed. Hope to graduate from newbie satus someday.
 
Old 01-04-2004, 09:25 PM   #12
oot
Member
 
Registered: Dec 2002
Distribution: Slackware 12.0
Posts: 240

Rep: Reputation: 30
Excellent! Glad to hear things are working out for you. You'll be surprised how quickly you graduate from newbie status if you just put your mind to whatever you're doing.
 
  


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
Slow Internet Connection when Connecting to Internet on Browsers lennysokol Linux - Networking 8 04-09-2011 05:29 PM
internet browsers bong.mau Linux - Networking 5 09-05-2005 03:02 PM
internet browsers bobotoes *BSD 4 02-04-2005 08:47 AM
Internet Explorer vs. Other Browsers (Internet Standards) smaida Linux - General 6 10-11-2004 05:27 AM
Internet Browsers KoS Linux - Software 3 07-23-2003 05:01 PM


All times are GMT -5. The time now is 04:35 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration