Reload a single zone

Djunity

Verified User
Joined
Mar 9, 2008
Messages
243
Location
Holland
Hi all,

Is it possible to only reload a single zone instead of using:
echo "action=rewrite&value=named" >> /usr/local/directadmin/data/task.queue
to reload them all ?
 
BIND, the Berkeley Internet Name Daemon, can be stopped, started, restarted (stopped and then immediately restarted) or reloaded. The limi8tation is not in DirectAdmin but rather in BIND. As a practical matter this shouldn't create a problem; BIND will continue to delivery replies to requests during a reload.

Jeff
 
Hi Jeff,

That i know but for example we run about 8 servers ant use the multi server function to sync all dns and only run bind ont 2 servers.
If you make a dns change to one of the domains on one of the servers this change is also send to the other dns servers true the multi server function by Directadmin.

So basicly what i need is a command that only sends the dns change of a single domain, so i hope there is one.
 
What is it what you want to do and what is the problem? If you simply edit a dns record in DA you don't need to do the rewrite command.

However if you think you really need it, there's this: http://www.directadmin.com/features.php?id=1056

The user might still need the DirectAdmin rewrite command to update the zone's serial number, and in any event, if it's not called, and the BIND reload command isn't run, then calls to BIND will still return the old information, as it calls data in memory, not from the zone file.

Jeff
 
What is it what you want to do and what is the problem? If you simply edit a dns record in DA you don't need to do the rewrite command.

However if you think you really need it, there's this: http://www.directadmin.com/features.php?id=1056
I may be misunderstanding the original poster's need.I'm thinking of the BIND reload command, since the original poster wrote reload both in the thread's title and content.

But the example code is for the rewrite command, which refers to rewriting the zone file and then reloading BIND.

The code to which user Arieh links will only rewrite the zone file for the one domain, but will still reload BIND for all domains.

Jeff
 
Well it's all quite confusing, but TS mentioned the multi server function. Then when you execute the rewrite line all zones will be transfered through the multi server function. Then he says he edits a dns entry and executes the rewrite command again, but now only wants it for that one domain. So I really think he was looking for the &domain= part, however in this case there is no reason to do the rewrite rule at all, since this happens instantly through DA itself when you edit the dns -- why I asked what the problem really is.

As the speculation continues, I'm guessing TS doesn't experience the change as real time, and would only need to reload bind manually (which would happen through task queue a few moments later anyway) -- instead of doing a rewrite.
 
Yes but when you edit any zone it is going to change the serial and thus it should be issuing a rndc reload and then that will issue an axfr to the slave zones. If it is not happening then something with da isnt right. I never used multiserver before though, so not sure how it does the rndc reload stuff. The only time you should need to rewrite a zone is if you are changing something in the template.
 
What is it what you want to do and what is the problem? If you simply edit a dns record in DA you don't need to do the rewrite command.

However if you think you really need it, there's this: http://www.directadmin.com/features.php?id=1056

The user might still need the DirectAdmin rewrite command to update the zone's serial number, and in any event, if it's not called, and the BIND reload command isn't run, then calls to BIND will still return the old information, as it calls data in memory, not from the zone file.

Jeff

Hi Arieh,

Thanks thats what i needed this i can use inside the script im running.
 
Back
Top