Advanced DNS config - Amahi DNS as BIND secondary of AD DNS

jingoman
Posts: 7
Joined: Thu Sep 01, 2011 8:15 am

Advanced DNS config - Amahi DNS as BIND secondary of AD DNS

Postby jingoman » Thu Sep 01, 2011 8:23 am

i have setup the Amahi server on my local network. for testing purposes, there is also a Windows 2008 AD infrastructure in the same network. each uses their own "x.local" domain name.

i have added in the Amahi's domain name as a Secondary zone to Microsoft's AD DNS, by pointing at the appropriate Amahi IP. clients are able to resolve addresses in the Amahi domain.

i am now editing the /etc/named.conf (actually the /etc/named.conf.local) to have the opposite occur, so Amahi domain clients are able to lookup my MS AD DNS too.

i have added the following to the bottom of the above config file:

Code: Select all

zone "redswitch.local" { type slave; file "slaves/redswitch_slave.conf"; masters { 192.168.1.201; } }; };
on the MS AD DNS server, i have added a tick to the "BIND secondaries" option on the DNS server's properties and also allowed Zone Transfers to "any server".

restarting the Amahi DNS service after this, does not import this data and clients unable to do lookups.

if i add the new zone definition directly to the /etc/named.conf, the Amahi DNS service is unable to start.

any clues or help? anyone achieved this?

many thanks...

jingoman
Posts: 7
Joined: Thu Sep 01, 2011 8:15 am

Re: Advanced DNS config - Amahi DNS as BIND secondary of AD

Postby jingoman » Thu Sep 01, 2011 10:23 am

it was due to incorrect syntax!!

i added it into the main /etc/named.conf file too, just beneath the declaration of the HDA's own domain.

should have read (note the "IN"):

Code: Select all

zone "redswitch.local" IN { type slave; file "slaves/redswitch_slave.conf"; masters { 192.168.1.201; } }; };
also, whilst i am here and correcting myself... the "file ..." line must be a relative path, underneath whatever is specified as the data path higher up (in mine, or elsewhere if you have your named config files setup differently) in the conf file.

User avatar
nalleju
Posts: 26
Joined: Mon Sep 12, 2011 1:18 am
Location: Esbo, Finland, EU
Contact:

Re: Advanced DNS config - Amahi DNS as BIND secondary of AD

Postby nalleju » Mon Sep 12, 2011 1:56 am

I using Webmin for this reson, my spelling sucks.

Note
I hade problems setting DHCP range befor I understood the working of Amahi database.
Did set the rang in Webmin or putty but always got back to original.
Its the script in Amahi that rewrigths all settings.

You can set yours by editing /etc/hdactl.conf. like I have:
$DYN_LO = "100";
$DYN_HI = "149";
$USE_OPENDNS_SECONDARY = 1

Then run script:
/etc/init.d/hdactl restart

Who is online

Users browsing this forum: No registered users and 24 guests