CentOS BIND Caching Proxy installation guide

BIND is the most popular and widely deployed DNS-Server in the world. It is a free software product and is distributed with most Unix and Linux platforms, where it is most often also referred to as named (name daemon). Today we will talk about one of the simplest BIND deployments – CentOS BIND caching proxy server under CentOS 7.

And that is all! Next, edit the main configuration file, located in /etc/named.conf

PowerShell

1

2

3

4

5

6

7

8

9

10

options{

listen-onport53{127.0.0.1;192.168.10.0/24;};

listen-on-v6port53{::1;};

directory"/var/named";

dump-file"/var/named/data/cache_dump.db";

statistics-file"/var/named/data/named_stats.txt";

memstatistics-file"/var/named/data/named_mem_stats.txt";

allow-query{localhost;192.168.10.0/24;};

allow-query-cache{localhost;192.168.10.0/24;};

}

Now check if the ownership of this file is set to root:named. Also, when SELinux is enabled (by default), after editing the configuration file we need to make sure that its context is set to named_conf_t:

PowerShell

1

2

# ls -lZ /etc/named.conf

-rw-r-----.root named system_u:object_r:named_conf_t:s0/etc/named.conf

Before we enable and start the service, let’s check the configuration itself: