How to setup Dns plugin

Argonaut-ldap2zone is the program used to create bind zone files and refresh the bind service.

Argonaut-ldap2zone is in development stage, so you need to take him from fusiondirectory development repository. Add argonaut development repository in your system, reload your list of packages and install:

debian

Adding the Argonaut repositories

How to install Argonaut

apt-get install bind9 bind9-host argonaut-ldap2zone ldap-utils
apt-get install fusiondirectory-plugin-dns fusiondirectory-plugin-dns-schema

rpm <TODO>

rpm user, please edit

Requirements

In order to use dns plugin, you need to have a dns server installed and configured in your infrastructure environnement. You can do that installing the following:

debian

apt-get install bind9 bind9-host ldap-utils

rpm <TODO>

rpm user, please edit

In order to install dns plugin, you need to have installed and configured Systems plugin. If you don't know how to install him, you can take a look at:

Install required packages

debian

apt-get install fusiondirectory-plugin-dns

rpm <TODO>

rpm user, please edit

Install required schemas

debian

apt-get install fusiondirectory-plugin-dns-schema
fusiondirectory-insert-schema -i /etc/ldap/schema/fusiondirectory/dnszone.schema
fusiondirectory-insert-schema -i /etc/ldap/schema/fusiondirectory/dns-fd-conf.schema

rpm <TODO>

rpm user, please edit

Configure your /etc/ldap/ldap.conf according to your environment:

debian

BASE    dc=opensides,dc=de
URI     ldap://fd-server

rpm <TODO>

rpm user, please edit

debian

(Re)Start slapd:

root@fd-server:~# service slapd stop
root@fd-server:~# service slapd start

rpm <TODO>

rpm user, please edit

How to use the dns plugin

Add dns service to a system in fusiondirectory

In our exemple the dns service is in dhcp-server.

1. If not already done, create a new server in fusiondirectory. If you don't know, see how to create a new server.

2. Click on the dhcp-server:

3. Click on Services:

4. Create DNS service via Actions –> Create:

5. Add a new dns-zone:

6. Fill in all required fields and click “Save”:

Note: There will be data to type in for the DNS service. All of it is just the usual information.

NOTE: Make sure you fill in “Primary dns server for this zone” as a HOSTNAME, NOT AN IP! Otherwise, zone file (in /var/cache/bind/db.your.zone.) will be badly formatted and won't be loaded.

7. Click “Save” again:

8. Click “Ok”:

9. Enter the server again, check the 'Enable DNS for this device' checkbox and click “Ok”:

10. You are back to main “Systems” screen now, and ready to continue with last step(s).

Update dns zone

If not already done, add argonaut DNS service to your dns server in fusiondirectory interface.

Every time that you add or change your dns zone in your dns-server, you need to update bind. You can do that directly in FusionDirectory GUI or manually from dns-server command line.

run argonaut-ldap2zone from FusionDirectory

After you have saved all your changes in your dns server, click on dns settings icon:

then you can reload the zone's clicking on button highlighted in red:

run manually argonaut-ldap2zone

On the dns server:

root@dhcp-server:~# argonaut-ldap2zone --verbose <name-of-the-zone>

If you want to test your zone before enabling it and dump it on another directory

root@dhcp-server:~# argonaut-ldap2zone --verbose --norestart --dumpdir dnszone/ master.fdi <name-of-the-zone>

In my exemple I've created 2 zones, that give me :

root@dhcp-server:~# argonaut-ldap2zone --verbose labo.opensides.be
Searching DNS Zone 'labo.opensides.be.'
Found 1 results
Added record ns @ IN localhost 
Added record SOA @ IN localhost root.fd-install. 201211211 3600 1800 720000 6400 500
Reverse zone is 56.168.192.in-addr.arpa.
Found 1 results
Added record ns @ IN localhost 
Added record SOA @ IN localhost root.fd-install. 201211211 3600 1800 720000 6400 500
server reload successful

root@dhcp-server:~#  argonaut-ldap2zone --verbose acme.com
Searching DNS Zone 'acme.com.'
Found 1 results
Added record ns @ IN dhcp-server 
Added record SOA @ IN dhcp-server admin.acme.com. 201211212 3600 1800 720000 6400 500
Reverse zone is 1.0.10.in-addr.arpa.
Found 1 results
Added record ns @ IN dhcp-server 
Added record SOA @ IN dhcp-server admin.acme.com. 201211212 3600 1800 720000 6400 500
server reload successful
en/documentation/plugin/dns_plugin/how_to_setup_dns_plugin_1.0.5.txt · Last modified: 2017/10/31 10:32 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0