Install the Configure DNS server under Linux

Source: Internet
Author: User
Tags bind mail server installation and configuration domain name server mx record linux

This article takes red Hat Enterprise Linux as v4 as the platform

I. Data reference and Preparation:

DNS refers to: domain Name server. In the Internet domain name and IP address is one by one corresponding, although the domain name is convenient for people to remember, but the machine can only know each other IP address, the transformation between them is called Domain name resolution, domain name resolution needs to be specialized domain name resolution server to complete, DNS is the domain name resolution server.

Some tag explanations:

@----This symbol means that the SOA is the same as the domain

In-----is a domain name class that provides an IP address when used with a,ptr or CNAME records, you can map a domain name to an IP address, or vice versa NS-----domain name or IP address of the zone DNS server specified by the domain name server

The MX----MX record defines what machines to send e-mail for a domain or a single host, and for the domain definition is to tell everyone to send the message to the person or machine in the domain that they want to communicate with.

SOA-----Start of authority indicates that the following domain name defines the e-mail address of the primary domain name server and the contact point for that domain.

PTR---Map IP addresses to host names, and PTR records perform the reverse process of a and record

A----Map the host name to its IP address

Download the BIND installation package from http://www.isc.org/products/BIND/or CD/cdrom/redhat/rpms to find the relevant installation package.

Second, the server installation and configuration

#rpm-IVH bind*.rpm
#vi/etc/name.conf
------------------------------------
Directory "/var/named";
};
Controls {
inet 127.0.0.1 allow {localhost;} keys {rndckey;};
};
Zone "." in {
File "named.ca";
};
Zone "localhost" in {
Type master;
File "Localhost.zone";
allow-update {none;};
};
Zone "Xuanfei.net" in {
Type master;
File "Test.net"
allow-update {none;};
};
Zone "0.0.127.in-addr.arpa" in {
Type master;
File "Named.local";
allow-update {none;};
};
Zone "63.45.10.in-addr.arpa" in {
Type master;
File "10.45.63";
-----------------------------------------------------------
#vi Test.zone
-----------------------------------------------------------
$ttl 1D
@ in SOA linux.xuanfei.net. Root.xuanfei.net. (
1053891162
3H
15M
1W
1D)
In NS xuanfei.net.
In MX 5 mail.xuanfei.net.
www in A 10.45.63.185
It in A 10.45.63.188
--------------------------------------------------------------------------------
#vi/var/named/10.45.63
--------------------------------------------------------------------------------
@ in SOA linux.xuanfei.net. Root.xuanfei.net. (
1997022700; Serial
28800; Refresh
14400; Retry
3600000; Expire
86400); Minimum
In NS linux.xuanfei.net.
--------------------------------------------------------------------------------
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.