sample zone files

2009-05-13 13:17:35来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折


see also
Getting local names to resolve (DNS)
.
About these examples
Please note that all names and numbers in these examples have been changed for security reasons.  These are examples and are not exact copies of the files used on our subnet.
It is important to note that FreeBSD 2.2.* uses a different version of named than FreeBSD 3.*.  In fact, the configuration file is a different name.  named.boot is for FreeBSD 2.2.* (BIND 4) and named.conf is for FreeBSD 3.*.
The zone files
The following files collectively define the zones of
our subnet
.
/etc/resolv.conf
/etc/namedb/named.boot
/etc/namedb/named.conf
/etc/namedb/named.dvl
/etc/namedb/named.dvl.rev
/etc/namedb/named.localhost
/etc/namedb/named.localhost.rev
named.boot should already exist on your system.  The other files will be created as needed.  I suggest you substitute your own domain name for the dvl portion of the file names.  The named.localhost and named.locahost.rev files can be copied to your system unchanged from this example.
The above files are referred to as zone files and I've provided copies of mine below.
/etc/resolv.conf
This file tells DNS how to resolve names.  Or rather, it tells it where to find the answers.  For my system, I have the following entries.  Note that
domain                www.example.org
nameserver        127.0.0.1                # the freebsd box
nameserver        12.34.56.78                # change this to your ISPs name server
/etc/namedb/named.boot
Use this example if you are using BIND 4 (FreeBSD 2.2.*), otherwise, use
/etc/namedb/named.conf
.
This file is referred to by an entry in /etc/rc.conf.  See the
Starting the DNS Server
section of the
PPP - Pedantic PPP Primer
for details.  In effect, the following entries tell DNS where to find more information.
You should subtitute your own domain for www.example.org but remember to retain the periods where they occur.  They are very important.
cache   .                       named.root
primary www.example.org.        named.dvl
primary 0.0.10.IN-ADDR.ARPA          named.dvl.rev
primary localhost               named.localhost

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:Getting local names to resolve (DNS) (named - the

下一篇:installing nslint - debug your DNS