Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-18-2015, 11:00 AM   #1
Registered: Jun 2015
Posts: 30

Rep: Reputation: Disabled
DNS Configuration Package(s)

Hi guys

We have slave DNS servers that use configurations that have been manually added to each of them.
So that we can easily reconfigure the salves, these configurations should be converted into a package which can then be installed on any machine.
The package will have to be created in a package server.
The minimum amount of data that will be required will be:
 DEBIAN/control metadata file
 usr/share/doc/<package-name>/changelog.Debian.gz
 the required configuration files in etc/bind9.
NOTE: If bind9 includes the files in etc/bind in the package, you will have to tell dpkg to move them out of the way using dpkg-divert.

del@ns2:/etc/bind$ ls -l
total 52
-rw-r--r-- 1 root root 2389 Sep 3 01:40 bind.keys
-rw-r--r-- 1 root root 237 Sep 3 01:40 db.0
-rw-r--r-- 1 root root 271 Sep 3 01:40 db.127
-rw-r--r-- 1 root root 237 Sep 3 01:40 db.255
-rw-r--r-- 1 root root 353 Sep 3 01:40 db.empty
-rw-r--r-- 1 root root 270 Sep 3 01:40 db.local
-rw-r--r-- 1 root root 3048 Sep 3 01:40 db.root
-rw-r--r-- 1 root bind 463 Sep 3 01:40 named.conf
-rw-r--r-- 1 root bind 490 Sep 3 01:40 named.conf.default-zones
-rwxr-xr-x 1 root bind 2186 Oct 28 12:05 named.conf.local
-rw-r--r-- 1 root bind 482 Nov 3 10:13 named.conf.options
-rw-r----- 1 bind bind 77 Oct 26 16:14 rndc.key
-rw-r--r-- 1 root root 1317 Sep 3 01:40 zones.rfc1918

I think I need prerm, preinst and postinst scripts here.
I only need help on using dpkg-diver please
Many thanks
Old 11-20-2015, 04:07 AM   #2
Senior Member
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
I read up on dpkg-divert and it seems like its not the best way to handle config files. At least this page tells at the bottom:
Seems like on should use But this uses dpkg-divert under the hood as well. Whatever this gives.

Just in case you might want to go another route: think about cfengine or puppet to change config files on a bigger scale.

Did you hit any roadblocks yet? How far did you go?


dns, packages, scripting

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS configuration. mk237 Linux - Server 1 07-23-2014 07:01 PM
DNS Configuration sanjibgupta Linux - Newbie 1 09-11-2011 03:25 AM
A DNS learner's question->Is my DNS configuration right? saagar Linux - Newbie 4 01-12-2009 08:44 AM
DNS configuration and configuration file in RHEL5 remo1225 Linux - Newbie 1 02-20-2008 04:25 AM
DNS Configuration romel Linux - Newbie 4 09-22-2003 09:45 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:11 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration