Linux system bind service (NDS)
Brief introduction:
DNS Domain name resolution service (domain? Name? System) is a service used to resolve the relationship between the domain name and the IP address, which can be implemented with forward parsing and reverse parsing functions:
- Forward resolution: Find the corresponding IP address based on the hostname (domain name).
- Reverse resolution: Find the corresponding hostname (domain name) based on the IP address.
The work form is also divided between the master server, the slave server and the cache server.
Primary server: Unique within a specific region, responsible for maintaining the domain name and IP address correspondence within the zone.
From the server: Obtain the domain name and IP address from the primary server and maintain the relationship, in case the primary server is down.
Cache server: To obtain the domain name and IP address corresponding to the other domain name resolution server query, improve the efficiency of the duplicate query.
1.rpm-qa | grep ' ^bind '//View installation package
2.yum Install bind*//installation bind service
3.systemctl start Named.service//Start service
4.NETSTAT-UTLNP | grep named//view service port
5.RPM-QL bind-9.9.4-50.el7.x86_64//View the path generated during installation
6.vim/etc/named.conf//Modify Master File
7. Add a configuration area
8. Depending on the version of the installation system, the reverse parsing file directory will change.
Cd/var/named
CP Named.localhost Linuxma.com.zone
CP Named.localhost 192.168.227.zone
Vim/etc/named.conf
Vim Linuxma.com.zone
Vim 192.168.227.zone
Note:
AAAA: for IPV6 address
NS: Name Service (domain name)
A: corresponding IP (V4)
CNAME: Modify Connection Name
MX: Mail exchange use
Forward resolving domain name---IP
Reverse resolving IP----domain names
9. Restart the service
Systemctl Restart Named.service
10. Turn off the firewall
Systemctl Stop Firewalld.service
11. Configure this level of DNS
Vim/etc/resolv.conf
12. Verification Test
nslookup----linuxma.com
DIG-T NS linuxma.com
Linux bind Service (DNS) deployment Configuration