sample zone files
2009-05-13 13:17:35来源:未知 阅读 ()
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
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
- Freebsd oracle 10g 2009-05-13
- FreeBSD下nginx+fast-cgi+mysql+zend的实现 2009-05-13
- gd 安装报错.求助 2009-05-13
- KDE/FreeBSD 测试 QT-4.5.1. 2009-05-13
- OpenBSD 4.5下安装Gnome 2.24成功! 2009-05-13
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash