1.1 Domain Name resolution: The client initiates a domain name request and the DNS server resolves it. Protocol://host + domain name
1.2 ip-Domain Name analysis:
(1.) by local when the Hosts file parsing vi/etc/hosts front is IP, followed by a domain name can only parse a small number of files.
(2.) Rpm–qa | grep bind view installed DNS-related packages
RPM–QL Bind View Package Contents
1.3 DNS configuration:
vi/var/named/chroot/etc/named.conf//temporarily retains only the root zone, local area, and locally reverse resolution zone. If you don't have the profile, you can copy it from somewhere else. In addition/var/named/directory needs to have: Localhost.zone, named.local, Named.root
Service named restart//Restart DNS service
1.4 Specifying a DNS server
VI/ETC/RESOLV.CONF//Specify DNS server
Vi/etc/host DNS Lookup order, first from the local start to find.
1.5 Testing DNS
(1.) Enter nslookup and enter the server to view the results, or enter the IP resolved by localhost to 127.0.0.1
(2.) host www.xx.net or host IP to view domain name
1.6 Adding a domain name:
(1.) Modify in the main provisioning file: vi/var/named/chroot/etc/named.conf Join the domain name, the file is changed to its own file name.
(2.) The corresponding data file: vi/var/named/own file name, here is the file name is configured above.
In SOA Xxx.nt. Root.xx.net
In NS domain name in A IP
www in A 192.168.x.x
(3.) Modify the owner, restart the server, service named restart. To test nslookup ....
1.7 DNS Reverse resolution
(1.) Modify the Master profile: vi/var/named/chroot/etc/named.conf zone IP anti-write. in-addr. Arps. File Xx.zone
(2.) Vi/var/named/xx.zone
In NS www.xx.net.
IP last in PIR www.xx.net.
(3.) Modify the main chown root.named Xx.zone
(4.) to test nslookup
1.8 Summary:
(1.) Install bind (2.) Start service named Start (3.) Configuring the Master Profile named.conf (4.) Add zone information in the Master profile (5.)/var/named/chroot/varnamed Add zone file (6.) Modify the owner (7.) Restart the DNS service (8.) Client in/etc/resolv.conf, add DNS to (9.) To test nslookup