I have a problem when I want to host my nameserver inside local network.
I have a registered domain (example.com).
I want to host the nameserver of "local.example.com" inside my local network.
I want The nameserver in my local network to define the records for "local.example.com".
I set The NS record for the "local.example.com" to "ns-local.example.com".
The IP of "ns-local.example.com" is "192.168.1.243".
We have a separated recursive DNS server in our LAN, which we can not use for any authoritative DNS server.
I Set the A record for local.example.com in "ns-local.example.com" to "192.168.1.10".
When I ping the local.example.com, it resolves to 184.108.40.206 (servfail.guide.opendns.com)!!!!
When I run the command "dig local.example.com +trace" inside my local network I get the correct result ("192.168.1.10" for A record).
All nameservers use BIND.
thank you in advance for your help