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.
--------------------------------------------------------------------------------