/* HINT: Search archives @ http://www.indyramp.com/masq/ before posting!
/* ALSO: Don't quote this header. It makes you look lame :-) */
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> this is my situation,there are serval hosts with private IP connected
> to the Linux box and the Linux box connected to internet (ISP)
> through(PPPoE, ADSL, Cablemodems...),it looks like:
Unfortunately your picture looks very strange on my screen; I'm not sure
what happened with the formatting. But your question can be answered
regardless.
> i want the Linux box work as a DNS relay server, that is, any host
> send a DNS request to Linux, it will forward the request to the ISP's
> DNS server. So I think NAT can do this,for example:
Actually, you don't need NAT at all to do this, all you have to do is
set up a BIND DNS server, and put it in caching-only mode. The server
will accept DNS requests and pass them to whatever forwarders you choose
(such as your ISP's DNS servers), and pass the replies back to the
originating hosts.
Your problem here with using NAT is that you are telling your client
machines to direct their requests directly to the masq router. If you
want NAT to work, you'll have to teach all your clients to use your
ISP's nameserver directly. When they attempt to forward their request
directly to the ISP, then the masq gateway could apply NAT to the
outgoing packets.
There is a HOWTO for DNS setup, it is here:
http://www.tldp.org/HOWTO/DNS-HOWTO.html
Let us know if you have trouble with this. You should find it quite
simple.
--
[EMAIL PROTECTED] (Fuzzy Fox) || "Good judgment comes from experience.
sometimes known as David DeSimone || Experience comes from bad judgment."
_______________________________________________
Masq maillist - [EMAIL PROTECTED]
Admin requests can be handled at http://www.indyramp.com/masq-list/ --
THIS INCLUDES UNSUBSCRIBING!
or email to [EMAIL PROTECTED]
PLEASE read the HOWTO and search the archives before posting.
You can start your search at http://www.indyramp.com/masq/
Please keep general linux/unix/pc/internet questions off the list.