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.
 |
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. |
|
 |
01-02-2004, 11:13 PM
|
#1
|
|
Member
Registered: Feb 2003
Location: Pittsboro, North Carolina
Distribution: Ubuntu,DSL
Posts: 95
Rep:
|
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.
|
|
|
|
01-02-2004, 11:52 PM
|
#2
|
|
Member
Registered: Jul 2003
Location: Brighton, Michigan, USA
Distribution: Lots of distros in the past, now Linux Mint
Posts: 746
Rep:
|
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.
|
|
|
|
01-03-2004, 12:05 AM
|
#3
|
|
Member
Registered: Dec 2002
Distribution: Slackware 12.0
Posts: 240
Rep:
|
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 12:07 AM.
|
|
|
|
01-04-2004, 04:02 PM
|
#4
|
|
Member
Registered: Feb 2003
Location: Pittsboro, North Carolina
Distribution: Ubuntu,DSL
Posts: 95
Original Poster
Rep:
|
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!!!
|
|
|
|
01-04-2004, 04:25 PM
|
#5
|
|
Member
Registered: Dec 2002
Distribution: Slackware 12.0
Posts: 240
Rep:
|
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.
|
|
|
|
01-04-2004, 04:31 PM
|
#6
|
|
Member
Registered: Dec 2002
Distribution: Slackware 12.0
Posts: 240
Rep:
|
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).
|
|
|
|
01-04-2004, 06:29 PM
|
#7
|
|
Member
Registered: Feb 2003
Location: Pittsboro, North Carolina
Distribution: Ubuntu,DSL
Posts: 95
Original Poster
Rep:
|
I opened file /etc/resolv.conf in emacs but only a blank page appeared. I expected to see a file with some info.
|
|
|
|
01-04-2004, 06:36 PM
|
#8
|
|
Member
Registered: Dec 2002
Distribution: Slackware 12.0
Posts: 240
Rep:
|
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.
|
|
|
|
01-04-2004, 06:37 PM
|
#9
|
|
Member
Registered: Feb 2003
Location: Pittsboro, North Carolina
Distribution: Ubuntu,DSL
Posts: 95
Original Poster
Rep:
|
Thanks so much I'll give it a try.
|
|
|
|
01-04-2004, 06:42 PM
|
#10
|
|
Member
Registered: Dec 2002
Distribution: Slackware 12.0
Posts: 240
Rep:
|
You're welcome. Let me know if it works.
|
|
|
|
01-04-2004, 08:09 PM
|
#11
|
|
Member
Registered: Feb 2003
Location: Pittsboro, North Carolina
Distribution: Ubuntu,DSL
Posts: 95
Original Poster
Rep:
|
Eureka!!!! I am now responding to you using Linux. Thanks again for the info. I needed. Hope to graduate from newbie satus someday.
|
|
|
|
01-04-2004, 08:25 PM
|
#12
|
|
Member
Registered: Dec 2002
Distribution: Slackware 12.0
Posts: 240
Rep:
|
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.
|
|
|
|
| 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 09:40 AM.
|
|
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
|
|