当前位置: 首页 > Linux > 正文

How to Setup Caching NameServer on CentOS/RHEL 6/5

Definition at Wikipedia:

Caching name servers, also called DNS caches, store DNS query results for a period of time determined in the configuration (time-to-live) of each domain-name record. DNS caches improve the efficiency of the DNS by reducing DNS traffic across the Internet, and by reducing load on authoritative name-servers, particularly root name-servers. Because they can answer questions more quickly, they also increase the performance of end-user applications that use the DNS. Read more

This article will help you to setup caching nameserver on your CentOS/RHEL 6 system.

Step 1: Install BIND Packages

Install bind packages using below command. In CentOS/RHEL 6 chaching-nameserver package has been included with bind package.

Step 2: Create Configuration File

Copy bind configuration file from bind sample files using below command. Change the path of files as per version you have installed.

Step 3: Update Configuration File

Edit bind configuration file in your favorite editor and make necessary changes as per below settings or use below configuration.

Now update required permissions on configuration files using below command.

Step 4: Check Configuration File

We recommend to check DNS configuration file before restarting service.

Step 5: Restart Bind Service

Now installation of bind service has been completed. Lets start bind (named) service using following command.

Enable auto start bind service on system boot.

Step 6: Finally Test Caching Only DNS

Send query to your dns server directly using below command.

Syntax: nslookup <domainname> <caching dns server name/ip>

[Sample Output:]

Congratulation’s! You have successfully configured caching nameserver on your linux system. Read out next articles Configure DNS Server on CentOS/RHE 6 and Setup Master Slave DNS Server on CentOS/RHEL 6.

 

How to Setup Caching NameServer on CentOS/RHEL 6/5

本文固定链接: http://t.yjsec.com/index.php/2017/12/02/22/ | 下一站

该日志由 admin 于2017年12月02日发表在 Linux 分类下, 你可以发表评论,并在保留原文地址及作者的情况下引用到你的网站或博客。
原创文章转载请注明: How to Setup Caching NameServer on CentOS/RHEL 6/5 | 下一站

How to Setup Caching NameServer on CentOS/RHEL 6/5:等您坐沙发呢!

发表评论

快捷键:Ctrl+Enter