Toggle navigation
Home
安装部署
Archives
Tags
bind9
2021-12-30 05:14:58
13
0
0
louyj
Install ``` yum install bind bind-utils ``` backup named.conf file cp /etc/named.conf /etc/named.conf.bak configure named.conf ``` listen-on port 53 { 127.0.0.1; 192.168.0.201; }; allow-query { any; }; zone "louyj.com" IN{ type master; file "louyj.com.zone"; }; ``` type: - master指的是主dns解析 - slave指的是从dns解析 - hint指的是根域名解析(根提示域) - forward指的是转发,转发不使用file add zone vi /var/named/louyj.com.zone ``` $TTL 1D @ IN SOA ns1.louyj.com. ns2.louyj.com. ( 0;serial 1D;refresh 1H;retry 1W;expire 3H;minimum ); @ IN NS ns1 @ IN NS ns2 ns1 IN A 192.168.0.201 ns2 IN A 192.168.0.200 www IN A 192.168.0.201 esxi IN A 192.168.0.201 cloud IN A 192.168.0.201 image IN A 192.168.0.201 media IN A 192.168.0.201 note IN A 192.168.0.201 nexus IN A 192.168.0.201 ceph-grafana IN A 192.168.0.201 ceph IN A 192.168.0.201 code IN A 192.168.0.201 dbeaver IN A 192.168.0.201 che IN A 192.168.0.201 devfile-registry-eclipse-che IN A 192.168.0.201 dockerhub IN A 192.168.0.201 estool IN A 192.168.0.201 ghost IN A 192.168.0.201 git IN A 192.168.0.201 graph IN A 192.168.0.201 ide IN A 192.168.0.201 image01 IN A 192.168.0.201 jump IN A 192.168.0.201 jumpserver IN A 192.168.0.201 nextcloud01 IN A 192.168.0.201 tty IN A 192.168.0.201 *.che IN A 192.168.0.201 ``` SOA叫做起始授权机构记录,NS用于标识多台域名解析服务器,SOA记录用于在众多NS记录中那一台是主服务器。 SOA 记录表示此域名的权威解析服务器地址。 当要查询的域名在所有递归解析服务器中没要域名解析的缓存时,就会回源来请求此域名的SOA记录,也叫权威解析记录。 check configuration named-checkconf -z #or named-checkconf restart service service named restart nslookup test ``` nslookup > www.louyj.com ```
Pre:
Kafka Deployment
Next:
openvpn
0
likes
13
Weibo
Wechat
Tencent Weibo
QQ Zone
RenRen
Submit
Sign in
to leave a comment.
No Leanote account?
Sign up now.
0
comments
More...
Table of content
No Leanote account? Sign up now.