In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Today, I will talk to you about how to install bind on the Linux server. Many people may not know much about it. In order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.
Install bind
1. To install bind software, you need to install 3 bind, bind-chroot and bind-util.
[root@localhost pub] # yum install-y bind bind-chroot bind-utils
Installed:
Bind.i686 32 9.8.2-0.17.rc1.el6_4.6
Complete!
2. Modify the configuration file "/ etc/named.conf" and append "forward"
[root@localhost pub] # gedit / etc/named.conf
Options {
Listen-on port 53 {127.0.0.1;}
# listen-on-v6 port 53 {:: 1;}
Directory "/ var/named"
Dump-file "/ var/named/data/cache_dump.db"
Statistics-file "/ var/named/data/named_stats.txt"
Memstatistics-file "/ var/named/data/named_mem_stats.txt"
Allow-query {localhost;}
Recursion yes
Dnssec-enable yes
Dnssec-validation yes
Dnssec-lookaside auto
/ * Path to ISC DLV key * /
Bindkeys-file "/ etc/named.iscdlv.key"
Managed-keys-directory "/ var/named/dynamic"
Forward only
Forwarders {
8.8.8.8
}
}
3. Set up the firewall, port 53 is needed here. Port 53 of tcp and udp needs to be opened. Remember to restart the firewall.
[root@localhost pub] # gedit / etc/sysconfig/iptables
-An INPUT-m state-- state NEW-m tcp-p tcp-- dport 443-j ACCEPT
-An INPUT-m state-- state NEW-m tcp-p tcp-- dport 53-j ACCEPT
-An INPUT-m state-- state NEW-m udp-p udp-- dport 53-j ACCEPT
[root@localhost phpMyAdmin] # service iptables restart
Iptables: set chain to policy ACCEPT:filter nat [OK]
Iptables: clear firewall rules: [OK]
Iptables: uninstalling module: [OK]
Iptables: apply firewall rules: [OK]
Iptables: load additional modules: nf_conntrack_ftp [OK]
[root@localhost phpMyAdmin] #
4. Start the service
[root@localhost pub] # service named start
Start named: [OK]
[root@localhost pub] #
5. Test. The command format is "dig website @ ip". Here, the loopback address is used to test whether the request is successful.
[root@localhost pub] # dig www.baidu.com @ 127.0.0.1
; DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6_4.6 www.baidu.com @ 127.0.0.1
;; global options: + cmd
;; Got answer:
;;-> > HEADERHEADER
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.