[SOLVED] Help me! dig status NXDOMAIN
by anamnedelcu from LinuxQuestions.org on (#59QCQ)
Hello,
I configured a DNS server on a VM and when i try to dig on the client side I get status: NXDOMAIN and no answer. What may be the problem?
Server VM (static ip address 192.168.101.1)
/etc/bind/named.conf.local
zone "project.local" IN {
type master;
file "/etc/bind/forward.project.local";
};
zone "101.168.192.in-addr.arpa" IN {
type master;
file "/etc/bind/reverse.project.local";
};
/etc/bind/forward.project.local
$TTL 604800
@ IN SOA ns.project.local. root.project.local. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns.project.local.
@ IN A 192.168.101.1
ns IN A 192.168.101.1
/etc/bind/reverse.project.local
$TTL 604800
@ IN SOA ns.project.local. root.project.local. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns.project.local.
1 IN PTR project.local
Client VM
/etc/resolv.conf
nameserver 192.168.101.1
nameserver 127.0.1.1
search project.local


I configured a DNS server on a VM and when i try to dig on the client side I get status: NXDOMAIN and no answer. What may be the problem?
Server VM (static ip address 192.168.101.1)
/etc/bind/named.conf.local
zone "project.local" IN {
type master;
file "/etc/bind/forward.project.local";
};
zone "101.168.192.in-addr.arpa" IN {
type master;
file "/etc/bind/reverse.project.local";
};
/etc/bind/forward.project.local
$TTL 604800
@ IN SOA ns.project.local. root.project.local. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns.project.local.
@ IN A 192.168.101.1
ns IN A 192.168.101.1
/etc/bind/reverse.project.local
$TTL 604800
@ IN SOA ns.project.local. root.project.local. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns.project.local.
1 IN PTR project.local
Client VM
/etc/resolv.conf
nameserver 192.168.101.1
nameserver 127.0.1.1
search project.local