Ubuntu上安装bind9

一、python

安装:vim

 apt-get install bind9oop

二、rest

配置:
/etc/bindcode

vim named.conf.localget

添加it

zone "xxx.com"
{
        type master;
        file "/etc/bind/db.xxx.com";
};
 ast

/etc/bindclass

新建db.xxx.com文件 cp db.local db.xxx.com配置

;
; BIND data file for local loopback interface
;
$TTL	604800
@	IN	SOA	localhost. root.localhost. (
			      2		; Serial
			 604800		; Refresh
			  86400		; Retry
			2419200		; Expire
			 604800 )	; Negative Cache TTL
;
@	IN	NS	localhost.
@	IN	A	10.8.15.168
@	IN	AAAA	::1
www	IN	A	10.8.15.168
mail	IN	A	10.8.15.168

以后重启bind9

/etc/init.d/bind9 restart

相关文章
相关标签/搜索