$origin question
Matt Larson
matt at acmebw.com
Sun Aug 22 04:29:46 UTC 1999
At 09:49 PM 8/21/99 +0000, WEBMASTER wrote:
>in named.boot i have
>
>primary mydomain.com db.mydomain.com.db
>primary mydomain.net db.mydomain.net.db
>primary mydomain.org db.mydomain.org.db
>
>can i combine the $origin and have
>
>$origin com.
>$origin net.
>$origin org.
>in one file along with all of the other info
Not with those three primary directives. A modern BIND name server ignores
out-of-zone data, e.g., you can't have a mydomain.net record in the
mydomain.com zone data file.
Instead, do something like this:
primary mydomain.com db.mydomain
primary mydomain.net db.mydomain
primary mydomain.org db.mydomain
Note that all three zones load from the same file. For this to work, you
can't use any fully qualified domain names on the left side of resource
records. So you need db.mydomain to look something like this:
@ in soa blah blah blah
ns ns1
ns ns2
mx 10 mail
a 1.2.3.4
www cname @
ftp cname @
mail a 2.3.4.5
Just keep in mind that the origin of this file will be treated differently
depending on which zone the name server is interpreting it as the zone
database file for.
Matt
--
Matt Larson <matt at acmebw.com>
Acme Byte & Wire--DNS consulting, training and support
Need DNS and BIND training? See www.acmebw.com/training.htm
More information about the bind-users
mailing list