momo6656

 

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

[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

分类:

技术点:

相关文章:

  • 2021-07-22
  • 2021-12-27
  • 2022-12-23
  • 2022-12-23
  • 2021-10-03
  • 2021-09-02
  • 2021-11-01
猜你喜欢
  • 2021-11-01
  • 2021-12-07
  • 2022-12-23
  • 2021-12-10
  • 2021-10-25
  • 2021-10-05
  • 2022-12-23
相关资源
相似解决方案