after I have done million researchs, I still no sure if this right or wrong. Please allow me to ask..
I have Bind DNS setup on Linux, and Resolver setup to listen localhost first then others.
I have a domain, example.com , which has amazon name servers.
On Linux, I also have zone file for example.com and its written as
example.com. 86400 IN NS < local host name >
When I command
It will return
Server: < local host ip > Address: < local host ip >#53
After removed/disabled zone file
It will return correct info
Server: < amazon ns ip > Address: < amazon ns ip >#53
I assume the correct setup is even when the zone file exists, dns can figure it out where is the real name server.
Can you guide me what is wrong, and where I should look into deeper?