Will a manually added zone in /etc/named.conf be deleted?

anti-ts

Verified User
Joined
Jan 25, 2014
Messages
42
Hi..

Just a question please:
I manually added a zone by editing /etc/named.conf (type slave; for a specific domain on a non DA server).

Will this be automatically removed if someone uses DirectAdmin panel to add a new domain?
Or it will stay there without any problem?

If it will be removed, can you suggest a way to make it permament?
(This DirectAdmin server is not a part of any dns cluster)


Thank you
 
I'm not sure but you can easily test this yourself by adding a fake domain via Directadmin and have a look what happens in named.conf after you added the domain. Then delete the fake domain and see if your addition is still present.

If you want to make use of a slave server, you might want to consider using Directslave.
 
Quoting original reply from DirectAdmin support, in case it helps anyone in the future:

When DA edits the named.conf, it does so surgically, by going through each line to look for the line that starts with "zone", and the line matches the domain's entry.
Adding a zone just appends to the bottom, and removing a zone is done surgically.
So your manual changes in the named.conf will be safe.

If the format isn't 100% the same as DAs, there is nothing stopping someone from adding the same domain to DA, which might cause issues.. but if it's a private box, then you should be ok.
 
Back
Top