[Original] linuxDNS test operation guide

Source: Internet
Author: User
[Original] linuxDNS test operation guide-general Linux technology-Linux technology and application information. For details, refer to the following section. This is my note record at Beijing University, which is suitable for beginners.

Linux DNS test operation guide
Copyright: www.itshanghai.net

Set up DNS servers
1. Install DNS
Gui (ctrl + alt + F7)-> Start-> system setting-> add/remove application
2. Start the service
Method:/etc/rc. d/init. d/named start
Or service named start
3. Modify the main configuration file and add a region
Vi/etc/named. conf

Directory "/var/named"

A) add A forward region (you can copy and modify it)
Zone "itshanghai.net" IN {
Type master;
File itshanghai.net. zone;
};

B) add a reverse region (you can copy and modify it)
Zone "1.168.192, in-addr.arpa" IN {
Type master;
File itshanghai.net. arpa;
};

4. Enter/var/named and copy
Cd/var/named-> (copy named. local) cp named. local itshanghai.net. zone; cp named. local itshanghai.net. arpa
5. Add records
A) Forward record
Vi itshanghai.net. zone
Modify the full server name SOA) dns.itshanghai.net. root. localhost.
In ns dns.itshanghai.net.
Dns in a 192.168.1.100
B) Reverse Record
Vi itshanghai.net. arpa
Modify the full server name SOA) dns.itshanghai.net. root. localhost.
In ns dns.itshanghai.net.
100 in ptr dns.itshanghai.net.
6. Restart the service
Service named reload




Supplement:
1. Auxiliary
Zone "itshanghai.net" IN {
Type slave
File "itshanghai.net. zone ";
Masters {192.168.1.100 ;};
};
Note: you do not need to create an itshanghai.net. zone file to automatically copy data from 192.168.1.100.
Delete update
2. Delegate
Zone "com" IN {
Type master
File "com. zone"
}

Cd/var/named-> Cp named. local com. zone-> vi com. zone
->
In sov dns-root.com
In ns dns-root.com.
(Add record) dns-root in a 192.168.1.200
(Delegate) itshanghai.net. in ns dns.itshanghai.net. (send it to the Domain Name Server dns.itshanghai.net when you ping www.itshanghai.net)
(Add record) dns. anniey in a 192.168.1.100

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.