LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-29-2003, 10:39 PM   #1
ElementNine
Member
 
Registered: Sep 2003
Distribution: Red Hat 9 or Gentoo 1.4 whatever I can get to work first
Posts: 105

Rep: Reputation: 15
DNS not resolving


Okay I'm pretty new to linux i futzed around with RH5 or something back in the day but i've always been a windows user(i know im sorry) so ive decided to really give linux a try i bought red hat 9 installed it on my main pc took forever to get working(unsupported video card sound the works) any its up and running fine now for the most part so i decided to be brave and install it on my other computer. well the install went fine though i dont have sound again BUT.... for some reason i cant go online with it. actually i can go online i can ping IPs just fine but i cant resolve dns like google. i talked to one guy he said i had to change my resolv.conf so i did but that didnt fix it. i thought i might have a bad dns or something but all the info is exactly the same on my other machine. has anyone ever seen this before any hints? the guys at redhat refuse to help me
 
Old 09-30-2003, 03:17 AM   #2
mudelf
Member
 
Registered: Sep 2003
Distribution: RedHat 8
Posts: 59

Rep: Reputation: 15
Can you post the output of the following:-

resolv.conf
/etc/ppp/options

whats your ip address?
how are you trying to connect (kppp (crap!), wvdial etc.)

We need this kind of info to help...
 
Old 09-30-2003, 05:48 AM   #3
dominik81
Member
 
Registered: Sep 2003
Location: Germany
Distribution: Ubuntu 7.10
Posts: 54

Rep: Reputation: 15
I think I'm having the exact same problem:

- Linux server with internet connection (no DCHP)
- one Windows client which has no problem connecting to the internet
- one Mandrake 9.1 client

The Mandrake client is the only problem. I can ping both other computers and I can ping web addresses through the IP (e.g. ping 64.179.4.146 works fine). When I do 'ping www.google.com' it says 'network is unreachable'.

My resolv.conf looks like this:
Code:
nameserver 212.185.249.50
nameserver 194.25.2.129
Any suggestions?
 
Old 09-30-2003, 06:12 AM   #4
mudelf
Member
 
Registered: Sep 2003
Distribution: RedHat 8
Posts: 59

Rep: Reputation: 15
Ok so you have one Linux Box connected to the net by some means.

Then you have another WinBloze box connected to the net also by some other means.

(So the Linux and Win machines each have their OWN SEPERATE connections ... ?)

A Mandrake trying to access the NET THROUGH the first Linux box.

Is this correct?

I am trying (unsuccesfuly to figure a similar thing here).

WHat I have learnt so far:-

You need to make sure your default route on the Mandrake points AT the IP address of your first linux box which should be acting as the gateway.

After this I am unsure but I think you need to check that ipforwarding is enabled and set up Masquerading to (this deals with the gateway side of things).

type 'route' to check the route. There should be a table with a line on it saying 0.0.0.0 OR default. The entry for this LINE should be the IP address or Hostname for the Gateway Box.

Do you know how to add/del routes?

Sorry to be a bit waffly but this is new to me too....
 
Old 09-30-2003, 06:28 AM   #5
dominik81
Member
 
Registered: Sep 2003
Location: Germany
Distribution: Ubuntu 7.10
Posts: 54

Rep: Reputation: 15
My first post must have been a little unclear. Only the Linux box is connected to the internet and is sharing that connection. The Windows pc is using this connection. And now my Mandrake is supposed to do the same thing.

'route' gives me:
Code:
Kernel IP Routentabelle
Ziel            Router          Genmask         Flags Metric Ref    Use Iface
192.168.0.0     *               255.255.255.0   U     0      0        0 eth0
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         192.168.0.1     0.0.0.0         UG    0      0        0 eth0
'route -n':
Code:
Kernel IP Routentabelle
Ziel            Router          Genmask         Flags Metric Ref    Use Iface
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 eth0
The Linux server has the IP 192.168.0.1, my Mandrake system should be 192.168.0.2.

And no, I don't know how to add or del routes. I'm a
 
Old 09-30-2003, 06:42 AM   #6
mudelf
Member
 
Registered: Sep 2003
Distribution: RedHat 8
Posts: 59

Rep: Reputation: 15
Ok read this for route

in short

route add default gw xxx.xxx.xxx.xxx (where xxx ais the ip address of the intended Gateway PC)

Read this for routes http://linux-ip.net/html/tools-route.html

Its long but VERY good ---->

I am working through this tutorial now for the rest - a little harder but it seems to be all there...............

http://www.yo-linux.com/TUTORIALS/Li...rkGateway.html

Hope you figure it --- shout if you do so I know I am not alone on this!!!
 
  


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
Resolving of site name DNS Artik Linux - Networking 1 05-18-2005 03:58 PM
DNS Resolving sarukie Linux - Networking 1 11-22-2004 10:41 AM
DNS Resolving Problems Rouier Linux - Wireless Networking 0 06-21-2004 09:49 AM
/etc/hosts resolving before DNS resolving ? markraem Linux - Networking 4 11-02-2003 04:54 AM
DNS isn't resolving. member57 Linux - Networking 3 07-15-2003 12:50 PM


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