LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 05-17-2004, 03:39 PM   #1
steve02a
LQ Newbie
 
Registered: May 2004
Location: CA
Posts: 12

Rep: Reputation: 0
Unhappy can't connect to internet


I have Mandrake 9.2 installed.

How on earth do you get the internet to work? the OS see's my NIC card, drivers installed good. I've gone through the wizard like 20x's to config the card and internet access. Tried static IP, DHCP - I have the correct gateway address in (since I'm going through a router) - nothing...no webpage at all will come up.

Am I missing something w/the DNS or what? missing some other steps? I'm lost...and this newbie isn't going far on the net now....
 
Old 05-17-2004, 03:43 PM   #2
Inhibit
Member
 
Registered: Apr 2004
Distribution: Mandrake, Gentoo, SuSe, JDS
Posts: 53

Rep: Reputation: 15
Make sure you've got proper DNS entries first.. especially if you're only trying to resolve domain names and not IP's.

Then try getting rid of that gateway and re-requesting a DHCP connection.

If all else fails you can check what IP address you're currently at with "ifconfig" at a root prompt and what your network routing tables are with "netstat -rn".
 
Old 05-17-2004, 04:09 PM   #3
steve02a
LQ Newbie
 
Registered: May 2004
Location: CA
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Inhibit
Make sure you've got proper DNS entries first.. especially if you're only trying to resolve domain names and not IP's.

Then try getting rid of that gateway and re-requesting a DHCP connection.

If all else fails you can check what IP address you're currently at with "ifconfig" at a root prompt and what your network routing tables are with "netstat -rn".
How do I check or find if I'm using proper DNS entries (like where would a file be that resolves host names to IP's).

I did run the ifconfig -a command and all my IP address are good and working. I was able to ping yahoo directly to their IP, but not the host name. Also, I could not view their page via www.yahoo.com nor using their IP address...strange.
 
Old 05-17-2004, 04:19 PM   #4
Inhibit
Member
 
Registered: Apr 2004
Distribution: Mandrake, Gentoo, SuSe, JDS
Posts: 53

Rep: Reputation: 15
ah. bingo. The file is "/etc/resolv.conf" and has entries in the format

"nameserver xxx.xxx.xxx.xxx"

It can also be set up in netconf.
 
Old 05-17-2004, 04:59 PM   #5
steve02a
LQ Newbie
 
Registered: May 2004
Location: CA
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Inhibit
ah. bingo. The file is "/etc/resolv.conf" and has entries in the format

"nameserver xxx.xxx.xxx.xxx"

It can also be set up in netconf.
I found that file, but it didn't provide me any information and I couldn't save entires since I didn't have write permission (unless I log in as root, which I can).

Everyone knows in a Windows network configuration, you can put the DNS address (IP) and there you have it. Using this Linux has me confused. Is there a place I can put the DNS address?

I am using a router to connect to my cable modem, then to the internet. My router works fine with my cable modem because other computers (windows) I have my small network here @ home get on the net. So, I know I have the proper DNS sever address in my router (according to my ISP). This crazy Linux is misbehaving (or I have no idea what I'm doing).
 
Old 05-17-2004, 05:08 PM   #6
mermxx
Member
 
Registered: Apr 2004
Location: Wales
Distribution: rh9, winxp
Posts: 411

Rep: Reputation: 30
u have to edit the file /etc/resolv.conf

for example in a terminal
# gedit /etc/resolv.conf &

search
nameserver (dns1
nameserver (dns2)

then save
 
Old 05-17-2004, 05:10 PM   #7
steve02a
LQ Newbie
 
Registered: May 2004
Location: CA
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by mermxx
u have to edit the file /etc/resolv.conf

for example in a terminal
# gedit /etc/resolv.conf &

search
nameserver (dns1
nameserver (dns2)

then save
Completed and saved. Added: nameserver 204.127.199.8 (that's my DNS server provided to me from my ISP and it's listed in my router as well). Still no connection
 
Old 05-17-2004, 10:25 PM   #8
Inhibit
Member
 
Registered: Apr 2004
Distribution: Mandrake, Gentoo, SuSe, JDS
Posts: 53

Rep: Reputation: 15
Funny, it didn't work for me either.. Try 64.105.124.154 for a nameserver, though if that works I'd reccomend getting your ISP to give you a working server.
 
Old 05-18-2004, 01:01 AM   #9
steve02a
LQ Newbie
 
Registered: May 2004
Location: CA
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Inhibit
Funny, it didn't work for me either.. Try 64.105.124.154 for a nameserver, though if that works I'd reccomend getting your ISP to give you a working server.
Crapola...that didn't work either. That IP you gave is a DNS server, right? The one I have (from my ISP) is 204.127.199.8 - I know that works or I wouldn't be at this site - just doesn't want to work with Linux...
 
Old 05-19-2004, 10:14 AM   #10
mermxx
Member
 
Registered: Apr 2004
Location: Wales
Distribution: rh9, winxp
Posts: 411

Rep: Reputation: 30
U would usually have 2 dns servers have u added both addresses.
U can also edit the file /etc/ppp/options making sure usepeerdns is in there.
 
  


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
When i connect on the internet I want root not to access the internet !! skouket Linux - Security 12 07-10-2005 12:17 PM
Messed up my Internet Settings (can't connect to the internet) Almazick Linux - Wireless Networking 0 09-07-2004 06:23 PM
can't connect to the internet:linux dont read my internet address droplsh Linux - General 1 02-29-2004 07:32 PM
Can connect broadband but can't connect Internet satimis Linux - Networking 4 01-31-2004 07:58 PM
Can't connect to Internet Galphar Linux - Newbie 13 08-24-2003 03:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 12:47 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration