Networking Forums

Networking Forums > Computer Networking > Linux Networking > Problem with DNS through a gateway

Reply
Thread Tools Display Modes

Problem with DNS through a gateway

 
 
Jim Haynes
Guest
Posts: n/a

 
      06-14-2006, 06:46 PM
I have a machine with dialup networking that acts as a gateway
to my small LAN. Running Fedora Core 4 everything works fine.
(or as fine as possible, considering the slow outside networking)
I put on a Fedora Core 5 test installation and used the same
iptables incantation that works for FC4. With no change to the
other machines on the LAN they can ping to a numeric IP address
through the gateway but they don't get DNS service. DNS does
work on the gateway machine under FC5. Any clues?
--

jhhaynes at earthlink dot net

 
Reply With Quote
 
 
 
 
Raqueeb Hassan
Guest
Posts: n/a

 
      06-15-2006, 04:26 AM
> other machines on the LAN they can ping to a numeric IP address
> through the gateway but they don't get DNS service. DNS does
> work on the gateway machine under FC5. Any clues?


If I understand you correct, you wanted to provide DNS service to your
LAN. Did you have your FC5 machine's DNS configured properly? Should
you run a dhcpd on that machine, you can configure it assigning DNS
address along with IP addresses. You might like to run a cache-only
(caching only) or forwarding DNS to your ISP's DNS server over your
slow connection .

Here is an example you can count on.

http://www.zytrax.com/books/dns/ch6/

Or

You may not need a DNS server at all, should you use IP masquerading
where your LAN's machines are configured to use ISP's DNS server.


--
Raqueeb Hassan
Bangladesh

 
Reply With Quote
 
Moe Trin
Guest
Posts: n/a

 
      06-15-2006, 08:02 PM
On Wed, 14 Jun 2006, in the Usenet newsgroup comp.os.linux.networking, in
article <cQYjg.5708$(E-Mail Removed). net>, Jim Haynes
wrote:

>I put on a Fedora Core 5 test installation and used the same
>iptables incantation that works for FC4. With no change to the
>other machines on the LAN they can ping to a numeric IP address
>through the gateway but they don't get DNS service. DNS does
>work on the gateway machine under FC5. Any clues?


"The other boxes" - where are they looking for DNS? Assuming a *nix O/S
on them - what's in /etc/resolv.conf? (If windoze, there's probably some
icon to click on to find out.) On the gateway box, does
'/usr/sbin/tcpdump -i eth0' show those boxes making DNS queries? To who?
On the gateway box, does '/usr/sbin/tcpdump -i ppp0' show these same
queries going out with the source address of the ppp0 interface? Do
you see DNS replies coming back in from where-ever? Did the reply get
forwarded back to the local boxes?

Old guy
 
Reply With Quote
 
Jim Haynes
Guest
Posts: n/a

 
      06-15-2006, 08:06 PM
In article <(E-Mail Removed). com>,
Raqueeb Hassan <(E-Mail Removed)> wrote:
>
>You may not need a DNS server at all, should you use IP masquerading
>where your LAN's machines are configured to use ISP's DNS server.
>

That is correct - it works with the FC4 gateway with IP masquerading
and the LAN machines use the ISP DNS server. It's just when I run the
gateway on FC5 that DNS fails. Thanks to Moe Trin for the suggestions
to use tcpdump and see if DNS queries are flying around on either side
of the gateway. I'll try that.
--

jhhaynes at earthlink dot net

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
gateway routing problem villa.alberto@gmail.com Linux Networking 2 11-21-2008 09:46 PM
Gateway problem Shawn Melnic Linux Networking 5 08-25-2004 09:30 PM
gateway problem Geoff Windows Networking 1 05-20-2004 02:30 PM
problem with more than one gateway kim Windows Networking 5 09-11-2003 03:48 PM
problem using more than one gateway kim Windows Networking 2 09-10-2003 09:26 AM



1 2 3 4 5 6 7 8 9 10 11