Avatar of Peter Lankovski
Peter Lankovski
 asked on

How to stop BIND9 from being an authoritative DNS server for a host?

Hello!
Until recently I've been using BIND9 on my on-premises server (Ubuntu 16.04 w/LAMP). But then I decided to move one of my site to remote 3rd party hosting. Obviously, I changed the DNS servers on site's registrar's website and the site works fine. The problem is that on my LOCAL machine (where BIND9 is), it still points me to my local installation of that host.
LinuxDNSWeb Servers

Avatar of undefined
Last Comment
arnold

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Yujin Boby

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
David Favor

Better to just remove bind/named completely + replace with dnsmasq.

Also, since you're running Ubuntu Xenial (v16) best also to remove systemd-resolved.

https://www.experts-exchange.com/questions/29162917/Huge-DNS-queries-from-openshift.html provides details about replacing systemd-resolved with dnsmasq.

To remove bind...

apt-get remove bind9

Open in new window


Be careful to use "remove" to keep all your bind config files, or "purge" to destroy your config files.
arnold

Commonly you can delegate a subdomain .
In your mydomain.com you would add
Mysubdomain.mydomain.com. IN NS External.nameserver.domain.com.

On thei remote side they add in the mysubdomain.mydomain.com zone
@. IN A Ipaddress.

Is will functionally achieve what you want.


This is a known conflict when there are two data entry platforms for the same thing.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck