In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Configure bind
1. Make sure that bind software has been installed. You need to install 3 bind, bind-chroot and bind-util.
[root@localhost wj] # yum install-y bind bind-chroot bind-util
2. Modify the configuration file "/ etc/named.conf"
[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"
. . .
}
.
Zone "david.cn" IN {/ / forward resolution configuration
Type master
File "david.cn"; / / pay attention to the name, which will be used later
Allow-update {none;}
}
Zone "0.168.192.in-addr.arpa" IN {/ / reverse parsing configuration
Type master
File "192.168.0"; / / pay attention to the name, which will be used later
Allow-update {none;}
}
3. Edit the forward configuration file "/ var/named/david.cn". This file does not exist. You need to create it yourself.
[root@localhost pub] # gedit / var/named/david.cn
$TTL 86400
@ IN SOA bind.david.cn. Root.david.cn. (
2011071001
3600
1800
604800
86400
)
IN NS bind.david.cn.
IN A 192.168.0.113 / / this is the native ip
IN MX 10 mailsrv.david.cn.
Bind IN A 192.168.0.113
Mailsrv IN A 192.168.0.250
Www IN CNAME bind.david.cn.
4. Edit the reverse configuration file "/ var/named/192.168.0". This file does not exist. You need to create it yourself.
[root@localhost pub] # gedit / var/named/192.168.0
$TTL 86400
@ IN SOA bind.david.cn. Root.david.cn. (
2011071001
3600
1800
604800
86400
)
IN NS bind.david.cn.
IN PTR david.cn.
IN A 255.255.255.0
113 IN PTR bind.david.cn.
250 IN PTR mailsrv.david.cn
5. Restart the service (make sure that port 53 of the firewall is open)
[root@localhost wj] # service named restart
Stop named: [OK]
Start named: [OK]
[root@localhost wj] #
6. Testing
[root@localhost wj] # nslookup
> server 192.168.0.113 / / switch the dns server to the above configured
Default server: 192.168.0.113
Address: 192.168.0.113#53
> bind.david.cn / / forward parsing A type
Server: 192.168.0.113
Address: 192.168.0.113#53
Name: bind.david.cn
Address: 192.168.0.113
> mailsrv.david.cn / / forward parsing A type
Server: 192.168.0.113
Address: 192.168.0.113#53
Name: mailsrv.david.cn
Address: 192.168.0.250
> set q=mx / / forward parsing MX types
> david.cn
Server: 192.168.0.113
Address: 192.168.0.113#53
David.cn mail exchanger = 10 mailsrv.david.cn.
> www.david.cn / / forward parsing CNAME types
Server: 192.168.0.113
Address: 192.168.0.113#53
Www.david.cn canonical name = bind.david.cn.
> 192.168.0.113 / / reverse resolution
Server: 192.168.0.113
Address: 192.168.0.113#53
113.0.168.192.in-addr.arpa name = bind.david.cn.
> 192.168.0.250 / / reverse resolution
Server: 192.168.0.113
Address: 192.168.0.113#53
250.0.168.192.in-addr.arpa name = mailsrv.david.cn.0.168.192.in-addr.arpa.
>
A Linux learning platform has been made, and a prototype has come out at present, which you can refer to and use.
Link: https://pan.baidu.com/s/1GOLVU2CbpBNGtunztVpaCQ password: n7bk
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.