配置selinux
[root@testserver etc]# setup
弹出一个对话框。我们要进行的是防火墙配置,步骤如下:
选择“Firewall Configuration”---按 “Tab”键切换到“Run Tool”—回车—“Security Level”选项要在“Enabled”前面按一下“Tab”键---“SelLinux”选项要选“Disabled”—按一下“Tab”键---选中“Customize”---弹出新对话框---在“Other Port”栏目里输入“53:tcp 53:udp”—“OK”—返回上一个对话框—“OK”—对话框自动关闭。配置完成。
启动named
# service named start
# /etc/init.d/named start
测试
-------host----------
[root@testserver named]# host 10.25.61.32
32.61.25.10.in-addr.arpa domain name pointer
[root@testserver named]# host
has address 10.25.61.32
has IPv6 address ::1
[root@testserver named]#
---------nslookup--------------------------
[root@testserver named]# nslookup
>
Server: 10.25.61.32
Address: 10.25.61.32#53
Name:
Address: 10.25.61.32
> 10.25.61.32
Server: 10.25.61.32
Address: 10.25.61.32#53
32.61.25.10.in-addr.arpa name =
> exit
修改配置后记得重启
# service named restart
# /etc/init.d/named restart