bind 8.2.3-REL and ceching server

Barry Margolin barmar at genuity.net
Tue Oct 30 19:17:54 UTC 2001


In article <9rmlsk$riu at pub3.rc.vix.com>,
Joachim Grunwald  <jgrunwald at gamma.de> wrote:
>
>Hi,
>I'm running bind 8.2.3-REL on a mashine in a local (192.168.x.0/24) network. It
>is set up as a caching server and forwards requests to public nameservers.
>
>The local net is connectet to the internet through a router on a second
>interface. The router gets dyn IP and has port 80 from the WAN interface
>forwarded to a local mashine. I have set up dyndns so people can connect my
>www-server.
>
>Everything works fine so far.
>
>Now when I try to connect to my domain from computers on th internal net it
>fails!
>
>The reason is that the router does not forward requests to the WAN-IP coming
>from the LAN side. But the nameserver correctly returns the WAN-IP when it is
>asked.

This is very common behavior of NAT routers.

>Is there a simple way to tell the local caching nameserver to use the local IP
>for myname.dyndns.org instead of the correct one?
>
>Should I set up a local zone for myname.dyndns.org pointing to the local IP? Can
>this local zone just be a single host?

Yes and yes.

zone "myname.dyndns.org" {
  type master;
  file "db.myname";
};

In db.myname:

@ IN SOA myname.dyndns.org. ...
  IN NS myname.dyndns.org.
  IN A <local IP>

-- 
Barry Margolin, barmar at genuity.net
Genuity, Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.


More information about the bind-users mailing list