Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
automatic update of bind slave server?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
haimat
Apprentice
Apprentice


Joined: 05 Sep 2002
Posts: 239
Location: Vienna / Austria

PostPosted: Mon Sep 20, 2004 12:14 pm    Post subject: automatic update of bind slave server? Reply with quote

Hi all,

I have two bind 8 DNS servers. Every time I add a new domain/zone to my
master, I have to edit named.conf on my slave server as well.

So my question: Are there any automatic solutions out there to create this
new zone in named.conf on the slave DNS server as well?

Greetings and TIA, Matthias
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Mon Sep 20, 2004 2:55 pm    Post subject: Reply with quote

Most people end up writing a bit of Perl to insert the new domain to the master. Then taking the master config and generating a slave config. scp it around and then restart the servers. I have a bit written myself, but it's complete crap. I did find this link to something that's probably better maintained.

http://www.wildgear.com/gendns/

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
haimat
Apprentice
Apprentice


Joined: 05 Sep 2002
Posts: 239
Location: Vienna / Austria

PostPosted: Mon Sep 20, 2004 2:58 pm    Post subject: Reply with quote

thx for your info ... I ended up in writing my own perl script now. It seems to work quite fine ;)

I will check out your link!
Greetings, Matthias
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Mon Sep 20, 2004 6:19 pm    Post subject: Reply with quote

Now you've got me thinking I should clean up my own code. BTW you can simplify things by doing the following in your /etc/named.conf by using include files. I haven't seen many docs point out this functionality and figured it was worth a mention.

include "/var/named/conf/customer-01.conf"
include "/var/named/conf/customer-02.conf"
include "/var/named/conf/localhost.conf"
include "/var/named/conf/reverse.conf"

This will give your Perl script nice clean zone only config files to process and copy to your slaves and your base /etc/named/named.conf will never need to change.

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
haimat
Apprentice
Apprentice


Joined: 05 Sep 2002
Posts: 239
Location: Vienna / Austria

PostPosted: Mon Sep 20, 2004 6:24 pm    Post subject: Reply with quote

yeah thx for your info, I already do it that way ;)
greets
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum