转发DNS安装配置

 

更新配置文件(只需更改我写出来的)

[root@room8pc205 桌面]# yum -y install bind-chroot

13         listen-on port 53 { 192.168.1.105; };

 14         #listen-on-v6 port 53 { ::1; };

 21         allow-query     { any; };

34         forwarders { 61.139.2.69;  };

 35         dnssec-enable no;

 36         dnssec-validation no;

[root@room8pc205 桌面]# systemctl restart named

测试

[root@room8pc205 桌面]# nslookup

> server 192.168.1.105

Default server: 192.168.1.105

Address: 192.168.1.105#53

> set q=a

> www.baidu.com

Server:      192.168.1.105

Address:   192.168.1.105#53

 

Non-authoritative answer:

www.baidu.com  canonical name = www.a.shifen.com.

Name: www.a.shifen.com

Address: 14.215.177.39

Name: www.a.shifen.com

Address: 14.215.177.38

posted @ 2021-07-15 14:46  落樰兂痕  阅读(74)  评论(0编辑  收藏  举报