configure bind9 on debian 10
by DenisAndreevich from LinuxQuestions.org on (#4W16H)
Hi there!
I try configure bind9 inside two virtual machines. I made this config for my zone
named.conf.option
Code:options {
forwarders {
8.8.8.8;
};
listen-on {
127.0.0.1;
192.168.2.1;
};
};named.conf.local
Code:zone "network.local"
{
type master;
file "/etc/bind/network.local";
allow-update { any; };
};
zone "10.168.192.in-addr.arpa" {
type master;
file "/etc/bind/reverse.local";
allow-update { any; };
};network.local
Code:$TTL 86400 ; 1 day
example.net. IN SOA server.example.net. admin.example.net. (
20110103 ; Serial
10800 ; Refresh
3600 ; Retry
604800 ; Expire
86400 ; Minimum TTL
)
IN NS server.example.net.
IN A 192.168.2.1
localhost IN A 127.0.0.1
server IN A 192.168.2.1reverse.local
Code:$TTL 86400 ; 1 day
10.168.192.in-addr.arpa. IN SOA server.example.net. admin.example.net. (
20110104 ; Serial
10800 ; Refresh
3600 ; Retry
604800 ; Expire
3600 ) ; Minimum
IN NS server.example.net.
1 IN PTR example.net.
1 IN PTR server.example.net.After restart bind9 and networking i get:
Code:nslookup server
Server: 192.168.1.1
Address: 192.168.1.1#53
** server can't find server: NXDOMAINWhere i wrong?


I try configure bind9 inside two virtual machines. I made this config for my zone
named.conf.option
Code:options {
forwarders {
8.8.8.8;
};
listen-on {
127.0.0.1;
192.168.2.1;
};
};named.conf.local
Code:zone "network.local"
{
type master;
file "/etc/bind/network.local";
allow-update { any; };
};
zone "10.168.192.in-addr.arpa" {
type master;
file "/etc/bind/reverse.local";
allow-update { any; };
};network.local
Code:$TTL 86400 ; 1 day
example.net. IN SOA server.example.net. admin.example.net. (
20110103 ; Serial
10800 ; Refresh
3600 ; Retry
604800 ; Expire
86400 ; Minimum TTL
)
IN NS server.example.net.
IN A 192.168.2.1
localhost IN A 127.0.0.1
server IN A 192.168.2.1reverse.local
Code:$TTL 86400 ; 1 day
10.168.192.in-addr.arpa. IN SOA server.example.net. admin.example.net. (
20110104 ; Serial
10800 ; Refresh
3600 ; Retry
604800 ; Expire
3600 ) ; Minimum
IN NS server.example.net.
1 IN PTR example.net.
1 IN PTR server.example.net.After restart bind9 and networking i get:
Code:nslookup server
Server: 192.168.1.1
Address: 192.168.1.1#53
** server can't find server: NXDOMAINWhere i wrong?