[root@rhel7server1 etc]# systemctl enable named Created symlink from /etc/systemd/system/multi-user.target.wants/named.service to /usr/lib/systemd/system/named.service.
[root@rhel7server1 etc]# systemctl start named
[root@rhel7server1 etc]# systemctl status named ● named.service - Berkeley Internet Name Domain (DNS)
Loaded: loaded (/usr/lib/systemd/system/named.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2020-06-14 22:50:59 EDT; 7s ago
Process: 3960 ExecStart=/usr/sbin/named -u named -c ${NAMEDCONF} $OPTIONS (code=exited, status=0/SUCCESS)
Process: 3958 ExecStartPre=/bin/bash -c if [ ! "$DISABLE_ZONE_CHECKING" == "yes" ]; then /usr/sbin/named-checkconf -z "$NAMEDCONF"; else echo "Checking of zone files is disabled"; fi (code=exited, status=0/SUCCESS)
Main PID: 3963 (named)
CGroup: /system.slice/named.service
└─3963 /usr/sbin/named -u named -c /etc/named.conf
Jun 14 22:50:59 rhel7server1 named[3963]: zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0....al 0
Jun 14 22:50:59 rhel7server1 named[3963]: zone localhost.localdomain/IN: loaded serial 0
Jun 14 22:50:59 rhel7server1 named[3963]: zone localhost/IN: loaded serial 0
Jun 14 22:50:59 rhel7server1 systemd[1]: Started Berkeley Internet Name Domain (DNS).
Jun 14 22:50:59 rhel7server1 named[3963]: all zones loaded
Jun 14 22:50:59 rhel7server1 named[3963]: running
Jun 14 22:50:59 rhel7server1 named[3963]: error (network unreachable) resolving './DNSKEY/IN': 2001:500:1::53#53
Jun 14 22:50:59 rhel7server1 named[3963]: error (network unreachable) resolving './NS/IN': 2001:500:1::53#53
Jun 14 22:50:59 rhel7server1 named[3963]: error (network unreachable) resolving './DNSKEY/IN': 2001:503:b...0#53
Jun 14 22:50:59 rhel7server1 named[3963]: error (network unreachable) resolving './NS/IN': 2001:503:ba3e:...0#53
Hint: Some lines were ellipsized, use -l to show in full.
## ALTERNATIVE - Using unbound package instead of bind
## enable and start the service
systemctl enable unbound
systemctl start unbound
## Edit /etc/unbound/unbound.cf:
interface: 0.0.0.0 Accept connections from every interface.
access-control: 192.168.0.0/24 allow Accept requests from these IP addresses.
domain-insecure: myexample.com Bypass internal domains which not have been configured with DNS-SEC.
forward-zone:
name: "."
forward-addr: 192.168.x.x Forward all requests to your Network's DNS server
## validate the config
## validation may fail with "/etc/unbound/unbound_server.key" does not exist error if
## we have not started unbound before. Start it first before edit the config
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;mail.myfaqbase.com. IN A
;; ANSWER SECTION:
mail.myfaqbase.com. 3600 IN A 52.77.220.72
;; AUTHORITY SECTION:
myfaqbase.com. 1959 IN NS ns67.domaincontrol.com.
myfaqbase.com. 1959 IN NS ns68.domaincontrol.com.
;; ADDITIONAL SECTION:
ns68.domaincontrol.com. 171159 IN A 173.201.71.44
ns68.domaincontrol.com. 171159 IN AAAA 2603:5:2274::2c
ns67.domaincontrol.com. 171159 IN A 97.74.103.44
ns67.domaincontrol.com. 171159 IN AAAA 2603:5:2174::2c