delegate zone

Barry Margolin barmar at alum.mit.edu
Thu Jul 1 19:20:33 UTC 2004


In article <cc1gjb$2ppo$1 at sf1.isc.org>,
 "tanawat at konsombat.com" <tanawat at konsombat.com> wrote:

> Hi
>        I'm trying to delegate zone to another server (all record) below 
> is my config

You can only delegate subdomains, you can't delegate the zone itself.  
This has to be done in the parent zone.  So if you want mydomain.com to 
be delegated to ns.another.com and ns2.another.com, contact the domain 
registrar and change the registration.

> 
> On ns.myns.com
> file /etc/named.conf
> 
> zone "mydomain.com" {
>         type master;
>         file "db.mydomain.com";
>         };
> 
> ---------------------------------------------------
> file db.mydomain.com
> 
> $ttl 86400
> $ORIGIN com.
> mydomain    IN      SOA     ns.myns.com. root.ns.myns.com. (
>                 2004070100      ;Serial
>                 21600           ;Refresh
>                 3600            ;Retry
>                 604800          ;Expire
>                 86400 )         ;Minimum
>  $ORIGIN mydomain.com.
> mydomain.com.          IN      NS      ns.another.com.
> mydomain.com.          IN      NS      ns2.another.com.
> 
> -------------------------------------------------------
> 
> 
> On ns.another.com
> file /etc/named.conf
> 
> zone "mydomain.com" {
>         type master;
>         file "db.mydomain.com";
>         };
> 
> ---------------------------------------------------
> file db.mydomain.com
> 
> $ttl 86400
> $ORIGIN com.
> mydomain    IN      SOA     ns.myns.com. root.ns.myns.com. (
>                 2004070100      ;Serial
>                 21600           ;Refresh
>                 3600            ;Retry
>                 604800          ;Expire
>                 86400 )         ;Minimum
>                 IN      NS      ns.another.com.
>                 IN      NS      ns2.another.com.
> $ORIGIN mydomain.com.
> www            IN      CNAME   www.somewhere.com.
> -------------------------------------------------------
> 
> 
> but when I dig www.mydomain.com ns.myns.com didn't answer
> 
> Please Help

-- 
Barry Margolin, barmar at alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


More information about the bind-users mailing list