Hostname DNS entry

meto

Verified User
Joined
Sep 14, 2009
Messages
54
Today during system upgrade I lost all my zones (.db) in /var/named due to symlink problem (I've made /var/named/chroot/var/named to point to /var/named - I know stupid). I managed to restore all zones from backups but I'm still missing Hostname DB. Could somebody please post his/her hostname.domain.com.db or gave me a template to it?
 
this should create all zones from configured domains in your panel

Code:
echo "action=rewrite&value=named" >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq d40

Hope it help
 
It doesn't. This only rewrites zones, not recreates them, which means that if you don't have them it does nothing but adds ONLY SOA entries. Apparently DA keeps zones only in .db files in /var/named and if you loose them you have a problem. I thought that it keeps some info in MySQL to recreate them and the first thing i've done is what you've suggested.

PS.
I've got already this host zone.
 
Nope, i've restored everything, but this host zone which i got on other forum.
 
As i know that command rewrite all the .db files, if that dont work maybe you just need that dns get propaged, maybe im wrong dunno. Maybe i didnt get the real problem ^^ sorry
 
Try to move one .db file and make same one EMPTY or dont make it at all. Use that command and you'll see the results. There is nothing to be rewriten.
 
Ive checked and notice that that dont create all the records as i thot, i tryed to find out something in this forum but didnt figured out something usefull, im sorry i cant help you more, maybe you should write an email to DA Suppor.

Regards
 
There is no problem since i had zones in backups, but it's much unpacking...
 
Of course if you followed DNS best practices and used slave DNS you would have had copies of all your zones on your slave server(s).

I've written it before and I'll write it again: you should not have all your DNS pointing to the same server.

Jeff
 
Yeah well not everyone can afford more then one server. So maybe you can host us slave dns for free? :)
 
I offer very reasonably priced slave DNS hosting. I don't do it for free because just as many of us are, I'm in business to make money.

If anyone wants a copy of my pricelist for slave DNS hosting feel free to email me at the email address below, in my siglines.

Jeff
 
Back
Top