Article 6G5T1 DNS configuration using bind9

DNS configuration using bind9

by
Linuxmodex
from LinuxQuestions.org on (#6G5T1)
Hello,

I am currently encountering DNS configuration issues with bind9. I have installed bind9 and made the following adjustments to the configuration files:

In the "named.conf.options" file, I added a new access control list block for my trusted clients, like this:

acl "trusted" {
192.168.5.0/24;
localhost;
};

I also allowed specific properties in the "options" section, including recursion, allow-recursion, listen-on 192.168.5.3 (my DNS server), allow-transfer (none), and allow-query (trusted). Additionally, I added forwarders like this:

forwarders {
10.100.0.1;
10.100.0.2;
};

For the forward and reverse zones, I created two files and referenced them in the "named.conf.local".

My reverse zone file:

$TTL 604800
@ IN SOA MyFQDN admin.MyFQDN (
8 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expired
604800 ) ; Negative Cache TTL

1 IN PTR ns2.MyFQDN ; 192.168.5.1
2 IN PTR ns2.MyFQDN ; 192.168.5.2
3 IN PTR ns2.MyFQDN ; 192.168.5.3
4 IN PTR ns2.MyFQDN ; 192.168.5.4

My forward zone file:

$TTL 604800
@ IN SOA MyFQDN admin.MyFQDN (
12 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expired
604800 ) ; Negative Cache TTL

@ IN NS ns1.MyFQDN
@ IN NS ns2.MyFQDN
@ IN MX 0 mail.MyFQDN

ns1 IN A 192.168.5.3
www IN A 192.168.5.2

MyFQDN IN MX 10 mail.MyFQDN
ns1.MyFQDN IN A 192.168.5.3
ns2.MyFQDN IN A 192.168.5.1
www.MyFQDN IN A 192.168.5.2
mail.MyFQDN IN A 192.168.5.4

The DNS entries cannot be resolved.

ns1 could not be resolved right on ns1.
ns2 could not be resolved right on ns1.
www could not be resolved right on ns1.

reverse entry for ns1 could not be resolved right on ns1.
reverse entry for ns2 could not be resolved right on ns1.
reverse entry for www could not be resolved right on ns1.

I would greatly appreciate any assistance or insights you may have regarding these configurations. Thank you in advance!
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments