Linux下使用Bind搭建域名服务器

本文介绍了在Ubuntu 10.04上如何更新并安装BIND9域名服务器,详细阐述了BIND8与BIND9的区别,如多线程、更严格的区域配置文件语法。在配置过程中,通过编辑`named.conf.local`文件创建主域名和反向解析区域,并给出具体的配置示例。
摘要由CSDN通过智能技术生成

 

学校的DNS服务器是Linux操作系统,绑定DNS的时候发现总有点问题,常常客户端电脑无法得到正确的解析。于是我就自己研究了下Linux下的绑定域名设置bind软件。

我本地用的是ubuntu 10.04,  使用前更新了下bind软件至最新bind9

bind 使用端口号53来进行通信,包括与其它DNS服务器交换解析信息,所以此商品不能被其它程序占用。

bind8 与bind9 的区别(自己翻译的,提供原文)

除了使用了多线程、程序代码重构,从而提供了更好的稳定性和安全性,还有其它一些区别:

Apart from being multi-threaded, and a complete code rewrite - which should provide better stability and security in the long term, there are other differences

如果在named.conf文件中有语法错误,BIND9会将它写到日志文件中并且不再重启域名服务器,BIND8会记录日志然后服务死掉。

If there is a syntax error in named.conf, BIND9 will log errors and not reload the named server. BIND8 will log errors and the daemon will die!

取得控制权的TSIGs(shared keys)扩展支持,比如“update-policy"可以取得控制从而动态更新数据。

Extensive support of TSIGs (shared keys) for access control, for example, “update-policy” can be used for fine grained access control of dynamic updates.

启动/停止/重启 工具等,rndc与bind8的ndc不同-不同的通信、授权和特性。

The tool for starting/stopping/reloading etc., rndc is different from the v8 ndc - different communications, authentication and features.

区域配置文件的语法更加严格(比如TTL行必须存在)

Syntax in zone files is more rigorously checked (e.g. a TTL line must exist)

有关named.conf文件的设定

bind8的"check-names"和"statistics-interval"这两项设定没有被移植到bind9中

v8 options ‘check-names’ and ‘statistics-interval’ are not yet implemented in V9.

"auth-nxdomain" 的默认值是"no",如果你没有手动设定这一项,bind9会在启动时生成相应的一条日志消息

the default for the option ‘auth-nxdomain’ is no

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值