LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 06-01-2005, 07:28 AM   #1
SuperSadSmile
Member
 
Registered: Sep 2002
Location: Italy
Distribution: MDK9
Posts: 45

Rep: Reputation: 15
URGENT: dns resolving through gateway


I have a Linux pc running Ubuntu Hoary in my network.

I have problem to access internet from it.

This pc has static ip 192.168.0.3 and should connet to internet through a WinXp gateway at 192.168.0.4.

The Ubuntu box and the Gteway can ping each other. So i guess there's no network problem.
Moreover if i set up a working proxy in the Gateway a can access internet through it.

So i guess is a dns configuratin problem.

I post some config file might be useful:

--------/etc/netork/interfaces----------------
# The loopback network interface
auto lo
iface lo inet loopback

# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth0

# The primary network interface
iface eth0 inet static
address 192.168.0.3
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.4
# dns-* options are implemented by the resolvconf package, if installed
#dns-nameservers 192.168.0.4

auto eth0
------------------------------------------------------------

----------/etc/resolv.conf------------------------------
#these are tiscali dns server
nameserver 213.205.32.70
nameserver 213.205.36.70
-----------------------------------------------------------

Last edited by SuperSadSmile; 06-01-2005 at 07:31 AM.
 
Old 06-01-2005, 07:39 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
i'd guess it was windows's fault, you would just get your machines gateway to be the windwos box and off you go.

and please do NOT meark threads as Urgent. it is NOT urgent for me, or any other member of this site who donates their time to help others.
 
Old 06-01-2005, 07:46 AM   #3
SuperSadSmile
Member
 
Registered: Sep 2002
Location: Italy
Distribution: MDK9
Posts: 45

Original Poster
Rep: Reputation: 15
I dont give a shit if it is not ugent for you.
It is for me.

If you dont have time bothering to reply, dont waste my time posting and go get some autosatifitation elseway.

And anyway i dont give a shit about your opinion on WinXp too. So dont waste my time posting just because you dont have anything else better to do.

If you have something more useful to say just say it or skip and please yourself.

Cheeeeeeeeeeeeers
 
Old 06-01-2005, 09:55 AM   #4
SuperSadSmile
Member
 
Registered: Sep 2002
Location: Italy
Distribution: MDK9
Posts: 45

Original Poster
Rep: Reputation: 15
After some work i got that ican't actually ping anythin outside the local network.
Even if i ping an ip directly, without any need for dns resolving.

I guess that that means that i haven't got a dns problem, but a proper routing problem on the gateway.

What's amazing is that the gateway allows the traffic from others boxes in the network to access internet. I even tried to shut down the zonealarm firewall but no effect whatsoever.
What the hell??
 
Old 06-02-2005, 08:16 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Be careful how to talk to moderators. I am just doing my job, and if you wish to remain a valid member of this site, you will be polite in future. Abuse will not be tolerated.
 
Old 06-02-2005, 08:36 AM   #6
msound
Member
 
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Rep: Reputation: 30
this may be out of the question but why dont you just buy a $40 linksys router from bestbuy and use that as your internet gateway like the other 90% of the world. i dont understand why people mess around with windows connection sharing when routers are cheap, fast, and secure.

to try and answer your question, is the linux box configured exactly like the other computers on your network? ip class, subnet, gateway, and dns settings? have you tried turning one of the other computers off and using that computer's ip address on the linux box? Norton internet security can filter traffic by IP, id imagine zone alarm can do the same. Try assigning an ip address from one of your working computers to your linux box, if that allows the linux box to see the internet then theres a configuration issue with your firewall. If that still doesnt work then its more than likely an issue with the network settings on your linux machine. once you isolate the issue to either your firewall or linux box, then we can troubleshoot further.
 
Old 06-02-2005, 09:14 AM   #7
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
Edit- I had some ideas I was about to post. After reading the way this guy talks to the moderators and all the rest of us who volunteer our knowledge to this site I've decided he's barely worth posting this.
 
Old 06-02-2005, 09:47 AM   #8
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
linksys routers secure??????????huh, they must have changed the default admin, admin user/passwd combo. not trying to be a smartass either, sorry.

Last edited by lord-fu; 06-02-2005 at 09:49 AM.
 
Old 06-02-2005, 11:56 AM   #9
di11rod
Member
 
Registered: Jan 2004
Location: Austin, TEXAS
Distribution: CentOS 6.5
Posts: 211

Rep: Reputation: 32
Quote:
Originally posted by Darin
Edit- I had some ideas I was about to post. After reading the way this guy talks to the moderators and all the rest of us who volunteer our knowledge to this site I've decided he's barely worth posting this.
I agree. This poster's communication style has not been respectful to the wonderful contributors to this forum. But please don't let that hold you back from responding with your troubleshooting suggestions. Remember, your suggestion will hopefully be found by others in a similar predicament and they'll be able to benefit from your guidance.

I say this because I am grappling with a similar problem. I am running Mandrake 9.2 as a web / mail server behind a cheap-ass Netgear router. Have been using it for several years now. Unfortunately, I tried to renovate my network and now I'm not able to access the internet FROM the linux box. Oddly, I am able to connect TO the linux box from the outside internet and from other computers on the LAN. I changed around a bunch of stuff on the router, but nothing on the linux box. So, I do not suspect the problem is originating in how the Mandrake box is configured, but I now need to reconfigure it to be able to make outbound connections. It responds fine to web and mail inbound connections. It can also send email. What it can't do is ping, nslookup, or connect to the news-server. Any ideas? Here is the relevant info--


Code:
cat /etc/resolv.conf
nameserver 24.93.43.121
nameserver 24.93.44.119
nameserver 192.168.1.1
domain austin.rr.com
Code:
Destinaton 	Gateway 	Netmask 	Interface
192.168.1.0 	0.0.0.0 	255.255.255.0 	eth0
127.0.0.0 	0.0.0.0 	255.0.0.0 	lo
Default Route 	192.168.1.1 	0.0.0.0 	eth0
That 192.168.1.0 thing looks weird to me. The real router is at 192.168.1.1 Also wondering if that netmask should be 255.255.255.0 for the default router.

Any thoughts on this topic much appreciated.

di11rod
 
Old 06-02-2005, 12:29 PM   #10
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
di11rod the 192.168.1.0 destitation is a network not a host - in other words it says any ip addresses starting with 192.168.1. can be found by using device eth0. The default route is also correct as it will match any destination on any subnet which has already been specified.

Try just changing your resolv.conf file to contain:
nameserver 192.168.1.1

SuperSadSmile, can you confirm that your routing table is set up correctly by posting:
route -n
 
  


Reply



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
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 not resolving ElementNine Linux - Networking 5 09-30-2003 06:42 AM
DNS isn't resolving. member57 Linux - Networking 3 07-15-2003 12:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:52 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
Open Source Consulting | Domain Registration