In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
            
                    
                
2025-11-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Linux builds a separated domain name server
Separation and resolution mainly provides different domain name resolution records according to different clients, and different resolution results are provided when clients from different addresses request to resolve the same domain name.
Content of the experiment:
Three hosts are required, one Linux provides separate parsing services, one client acts as an Internet extranet user, and one client acts as a corporate intranet LAN user.
Linux: intranet ens33 192.168.10.33 Universe 24 extranet ens37 172.25.25.25 Universe 24 domain name address is www.wawa.com
Two clients
Server configuration:
[root@lin10 ~] # yum install-y bind bind-utils installs dns service
[root@lin10 ~] # systemctl stop firewalld turn off the firewall
[root@lin10 ~] # setenforce 0 close selinux
Edit the main profile
[root@lin10 ~] # vi / etc/named.conf
Skip to 52 lines and delete the following four lines (delete at the beginning of zone)
Check the grammar
[root@lin10 ~] # named-checkconf
Edit area profile
[root@lin10 ~] # vi / etc/named.rfc1912.zones
Delete everything at the beginning of zone (or add view configuration to each)
Add the following
[root@lin10 ~] # named-checkconf check syntax
Edit area data profile
[root@lin10 ~] # cd / var/named
Copy the private and public network configuration files from the configuration template
[root@lin10 named] # cp-p named.localhost wawa.con.zone.lan
[root@lin10 named] # cp-p named.localhost wawa.con.zone.wan
Modify intranet files
[root@lin10 named] # vi wawa.con.zone.lan
[root@lin10 named] # vi wawa.con.zone.wan
Start named after that
Go to two clients to verify the effect
Verify the private network segment
Verify the public network segment
The experiment has been successful.
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.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





            
            About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.