DNS正向解析區域子域
DNS正向解析區域子域
DNS父域的配置
- yum install bind -y
- vim /etc/named.conf
- // listen-on port 53 { 127.0.0.1; };
// allow-query { localhost; };
dnssec-enable no;
dnssec-validation no;
- vim /etc/named.rfc1912.zones
- zone "xuepeng.com" IN {
type master;
file "xuepeng.com.zone";
};
- cd /var/named
cp -p named.localhost xuepeng.com.zone
vim xuepeng.com.zone
$TTL 1D
$ORIGIN xuepeng.com.
@ IN SOA ns1 admin (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
NS ns1
ns1 A 192.168.209.7
beijing NS ns2
ns2 A 192.168.209.6
www CNAME websrv
websrv A 192.168.209.20
ftp A 192.168.209.30
- systemctl start named
DNS子域的配置
- yum install bind -y
- vim /etc/named.conf
- // listen-on port 53 { 127.0.0.1; };
// allow-query { localhost; };
- vim /etc/named.rfc1912.zones
- zone "beijing.xuepeng.com" IN {
type master;
file "beijing.xuepeng.com.zone";
};
- cd /var/named/
cp -p named.localhost beijing.xuepeng.com.zone
vim beijing.xuepeng.com.zone

- systemctl start named
DNS客戶端測試

歡迎關注本站公眾號,獲取更多信息