LINUX6--DNS Domain name resolution Service Building (positive analysis Novice)

Source: Internet
Author: User
Tags domain name server

LINUX6--DNS Domain name resolution Service Building (positive analysis Novice)

-------------------------------Overview------------------------------

DNS TCP/UDP 53 Port
DNS (domain Name System), a distributed database of domain names and IP addresses that are mapped to each other on the World Wide Web, makes it easier for users to access the Internet without remembering the number of IP strings that can be read directly by the machine. Through the domain name, the process of obtaining the IP address of the domain name is called Domain name resolution (or hostname resolution). The DNS protocol runs on top of the UDP protocol, using the port number 53.

-

Common types of DNS
Cache name servers
Primary Domain Name server
From a domain name server
PS: Master, from the domain name server is basically the same level, but from the server every time to synchronize the master server

-----------------------------------set up DNS domain name resolution service----------------------------------------

1
First install the DNS package

-

2
Modify the master configuration file after installation is complete

-

After the modification is completed, enter the last line mode and press Wq to save the exit.

-

3
Looking at the DNS files, we now mainly need to know the configuration file has two

-

4 forward parsing
Forward parsing also requires modifying the zone profile after the master configuration file has been modified


Make the following changes

After the modification is completed, enter the last line mode, press Wq to save exit

-

5

-

6 Modifying a zone data file

-

Detailed

$TTL 1D
@ in SOA @ admin.ruoheng.com. (
0; Serial —————— #版本序列号
1D; Refresh —————— #刷新时间, Brahma server synchronization
1H; Retry —————— #重试连接
1W; Expire —————— #最大忍耐时间
3H); Minimum —————— #缓存最多保持3个小时
NS @ —————— #服务器的名字
A 192.168.120.5 —————— #主机服务器的地址
In MX 5 ruoheng.com. —————— #邮件交换记录
Mail in A 192.168.120.5 —————— #邮箱正向解析的地址
www in A 192.168.120.100 —————— #主机名解析
SMTP in CNAME mail.ruoheng.com —————— #别名解析

  • In A 8.8.8.8 —————— #泛域名解析
    FTP in A 192.168.120.200 —————— #FTP
    ~

After the modification is completed, enter the last line mode, press Wq to save exit

-

7 Starting the DNS service

-

8 Specify DNS domain name resolution server address

--------------------------------------------Resolving domain Names----------------------------------------------

9

-

PS: If there is no host command, please install it.

LINUX6--DNS Domain name resolution Service Building (positive analysis Novice)

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.