What's the RIGHT way to set up two zones?

Mark Tranchant mark at tranchant.plus.com
Fri Dec 19 14:15:22 UTC 2003


I'm currently running BIND 9 as a hidden master, providing a feed for
several secondary servers. My real hostname (as in the one that you
get on a reverse lookup of my IP) is tranchant.plus.com, and I'm
hosting two domains:

billericaybaptist.net
billericaychoral.org.uk

I couldn't figure out how to write the localhost part of the config
files from the documentation, so in the end, I've just left it out
which seems to work fine. Now I'm thinking that I ought to use my
server as a visible primary as none of my secondaries in is the UK. I
believe I need to add some local references to the server, but I don't
quite understand this bit.

My current named.conf is shown below. The root.hints file and the two
zone files are fine, and I'm happy with those. What else am I missing?

The server is on a NAT-ed LAN, although I don't believe that makes a
difference.

Many thanks for any help or insights.

=============================

key "rndc-key" {
        algorithm hmac-md5;
        secret "I'm not that stupid";
};

controls {
        inet 127.0.0.1 allow { localhost; } keys { rndc-key; };
};

acl "secondaries" {
        66.46.181.116;          // dns.secondary.org
        65.125.227.35;          // ns18.zoneedit.com

        195.20.105.149;         // ns0.xname.org
        195.20.105.150;         // test at xname.org
        203.115.193.183;        // ns1.twisted4life.com
        209.126.159.80;         // ns14.zoneedit.com
        213.133.115.5;          // ns1.xname.org
};

options {
        directory "/etc/namedb";
        allow-transfer { secondaries; };
        allow-query { secondaries; };
};

zone "." {
        type hint;
        file "named.root";
};

zone "billericaybaptist.net" {
        type master;
        file "billericaybaptist.net";
};

zone "billericaychoral.org.uk" {
        type master;
        file "billericaychoral.org.uk";
};

-- 
Mark.


More information about the bind-users mailing list