New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
MaraDNS - Adding more records to zone - How to avoid restarting service?
Hi,
So currently i'm testing MaraDNS but if I want to add more records to my zone then I need to restart the service to make sure they're present. A "service maradns reload" doesn't see to force a config reload without a service restart.
So my question is. How do I reload zone config without restarting the DNS server?

Comments
Are you sure MaraDNS have reload feature?.
@mustafaramadhan - not really! I'm just testing different DNS servers at this point.
Better using nsd. Kloxo-MR 7.0 using it beside other dns servers.
AFAIK you can't avoid restarting. It starts back up very quickly so what's the problem with a restart?
If you want something that doesn't need restarting then try powerdns with mysql backend. Just add the DNS records to the mysql database and powerdns will serve them right away.
Nope, MaraDNS requires a restart in order to process changes.
Thanks guys, testing PowerDNS as a result.
Trying to follow the tutorial here:
https://www.rosehosting.com/blog/install-powerdns-and-on-a-centos-7-vps/
BUT i'm seeing an issue where it won't serve records due to what I assume is a problem with my schema. Time to go read the docs...
[root@localhost ~]# systemctl status pdns.service -l pdns.service - PowerDNS Authoritative Server Loaded: loaded (/usr/lib/systemd/system/pdns.service; enabled) Active: active (running) since Fri 2015-08-28 14:37:15 SAST; 16min ago Main PID: 2261 (pdns_server) CGroup: /system.slice/pdns.service └─2261 /usr/sbin/pdns_server --daemon Aug 28 14:37:15 localhost.localdomain pdns[2261]: PowerDNS comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it according to the terms of the GPL version 2. Aug 28 14:37:15 localhost.localdomain pdns[2261]: Creating backend connection for TCP Aug 28 14:37:15 localhost.localdomain pdns[2261]: About to create 3 backend threads for UDP Aug 28 14:37:15 localhost.localdomain pdns[2261]: Done launching threads, ready to distribute questions Aug 28 14:40:48 localhost.localdomain pdns[2261]: Backend reported permanent error which prevented lookup (GSQLBackend lookup query:Failed to execute mysql_query, perhaps connection died? Err=1: Unknown column 'disabled' in 'field list'), aborting Aug 28 14:40:48 localhost.localdomain pdns[2261]: Backend error: GSQLBackend lookup query:Failed to execute mysql_query, perhaps connection died? Err=1: Unknown column 'disabled' in 'field list' Aug 28 14:47:53 localhost.localdomain pdns[2261]: Backend reported permanent error which prevented lookup (GSQLBackend lookup query:Failed to execute mysql_query, perhaps connection died? Err=1: Unknown column 'disabled' in 'field list'), aborting Aug 28 14:47:53 localhost.localdomain pdns[2261]: Backend error: GSQLBackend lookup query:Failed to execute mysql_query, perhaps connection died? Err=1: Unknown column 'disabled' in 'field list' Aug 28 14:47:55 localhost.localdomain pdns[2261]: Backend reported permanent error which prevented lookup (GSQLBackend lookup query:Failed to execute mysql_query, perhaps connection died? Err=1: Unknown column 'disabled' in 'field list'), aborting Aug 28 14:47:55 localhost.localdomain pdns[2261]: Backend error: GSQLBackend lookup query:Failed to execute mysql_query, perhaps connection died? Err=1: Unknown column 'disabled' in 'field list'Any idea where I can find the newer sql schema for version below?
EDIT:
Got it working by using the schema here:
AND adding (as this automates deletion of records on deletion of a domain from the domains table.)