Hengyang high-Protection server renting a DNS server in Linux environment tutorial

Source: Internet
Author: User
Tags domain name server hosting server hosting

Hengyang High-protection server rental A tutorial on setting up a DNS server under Linux

DNS is the abbreviation for the domain Name System, the computer and Network Service naming system for the organization domain hierarchy. When a user enters a DNS name in the application, the DNS service can resolve the name to the IP address information associated with this name. This article will lead you to build a DNS server in the Linux environment.
I. Overview of relevant Knowledge
The DNS (domain Name System) is the domain Name Service system, which is the role of the domain name and IP address interchange. Each host on the network has a domain name, which gives the IP address of the host, the mail routing information, and so on. The name server is the program that stores information about the domain name space, and the application is done by it.
second, the installation of DNS server software
in Linux, this service is implemented with BIND, which is called the "named process" as the principal of the domain name server process.
1. Download the three files required to install bind from http://www.redhat.com: bind-8.2.2-p5-9.i386.rpm,
bind-devel-8.2.2-p5-9.i386.rpm, cache-nameserver-6.2-2.noarch.rpm.
2, respectively, three files for the RPM package installation, using the command: RPM–UHV.
3, finally compile and install, using the command: Make and do install.
after the above steps, the basic software has been installed properly, followed by the configuration of the server software.
named this principal process needs to read an initialization file at startup, and the default is/etc/named.boot. We also recommend that you use the NDC tools from Linux to start, abort, restart, refresh DNS data, output DNS data and many other debugging, for detailed use of this tool, please refer to the Linux technical documentation.
First Step: Configure the Build Named.boot. Because this is the configuration file that the named process first reads, but this file contains any DNS data by default, it needs to be entered manually to establish the following configuration example:
directory/var/named
Primary site.com db.site
Primary 0.0.127.in-addr. ARPA db.127.0.0
Primary 56.11.192. In-addr. ARPA db.192.11.56
Sitecache.db.sitecache
the meaning of each line is explained as follows (the file name involved in the example is self-drawn, including the third to fourth line):
directory/var/named: Specifies that the named process reads the path of all DNS data files, this example is the/var/named directory, and of course you can change it yourself.
Primary site.com Db.site: named as the primary domain name server for site.com (forward domain translation data), and specifies that all *.site.com forms of domain name conversion data be saved in the Db.site file.
two segment primary IP data: Set named as an IP address segment (only three bits) of the conversion of the primary server (reverse domain name conversion data), and like db.127.0.0 file, is the specified 127.0.0.* class IP address to the domain name of the conversion data stored here.
Sitecache.db.sitecache: Specifies named to obtain the top-level server address of the Internet from the Db.sitecache file.
Step two: Define each DNS data file according to the named.boot you just configured.
1) The establishment of a forward domain conversion data file Db.site, example:

@ in SOA linux.site.com. root.linux.site.com. ( 
200410301
28800
7200
3600000
86400)
NS linux.site.com.
MX ten support.site.com.
Localhost A 127.0.0.1
Sy727 A 192.11.56.24
Sy728 A 192.11.56.25
Linux A 192.11.56.26
Mail MX ten sy727.site.com.
MX sy728.site.com.
www chame Linux.site.com.
ftp CNAME Linux.site.com.
Explanation: The first part of the first line of SOA is followed by the DNS server name and the Administrator e-mail address, the following columns are used in the data exchange, and generally do not make changes; the NS line defines the domain name of the domain name server itself; The MX line defines the appropriate mail server name.

Hengyang high-protection server rental

Hengyang High-protection server rental , Server Hosting , Large enclosure bandwidth rental

Hengyang Machine Room export 500G,30g--200g High Defense,

Open UDP Open Port ignore Cc/udp/syn Attack!

New configuration Dell R610, eight core 16 threads

Hunan IDC engine room     High anti-high with   Baidu IP   Dell branded servers

G Port Access ! Stable! High-protection! Second Solution! Real Defense!

7x24 *365 hours after-sales operation and maintenance technology Support

Small new Reed: 2851506992 Reed 604906005 tell:15013023312

Server Leasing | server Hosting | Hengyang Server Rental | Hengyang server Hosting | game Server Leasing | high-protection Server Leasing | Lease Server | hosting server | server Leasing | high-protection Server | Web Server Leasing | dual-line server Leasing | Hengyang Double Line high anti-

Hengyang High-protection server rental Hengyang IDC computer room IP segment:

124.228.91.

220.170.92.

220.169.89.

Baidu section:59.51.81.

Hengyang high-Protection server renting a DNS server in Linux environment tutorial

Related Article

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.