Get the App
SLTechnology News&Howtos  ›  Servers  › 

Configure DNS server under Centos6.5

Shulou Source: shulou.com Published: 2022-06-02 07:22:30 10月03日 Update

The configuration requirements are as follows:

Install and configure bind service in the server, responsible for regional "xiangcheng.net" IP address 10.100.100.x, host resolution, five hosts are dns.xiangcheng.net, www.xiangcheng.net, bbs.xiangcheng.net, pxe.xiangcheng.net, ftp.xiangcheng.net, ftpl.xiangcheng.net, do forward and reverse DNS service resolution, and forward the resolution of accessing yongli.com domain to 10.100.10.100

Let's first install a command line prompt interface Centos6.5, memory: 512MB, hard disk: 4G.

Modify the local source:

Enter CentOS-Media.repo in edit mode, modify the configuration file, and save exit

You can then use the local installation. Because it is the easiest to install CentOS, we will also install the system components with the following command:

Yum install vim*-y install vim

Yum install system-config-net*-y install network

Yum install system-config-firewall*-y install fireproof window

Yum install bind-u*-y install bind

Yum install setuptool*-y install setup

Modify named.conf

Modify named.rfc1912.zones

Modify named.localhost (forward)

Modify named.loopback (reverse)

Finally, enter named.con to configure forwarding.

You can see that both the positive and negative directions have been resolved successfully (since there are six that need to be parsed, they will not be parsed one by one, so let's parse one here)

Tags: Configuration service host command server success next memory region address prompt file mode interface hard disk system component five Zhongan don't Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Apple OPPO Reno Xiaomi Redmi