LinuxQuestions.org
Help answer threads with 0 replies.
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 12-17-2001, 12:07 PM   #1
bibi
LQ Newbie
 
Registered: Dec 2001
Posts: 2

Rep: Reputation: 0
cannot get dns behind linux gateway


Hi everybody,

I'm trying to install a linux gateway box for a small win network. I use a 2.2 kernel, pppoe connection.
On the linux machine, Internet access works great.

At this point I can ping the outside world from any part of the local network, but DNS services are not available.

I really don't know how to fix this : am I supposed to declare my ISP's DNS server on win hosts ?

Any help/idea/comment/link would be great.

Take care,
bibi

ifconfig result :
eth0 Link encap:Ethernet HWaddr 00:40:05:E1:17:F1
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4751 errors:0 dropped:0 overruns:0 frame:0
TX packets:3718 errors:0 dropped:0 overruns:0 carrier:0
collisions:2 txqueuelen:100
Interrupt:10 Base address:0xe400

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3924 Metric:1
RX packets:18385 errors:0 dropped:0 overruns:0 frame:0
TX packets:18385 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0

ppp0 Link encap:Point-to-Point Protocol
inet addr:my_ip P-t-P:217.128.34.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:11 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10

ipchains listing :
Chain input (policy ACCEPT):
target prot opt source destination ports
DENY udp ----l- anywhere anywhere any -> 0:1023
DENY tcp ----l- anywhere anywhere any -> 0:1023
DENY tcp -y--l- anywhere anywhere any -> any
DENY icmp ----l- anywhere anywhere echo-request
Chain forward (policy DENY):
target prot opt source destination ports
MASQ all ------ anywhere anywhere n/a
Chain output (policy ACCEPT):
 
Old 12-17-2001, 07:01 PM   #2
AtulGore
LQ Newbie
 
Registered: Jul 2001
Location: Sunnyvale, CA
Posts: 11

Rep: Reputation: 0
Hello Bibi,

Here are some pointers for you to check/start with:

1. Make sure you have correct entries in file /etc/resolv.conf
1.1 It should have entries like
domain - should contain name of your domain e.g. junk.com
nameserver - should contain IP address of the nameservers for that domain. e.g. 10.1.0.10

2. Make sure your /etc/nsswitch.conf files has 'dns' entry. The lines which says

hosts: files

should look like

hosts: dns files

3. Run the diagnostic tool, nslookup, and see if this machine is able to resolv to the internet.

Hope this helps..
... Atul
 
Old 12-18-2001, 01:40 AM   #3
ryandelany
Member
 
Registered: Dec 2001
Location: Orange County, CA
Distribution: RedHat 7.2, 7.3, 8.0
Posts: 66

Rep: Reputation: 15
If you are running a DHCP server on your Linux machine to assign addresses to your internal network, make sure you are passing the DNS server addresses to the Windows machines.

This can be set in /etc/dhcpd.conf

If you are setting your windows machines up with static network configurations, make sure you are entering your DNS server addresses on the windows machines.

Hope this helps.

Ryan
 
Old 12-18-2001, 02:52 PM   #4
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
Quote:
I really don't know how to fix this : am I supposed to declare my ISP's DNS
Yes, if you are using statics for the winboxes, you have to give them nameservers to query, the Linux machine is just masq'ing, its not preforming lookups for them. If you run a dhcpd server off of the Linux box, you might have an easier time of it, might not... there's no real reason to do so.

You might want to re-think that IPtables setting. That's wide open, all the time, without a single packet drop either way.

Cheers,

Finegan
 
Old 12-20-2001, 08:27 PM   #5
bibi
LQ Newbie
 
Registered: Dec 2001
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you everybody for your answers.

When reading your gentle answers, I realized that I haven't mentioned the fact that I was not running a dhcp server on my linux box but simply using my ISP's one.

I have just added my ISP nameservers on windows, and it worked

Quote:
You might want to re-think that IPtables setting. That's wide open, all the time, without a single packet drop either way.
I know I have to do this ... I'm just making it step to step. Hope I won't need a future post

Thank you again !

Take care,
bibi
 
  


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
DNS Blocked by gateway! Samhein Linux - Networking 4 11-28-2005 05:46 AM
How to see DNS ,GATEWAY etc.. tkmuthuvel Linux - Networking 1 09-12-2005 03:53 PM
DNS and gateway ThorRune Linux - Hardware 3 08-26-2005 03:19 PM
Need help creating a DNS/Gateway in Linux Imed'Noc Linux - Networking 1 05-10-2004 12:13 PM
Gateway and DNS jayakrishnan Linux - Networking 5 07-05-2003 03:01 AM

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

All times are GMT -5. The time now is 07:55 PM.

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