I currently have a working BIND nameserver Running on my dedicated ubuntu server box. I have one zone set up.. example.com with its own nameservers.

If I want to add a new domain to point to the server, can I somehow add it to the existing zone? Or do I have to create a new zone and setcoms nameservers to example.com?


Yes, you have to. But you can point to the same zone-file, if you want to.

Let's assume you have the following named.conf at the moment:

zone "example.com" in {
        type master;
        file "example.com.zone";
        allow-query { any; };

and the following example.com.zone:

@ IN SOA ns.example.com. hostmaster@example.com. ( 
        2012061001 ; serial 
        8H ; refresh 
        2H ; retry 
        1W ; expiry 
        11h) ; minimum 

        IN      NS      ns1.example.com. 
        IN      NS      ns2.example.com.

        IN      A
*       IN      A
ns1     IN      A
ns2     IN      A

You can safely add

zone "example.org" in {
        type master;
        file "example.com.zone";
        allow-query { any; };

to your named.conf and your bind will serve example.org with the settings of example.com.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.