In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Yum install bind-y # install the dns service
Vi / etc/named.conf # enter the dns configuration file to modify the following content: listen-on port 53 {any;}; allow-query {any;}
Vi / etc/named.rfc1912.zones: add the following to the last line: zone "hello.com" IN {/ / forward parsing type master; file "hello.zone";}; zone "80.168.192.in-addr.arpa" IN {/ / reverse parsing type master; file "hello.local";} Cd / var/namedcp-p named.localhost hello.zone / / forward parsing template vi hello.zone$TTL 1D @ IN SOA hello.zone 3040401509@qq.com (0; serial 1D; refresh 1H Retry 1W; expire 3H); minimum NS dns.hello.com.dns IN A 192.168.80.100www IN A 192.168.80.101ftp IN A 192.168.80.102
Cp-p named.localhost hello.local / / reverse parsing template
Vi hello.local
$TTL 1D
@ IN SOA hello. 3040401509@qq.com (
0; serial
1D; refresh
1H; retry
1W; expire
3H); minimum
NS dns.hello.com.
100 IN PTR dns.hello.com.
101 IN PTR www.hello.com.
Check the main configuration file syntax for errors:
Named-checkconf
Systemctl start named Startup Service
Netstat-anpt | grep named
! [] (https://s1.51cto.com/images/blog/201904/04/b7b30a20bf2b8cd096c57af923b861c4.jpg?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
Vi / etc/sysconfig/network-scripts/ifcfg-ens32
DNS1=192.168.80.100
! [] (https://s1.51cto.com/images/blog/201904/04/77efd6b912f0ba5637c59ac6dafe6034.jpg?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)> systemctl restart network > nslookup www.hello.com! [] (https://s1.51cto.com/images/blog/201904/04/3ce4a31281a70ac11e5590dfc4dc1826.jpg?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100, Nslookup > 192.168.80.100! [] (https://s1.51cto.com/images/blog/201904/04/c775ec6022840c0f461b9bc026014973.jpg?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=))
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.