Migration: Bind 9 to EnGarde Linux DNS Server...

Discuss installation issues/solutions for Engarde

Moderators: scrumpy, Dave, leihog

Migration: Bind 9 to EnGarde Linux DNS Server...

Postby {-DesT-} on Wed Aug 09, 2006 11:01 am

Hey folks,

I try to find a way to export/import our DNS config into EnGarde without having to redo each domain one by one.

I tought about using EnGarde as a slave DNS and change all zone to master after the first update... but i'm unable to change a zone from slave to master!

thks

{-DesT-}
{-DesT-}
 
Posts: 2
Joined: Wed Aug 09, 2006 10:53 am

Re: Migration: Bind 9 to EnGarde Linux DNS Server...

Postby eric on Thu Aug 10, 2006 2:43 pm

{-DesT-},

It all depends on what you are attempting to import it from. If the system is just a vanilla install of bind9 not doing anything special, then you should be able to just drop the files into place and edit the named.conf.

With regard to your idea of syncing them via the master-slave relationship...This is very likely to break the functionality of the WebTool. This is because the WebTool is extremely picky about the format and layout of the data in the files.

Assuming that it doesn't break the WebTool functionality, then it would be just as simple as moving everything in the slave directory over to the master directory and then replacing every instance of the word slave with the word master.

Eric
eric
Site Admin
 
Posts: 234
Joined: Wed Jun 14, 2006 11:15 am
Location: New Jersey, USA

Re: Migration: Bind 9 to EnGarde Linux DNS Server...

Postby {-DesT-} on Thu Aug 10, 2006 11:17 pm

eric wrote:{-DesT-},

It all depends on what you are attempting to import it from. If the system is just a vanilla install of bind9 not doing anything special, then you should be able to just drop the files into place and edit the named.conf.

With regard to your idea of syncing them via the master-slave relationship...This is very likely to break the functionality of the WebTool. This is because the WebTool is extremely picky about the format and layout of the data in the files.

Assuming that it doesn't break the WebTool functionality, then it would be just as simple as moving everything in the slave directory over to the master directory and then replacing every instance of the word slave with the word master.

Eric


I was curios this morning and I try that... I put EnGarde as slave of my master bind DNS and I try to move the files from slave/ to master/ and change the word slave to master in the named.conf on EnGarde... and the result is...

not working at 100%, I see all the zone in the master list BUT when I click on it it's empty.
{-DesT-}
 
Posts: 2
Joined: Wed Aug 09, 2006 10:53 am

Re: Migration: Bind 9 to EnGarde Linux DNS Server...

Postby eric on Fri Aug 11, 2006 10:51 am

{-Dest-},

As I noted before, the WebTool is very anal about layout of the configuration files. By syncing them via the master/slave relationship, there was only a possibility that the WebTool would be able to read them, not a guarentee. Bind itself should still work, but not the WebTool for configuring it.

Eric
eric
Site Admin
 
Posts: 234
Joined: Wed Jun 14, 2006 11:15 am
Location: New Jersey, USA

Re: Migration: Bind 9 to EnGarde Linux DNS Server...

Postby GrayMatter on Tue Oct 12, 2010 1:14 pm

Hi guys!

Sorry to dig up an old post, but I am having trouble finding any info on this same topic. I am trying to migrate from a vanilla bind9 server to Engarde. I have copied over all 80 zone files and updated the named.conf file. The bind server is working properly and I can query all zones on my Engarde server but nothing shows up in the web gui. How do I get the zones to show in the web gui? I know it was mentioned that the web gui is picky about formatting, but my zone entries are about as basic as it gets in the named.conf file.

Here's an example of one of my entries in named.conf:
zone "mydomain.com" {
type master;
file "master/mydomain.com.hosts";
};

I added a duplicate zone from the web gui and it adds it to the named.conf file without removing my existing entries. I then deleted the entry from named.conf and now the web gui just hangs when trying to pull up the zone lists. I also changed the file owner and permissions of the zone files and named.conf because the uid and guid of the files in my tar ball didn't match the new server. Anyone know what it wants the owner:group and permissions to be? I forgot to check the existing files before I replaced them.

Thanks!
GM
GrayMatter
 
Posts: 5
Joined: Tue Oct 12, 2010 11:29 am

Re: Migration: Bind 9 to EnGarde Linux DNS Server...

Postby GrayMatter on Tue Oct 12, 2010 1:29 pm

Could it be that there is a limit to the number of domains it can handle?
GrayMatter
 
Posts: 5
Joined: Tue Oct 12, 2010 11:29 am

Re: Migration: Bind 9 to EnGarde Linux DNS Server...

Postby GrayMatter on Tue Oct 12, 2010 3:11 pm

more oddities. Every time I go to the master zone list page, the perl process gets hung in an infinite loop on the server.
Code: Select all
[root@zaphod named]# ps -ef |grep named
root      1901  1900  0 08:59 ?        00:00:00 /usr/bin/perl -w /usr/webtool/modules/named/list_master_zones.cgi
root      1939  1938  0 09:02 ?        00:00:00 /usr/bin/perl -w /usr/webtool/modules/named/list_slave_zones.cgi
root      1941  1940  0 09:02 ?        00:00:00 /usr/bin/perl -w /usr/webtool/modules/named/list_slave_zones.cgi
root      1951  1950  0 09:02 ?        00:00:00 /usr/bin/perl -w /usr/webtool/modules/named/list_slave_zones.cgi
root      2356  2355  0 10:17 ?        00:00:00 /usr/bin/perl -w /usr/webtool/modules/named/edit_config.cgi
root      2362  2361  0 10:18 ?        00:00:00 /usr/bin/perl -w /usr/webtool/modules/named/list_master_zones.cgi
root      2364  2363  0 10:18 ?        00:00:00 /usr/bin/perl -w /usr/webtool/modules/named/list_master_zones.cgi
root      2366  2365  0 10:18 ?        00:00:00 /usr/bin/perl -w /usr/webtool/modules/named/list_master_zones.cgi
root      2368  2367  0 10:18 ?        00:00:00 /usr/bin/perl -w /usr/webtool/modules/named/list_master_zones.cgi
root      2370  2369  0 10:18 ?        00:00:00 /usr/bin/perl -w /usr/webtool/modules/named/list_master_zones.cgi
root      2372  2371  0 10:18 ?        00:00:00 /usr/bin/perl -w /usr/webtool/modules/named/list_master_zones.cgi
root      2374  2373  0 10:18 ?        00:00:00 /usr/bin/perl -w /usr/webtool/modules/named/list_master_zones.cgi
root      2376  2375  0 10:18 ?        00:00:00 /usr/bin/perl -w /usr/webtool/modules/named/list_master_zones.cgi
root      2429  2428  0 10:22 ?        00:00:00 /usr/bin/perl -w /usr/webtool/modules/named/list_master_zones.cgi
root      2666  2665  0 11:04 ?        00:00:00 /usr/bin/perl -w /usr/webtool/modules/named/list_master_zones.cgi
root      2855  2854  0 11:06 ?        00:00:00 /usr/bin/perl -w /usr/webtool/modules/named/list_master_zones.cgi
named     3077     1  0 11:10 ?        00:00:00 /usr/sbin/named -4 -c /var/named/named.conf -t /var/chroot/named -u named
root      3192  3191  0 11:15 ?        00:00:00 /usr/bin/perl -w /usr/webtool/modules/named/edit_config.cgi
root      3351  2635  0 11:31 ttyp0    00:00:00 grep named
[root@zaphod named]#

Also, when I run that cgi script from the command line, I get the following repeated forever:
Code: Select all
Use of uninitialized value in string eq at /usr/webtool/modules/named/named.pm line 367.
Use of uninitialized value in pattern match (m//) at /usr/webtool/modules/named/named.pm line 372.
Use of uninitialized value in pattern match (m//) at /usr/webtool/modules/named/named.pm line 372.
Use of uninitialized value in pattern match (m//) at /usr/webtool/modules/named/named.pm line 372.
GrayMatter
 
Posts: 5
Joined: Tue Oct 12, 2010 11:29 am


Return to Installation

Who is online

Users browsing this forum: No registered users and 2 guests

cron