domain name entries in a zone
David Botham
DBotham at OptimusSolutions.com
Wed Jun 2 11:47:13 UTC 2004
bind-users-bounce at isc.org wrote on 05/28/2004 12:42:11 PM:
> Hello All,
>
> I would like to start some conversations around valid domain name =
> entries in a zone file. It would seem to me that out of the more common
=
> records the only valid entries for a domain name would be a SOA record,
=
> some MX records and some NS records. We have several customers that =
> would like an A record for the domain name. So that when some enters =
> foo.com in the browser the user would actually get to the web site. =
> Some customers would even like a CNAME record for the domain name, so =
> that they could have a primary domain and have other domains CNAME to =
> the primary domain. I have tested this in BIND 9 and it doesn't seem to
=
By now you have read the other posts on why the CNAME idea is not going to
work. However, a work around might be to use a generic zone db file for
all the "like" domains. This work around only works if all the domains in
question are hosted on the same name server. Here is a sample generic
zone db file that might work (there is also a recipe for this in Cricket's
Cookbook):
;Generic db file for all domain names at web site on IP address
10.10.10.1.
$TTL 1d
@ IN SOA ns1.foo.com. postmaster.foo.com. (
2004050701 ;Serial as yyyymmddnn
10800 ;Refresh Interval
3600 ;Retry Interval
604800 ;Expire Timeout
3600) ;Negetive Caching TTL
;Name Servers
@ IN NS ns1.foo.com.
@ IN NS ns2.foo.com.
;Mail Exchangers
;Other Zone Data
@ IN A 10.10.10.1
www IN CNAME @
hth,
Dave...
> like the CNAME record for a domain. I have found very little about this
=
> topic on the web so I figured this list could provide me some direction.
>
> Thanks,
> Preston
>
>
More information about the bind-users
mailing list