creating subdomain and aliases
David Botham
dns at botham.net
Mon Nov 25 21:25:34 UTC 2002
> -----Original Message-----
> From: bind-users-bounce at isc.org [mailto:bind-users-bounce at isc.org] On
> Behalf Of Joshua Kuo
> Sent: Saturday, November 09, 2002 11:36 AM
> To: comp-protocols-dns-bind at isc.org
> Subject: creating subdomain and aliases
>
>
> 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"
How do I put this...????,
No, there is not a machine named bar.networks.com in the
foo.networks.com zone. I know this because *every* name in
"foo.networks.com" will end in "foo.networks.com" (without exception).
Obviously, "boo.networks.com" does not end in "foo.networks.com". Did
you mean "boo.foo.networks.com"?
> domain to go to "bar.networks.com".
>
> i also want it so that when people access "box1.foo.networks.com" they
> will be redirected to "bar.networks.com"...
>
> so far i have been unsuccessful trying to create the sub domain with
the
> following:
>
>
> (taken from named.conf)
Do not put your zone file definitions *in* named.conf. Put them in
other files and reference those files in 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
>
> ; for now, i would like all the machines in this sub-domain
> ; to point to bar.networks.com
> @ CNAME bar.networks.com.
> MX 100 bar.networks.com.
>
> box1 CNAME
bar.networks.com.
> box2 CNAME
bar.networks.com.
> }
>
>
>
>
> when i run nslint, i get the following error messsage:
>
> nslint: "cname" foo.networks.com. has other records
>
>
>
> 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