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

On 8/31/07 9:15 PM, mufurcz wrote:
> Greetings,
> 
> Need advise how to setup one DNS server for multiple domain
> names, like:  abcd._com_.xy, abcd._net_.xy, abcd._org_.xy, and
> abcd._biz_.xy
> 
> The name server FQDN is server1.abcd._com_.xy (first domain)
> but, how to name the server in the SOA record for the rest
> of the domains?

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-----

Reply via email to