creating subdomain and aliases

Danny Mayer mayer at gis.net
Sun Nov 24 02:56:21 UTC 2002


At 11:36 AM 11/9/02, Joshua Kuo wrote:

>hi all:
>
>I want to create a sub domain "foo.networks.com", off
>"networks.com", there is a machine in "foo.networks.com" called
>"bar.networks.com", and i want all mail in the "foo.networks.com"
>domain to go to "bar.networks.com".

Did you mean bar.foo.networks.com? bar.networks.com cannot be in the 
foo.networks.com domain.

>i also want it so that when people access "box1.foo.networks.com" they
>will be redirected to "bar.networks.com"...

in the foo.networks.com zone:

box1    IN CNAME bar.networks.com.


>so far i have been unsuccessful trying to create the sub domain with the
>following:
>
>
>(taken from named.conf)
>
>zone "networks.com" {
>   type master;
>   $TTL 86400
>   @       IN      SOA     carbon.networks.com. dns.networks.com. (
>                         0211080029      ; Serial
>                         28800                   ; Refresh
>                         7200                    ; Retry
>
>
>                        604800           ; Expire
>                         86400)                  ; Minimum TTL
>   @   NS  carbon.networks.com.
>       NS  lithium.networks.com.
>
>   $ORIGIN networks.com
>
>   @                     A           128.64.189.21
>                         MX 300      mail.networks.com.
>
>   ; i wish to have this machine acting for the "foo.networks.com"
>   ; sub-domain, taking its mail and web traffic
>   bar                           A                       128.64.189.87
>}
>
>zone "foo.networks.com" {
>   type master;
>   $TTL 86400
>
>   @       IN      SOA     carbon.networks.com. dns.networks.com. (
>                         0211080029      ; Serial
>                         28800                   ; Refresh
>                         7200                    ; Retry
>                         604800                  ; Expire
>                         86400)                  ; Minimum TTL
>   @   NS  carbon.networks.com.
>       NS  lithium.networks.com.
>
>   $ORIGIN  foo.networks.com

This is unnecessary. That is your origin.


>   ; for now, i would like all the machines in this sub-domain
>   ; to point to bar.networks.com
>   @                             CNAME           bar.networks.com.

This is illegal.

>                                 MX 100          bar.networks.com.

That's what should have.


>   box1                          CNAME           bar.networks.com.
>   box2                          CNAME           bar.networks.com.
>}
>

These are fine.



>when i run nslint, i get the following error messsage:
>
>nslint: "cname" foo.networks.com. has other records
>

Right, see above.

Danny

>what is the best way to cross-reference names like this?
>
>any help or pointers would be greatly appreciated, i have been scratching
>my head on this one for a while...



More information about the bind-users mailing list