DNS Server on LAN
Barry Margolin
barmar at alum.mit.edu
Tue Feb 17 04:14:26 UTC 2004
In article <c0rml2$2dgg$1 at sf1.isc.org>,
Ben Heard <bdheard at netscape.net> wrote:
> I have a NAT'ing gateway router that doesn't support loopback. As such I
> can't use www.websever.org from machine A on my LAN to hit a webserver with
> a LAN IP address because the IP address associated with www.webserver.org
> is that of the router (external DNS server).
>
> So, I thought that I could run a DNS server on my LAN that only maps
> www.webserver.org to my LAN IP address and make the router look at my LAN
> DNS server as its primary server. All other name resolutions would go to
> the WAN once the LAN DNS server didn't provide an answer.
>
> The question is, how do I set up a named.conf file to support this?
zone "www.webserver.org" {
type master;
file "www.webserver.org.db";
}
In www.webserver.org.db, you should have:
@ IN SOA <usual SOA stuff>
IN NS <yourmachinename>
IN A <LAN IP address>
--
Barry Margolin, barmar at alum.mit.edu
Arlington, MA
More information about the bind-users
mailing list