#仅客户端 vi /etc/sysconfig/network-scripts/ifcfg-eno16777736 DNS1=192.168.1.100 vi /etc/sysconfig/network NETWORKING=yes HOSTNAME=lin01.example.local vi /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 vi /etc/resolv.conf nameserver 192.168.1.100 systemctl restart network.service #服务器端 yum install bind bind-utils service named start cp /etc/named.conf /etc/named.conf.bak vim /etc/named.conf options { listen-on port 53 { 127.0.0.1; 192.168.1.100; }; #need change listen-on-v6 port 53 { ::1; }; directory "/var/named"; dump-file "/var/named/data/cache_dump.db"; statistics-file "/var/named/data/named_stats.txt"; memstatistics-file "/var/named/data/named_mem_stats.txt"; allow-query { localhost; 192.168.1.0/24;}; #need change recursion yes; dnssec-enable yes; dnssec-validation yes; dnssec-lookaside auto; /* Path to ISC DLV key */ bindkeys-file "/etc/named.iscdlv.key"; managed-keys-directory "/var/named/dynamic"; pid-file "/run/named/named.pid"; session-keyfile "/run/named/session.key"; }; logging { channel default_debug { file "data/named.run"; severity dynamic; }; }; zone "." IN { type hint; file "named.ca"; }; include "/etc/named.rfc1912.zones"; include "/etc/named.root.key"; #add following zone "example.local" IN { type master; file "example.zone"; }; zone "1.168.192.in-addr.arpa" IN { type master; file "192.168.1.zone"; cp /var/named/named.localhost /var/named/example.zone vim /var/named/example.zone $TTL 1D @ IN SOA lin01.example.local. root.example.local. ( 0 ; serial 1D ; refresh 1H ; retry 1W ; expire 3H ) ; minimum @ IN NS lin01.example.local. @ IN A 192.168.1.100 @ IN A 192.168.1.91 @ IN A 192.168.1.92 lin01 IN A 192.168.1.100 lin10 IN A 192.168.1.91 lin09 IN A 192.168.1.92 cp /var/named/named.localhost /var/named/192.168.1.zone vim /var/named/192.168.1.zone $TTL 1D @ IN SOA lin01.example.local. root.example.local. ( 0 ; serial 1D ; refresh 1H ; retry 1W ; expire 3H ) ; minimum @ IN NS lin01.example.local. @ IN PTR example.local. lin01 IN A 192.168.1.100 lin09 IN A 192.168.1.92 lin10 IN A 192.168.1.91 100 IN PTR lin01.example.local. 91 IN PTR lin10.example.local. 92 IN PTR lin09.example.local. systemctl start named.service systemctl status named.service systemctl restart named.service systemctl enable named
配置DNS 服务
原创
©著作权归作者所有:来自51CTO博客作者eafan的原创作品,请联系作者获取转载授权,否则将追究法律责任
上一篇:ks.cfg文件内容
下一篇:安装分布式文件系统MooseFS
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
配置DNS服务
&n
职场 休闲 o(∩_∩)o...支持支持谢谢啦 -
DNS服务的配置
DNS服务的配置 一.  
职场 休闲 DNS服务配置 -
DNS服务器配置
DNS服务器配置,配置辅助DNS,DNS实现轮询!
linux 服务器 Internet 因特网 domain -
Centos 5 DNS服务配置
在做test.org测试时,仍有错误。
配置 DNS 服务 休闲 Centos -
配置DNS服务器
配置DNS服务器,详细的实验步骤讲解。(下载Word文档附件)
职场 DNS 服务器 休闲 -
Kubernetes集群配置DNS服务
k8sDns服务
k8sDns服务