how to setup a local root nameserver?

Joe Baptista baptista at publicroot.org
Tue Feb 2 15:03:32 UTC 2010


see my comments below ...

On Tue, Feb 2, 2010 at 8:18 AM, Joseph S D Yao <jsdy at tux.org> wrote:

> On Tue, Feb 02, 2010 at 12:50:56AM +0100, fddi wrote:
> > Hello,
> > I need to setup a local named configuration so that ANY request will be
> > resolved
> > to a specific single IP only.
> >
> > I mean any kind of DNS resolutin request
> >
> > www.luth.se
> > www.isc.org
> > www.anything.tld
> >
> > should be resolved in 172.16.30.30 for example
>
>
> zone "." {
>        type master;
>        file "zone.root";
> };
>
> zone.root:
> @       SOA     ...
>        NS      localhost
>
localhost A 127.0.0.1

>
> *       A       172.16.30.30
>
> NOTE: this does exactly what you asked.  And may have unexpected
> consequences [as in, be careful what you ask for; you may get it].  For
> instance, this had better be the name server, as well!  NO OTHER IP
> ADDRESS IN THE ENTIRE WORLD will be resolved.


> Unless you add domains on this same name server.
>

Correct .. but as you say you just add domains on the same name server.
Simple make the NS the localhost and assign localhost the A record of
127.0.0.1. Or lets say the name server is at 172.16.30.31 then you can do as
follows

           NS any.domain.name
any.domain.name A 172.16.30.31
*         A       172.16.30.30

That will work too.

regards
joe baptista
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20100202/f6405f55/attachment.html>


More information about the bind-users mailing list