Linux command detailed-DNS server configuration and management

Source: Internet
Author: User
Tags nslookup

Configuration of the 1.DNS server

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

Linux command detailed-DNS server configuration and management

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.