Linux introduction how to install and configure a DNS server

Source: Internet
Author: User
Tags server installation and configuration
Article Title: Linux introduction how to install and configure a DNS server. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

This document uses Red Hat Enterprise Linux AS v4 AS a platform

  I. Data Reference and preparation:

DNS refers to the Domain Name Server ). Domain names and IP addresses on the Internet correspond one by one. Although domain names are easy to remember, machines can only know each other's IP addresses. The conversion between them is called domain name resolution, domain name resolution must be completed by a dedicated domain name resolution server. DNS is the server for domain name resolution.

Some markup explanations:

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

IN -- IN is A domain name class that provides IP addresses. When used together with A, PTR, or CNAME record, the domain name can be mapped to an IP address, otherwise, NS -- domain name or IP address of the Regional DNS server specified by the Domain Name Server

MX -- MX records the machines used to send emails to the domain or a single host. The domain defines the machines that tell everyone to send emails to the people or machines in the domain that want to communicate with them.

SOA -- Start Of Authority indicates that the subsequent domain name defines the email address Of the master Domain Name Server and the contact point Of the domain.

PTR: maps IP addresses to host names. PTR records are executed in the process opposite to A and records.

A -- map the host name to its IP address

First download the bind installation package from the http://www.isc.org/products/BIND/ or/cdrom/RedHat/RPMS on the disc to find the relevant installation package.

  Ii. 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 ; Serial28800 ; Refresh14400 ; Retry3600000 ; Expire86400 ) ; MinimumIN NS linux.xuanfei.net.----------------------------------------------------------
     

Main Configuration File explanation:

# Rpm-ql bind | More

List all files and locations of the software package.

The configuration file is usually in/etc/named. conf

The database files are generally under/var/named.

The following are the configuration files used to configure the DNS server:

/Etc/named. conf

/Use // and/**/In the NAMED. CONF configuration file for comments,

[1] [2] [3] Next page

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.