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

WeChat public account
Shulou
2025-11-01 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.

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.