Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

CentOS7 DNS server bind installation configuration

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Domain control dc.yimitest.com 192.168.20.201Comp24

DNS dns.yimitest.com 192.168.20.154/24

Domain control dc.yimitest.com 192.168.30.201Comp24

DNS dns30.yimitest.com 192.168.30.154/24

192.168.20.154 configuration

Vi / etc/sysconfig/selinuxSELINUX=disabledreboot

Firewall-cmd-add-port=53/udp-permanentfirewall-cmd-reload

Yum install bind- yyum install bind-chroot bind-utils-y

Vi / etc/named.conf

Listen-on port 53 {192.168.20.154X 127.0.0.1;} allow-query {any;}

Vi / etc/named.rfc1912.zones

-

Zone "yimitest.com" IN {type master; file "yimitest.com.zon"; allow-update {192.168.20.201 / / Domain Control ip address};}

-

Vi / var/named/yimitest.com.zon

-

$TTL 1D$ORIGIN yimitest.com@ IN SOA dns.yimitest.com. Admin.yimitest.com (20170526; serial 1D; refresh 1H; retry 1W; expire 3H; minimum) IN NS dnsdns IN A 192.168.20.154dc IN A 192.168.20.201

-

Named-checkconf / etc/named.confnamed-checkzone yimitest.com / var/named/yimitest.com.zonchgrp named/ var/named/yimitest.com.zonsystemctl restart namedsystemctl enable namedsystemctl status nameddig @ 192.168.20.154 dns.yimitest.comdig @ 192.168.20.154 dc.yimitest.com

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report