hostname=subdomain?

Mark Damrose mdamrose at elgin.cc.il.us
Tue Sep 17 20:42:58 UTC 2002


"cam" <camccuk at yahoo.com> wrote in message
news:am80ac$fu93$1 at isrv4.isc.org...
>
> Hello all,
>
> Not a great subject line but about the best I could do... I am working
> my way through the spectacularly brilliant "DNS & Bind" but haven't
> quite come across the details for this set-up although they put my
> mind to rest that this is at least a viable configuration...
>
> We want to serve a subdomain from the same zone data files as our
> domain and use the subdomain as a hostname but I am confused as to how
> to express this (bad enough in english). Since we are using a single
> nameserver and zone file I hoped I would just need to set the new
> origin and do (something like) the following:
>
> @       IN      SOA     ns.our.domain.co.uk. root.our.domain.co.uk. (
>                              blah
>                            3600 )       ; Minimum (1 hr)
>
> ns          IN      A       192.168.150.1
> alice       IN      A       192.168.150.2
>
> $ORIGIN sub.our.domain.co.uk.
> sub IN A 192.168.150.10

Because you changed the $ORIGIN, this will not do what you want.  It will
produce sub.sub.our.domain.co.uk.  Presuming the old $ORIGIN was
"our.domain.co.uk.", it would have worked if you left it out.  When in
doubt, fully qualify:
sub.our.domain.co.uk. IN A 192.168.150.10

> IN MX 10 sub.our.domain.co.uk.
> bob IN CNAME sub.our.domain.owl.co.uk.
>
> What I'm trying to do is use the same name for the host as the
> subdomain but still be able to alias other names to it (this is for
> reasons I won't bore you with). AFAICT this should be ok but I have
> clearly specified this incorrectly: the above config doesn't seem to
> work and I don't quite get why.
>
> I believe its bind 8.2.3 (apologies but I can't get into the server
> room at the moment to confirm!)
>
> Vastly appreciate any insight.
>
> cam
>




More information about the bind-users mailing list