learning target:
In this study, master built by Linux-based DNS server.
Experimental Procedure:
1, install BIND
2, put the firewall through DNS service
3, edit the main configuration file for BIND
4, document editing BIND domain management
5, the corresponding field edit log file
6, turn on or restart the service BIND
7, the client test
Command:
1, install BIND
BIND is the Linux platform, the most commonly used DNS software
[root@server Desktop]# yum install bind -y
2, put the firewall through DNS service
3, the main editing BIND configuration files
[root@server Desktop]# vim /etc/named.conf
Monitor port 53 on all interfaces
It allows all clients to query
4, document editing BIND domain management
[root@server Desktop]# vim/etc/named.rfc1912.zones
A new file added to the end of the field, the above paragraph where the best copy and paste, and then modify the
zone
"baidu.com" IN {
type master;
file "baidu.name";
allow-update { none; };
};
The above Zone " baidu.com " represents the domain name **
The following File " baidu.name " on behalf of the domain name record file **
5. Edit the file header record
[root@server Desktop]# vim /var/named/baidu.name
$TTL 1D
@ IN SOA baidu.com. admin.baidu.com. (
0 ;
serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
@ IN NS dns.baidu.com.
dns IN A 172.16.10.1
www IN A 172.16.10.1
new IN A 1.2.3.4
内容可复制粘贴,根据需要修改域名和记录
Information can
6, open the service
[root@server Desktop]# systemctl enable named
[root@server Desktop]# systemctl start named
7, test
The client DNS server address to
[root@localhost Desktop]# nmcli connection modify "eno16777736" ipv4.dns
"172.16.10.1"
[root@localhost Desktop]# nmcli connection up "eno16777736"
Browse server via HTTP site URL