Re: DNS server setup for multiple domains

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <misc@...>
Date: Saturday, September 1, 2007 - 4:34 pm

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 8/31/07 9:15 PM, mufurcz wrote:

1. Add more zones for your new domains in your named.conf file.

Here's a bind 9 example:

zone "abcd.com.xy" in {
type master;
file "/etc/namedb/master/db.abcd.com.xy";
allow-query { any; };
allow-transfer { xfer; };
};

zone "2.1.666.in-addr.arpa" in {
type master;
file "/etc/namedb/master/db.666.1.2";
allow-query { any; };
allow-transfer { xfer; };
};

zone "abcd.net.xy" in {
type master;
file "/etc/namedb/master/db.abcd.net.xy";
allow-query { any; };
allow-transfer { xfer; };
};

zone "abcd.org.xy" in {
type master;
file "/etc/namedb/master/db.abcd.org.xy";
allow-query { any; };
allow-transfer { xfer; };
};

2. Create new zone files for each zone. They'll look just like your
abcd.com.xy zone file except SOA and other references to "com" should
instead read "net" or "org" or whatever. (You may want to keep the
hostmaster's email address in the .com domain; that's up to you.)

3. Run "rndc reload" or restart your nameserver.

Comments:

a. Set up only one reverse zone. An IP address should reverse-resolve to
exactly one hostname.

b. You must be authoritative for the domains and network addresses,
respectively, for the new domains and reverse lookups to work. That's
between you, your registrar (for the domains), and your ISP(s) (for the
IP addresses).

c. "DNS & Bind" by Albitz and Liu is still THE reference on DNS. Highly
recommended.

dn
iD8DBQFG2cy4yPxGVjntI4IRAmN+AKCPhXbVEg/gEZ8oy1nUl5lrOq4MWQCfSVQt
LAW87qfpMPGAqm8v+SgWuBs=
=iZGy
-----END PGP SIGNATURE-----

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
DNS server setup for multiple domains, mufurcz, (Sat Sep 1, 12:15 am)
Re: DNS server setup for multiple domains, David Newman, (Sat Sep 1, 4:34 pm)
Re: DNS server setup for multiple domains, Craig Skinner, (Sat Sep 1, 7:58 pm)