I have a Windows server set up as a webserver but I am also running my DNS on the same machine (I know this is bad practice). I have the domains default zone webserver.hosting.local as well as my website zone example.com. Now whenever I dig ns example.com it returns webserver.hosting.local. as one of my name servers. What do I need to configure to stop this from happening? I note that webserver.hosting.local is an ns record on the default zone.
So I tried everything from restarting the dns service to clearing the cache but nothing worked. Finally solved it by rebooting the server which caused the .local ns record to show up in the wrong zone. I then removed it and its all working correctly.