| 15 | | Pour chacun des sites alternc que vous souhaitez synchroniser vous devez créer un nouveau fichier dans '''/etc/alternc/slavedns/''' et l'éditer en conséquence. |
| 16 | | Vous devez penser aussi à autoriser votre serveur esclave via le panel de votre serveur principal. |
| | 17 | Ces pages sont accesible uniquement pour les comptes administrateur depuis le lien "Panneau Administrateur" puis "Gérer les ip autorisés à faire des transferts de zone esclave DNS" et "Gérer les comptes autorisés pour les transferts de zone esclave DNS" |
| | 18 | == Sur l'esclave == |
| | 19 | |
| | 20 | Un script '''alternc-slavedns''' est disponible pour traiter les synchronisations. Il se synchronise toutes les 10 minutes avec les serveurs définis dans '''/etc/alternc/slavedns/*.conf''' |
| | 21 | |
| | 22 | Pour configurer votre esclave, créer un nouveau fichier en vous inspirant du fichier '''/etc/alternc/slavedns/defaults.conf'''. |
| | 23 | Vous constaterez dans cet exemple la personnalisation de '''WGETFLAGS''' et de '''NAMED''' ce sont des propositions à adapter en fonction de vos cas d'utilisation. |
| | 24 | {{{ |
| | 25 | # Default configuration for alternc-slavedns |
| | 26 | # this file (called defaults.conf) WILL ALWAYS BE IGNORED by the cron task. |
| | 27 | # |
| | 28 | # This file is sourced from a bourne shell and shell syntax must be correct. |
| | 29 | # The defaults file is sourced before the site-specific configurations |
| | 30 | |
| | 31 | # you must set this or the full URL below |
| | 32 | PROTOCOL=https or PROTOCOL=http |
| | 33 | HOST=alternc.tld |
| | 34 | |
| | 35 | # Hostname http[s] of the master dns server, notice how it defaults to alternc setup |
| | 36 | #URL=${PROTOCOL}://${HOST}/admin/domlist.php |
| | 37 | |
| | 38 | # IP Address of the master dns server, defaults to the contacted host |
| | 39 | #MASTERIP=${HOST} |
| | 40 | MASTERIP=alternc.ip |
| | 41 | |
| | 42 | # Login of the slave to connect to the server (the primary dns administrator will give it to you.) |
| | 43 | # optional |
| | 44 | LOGIN=account create on alternc |
| | 45 | |
| | 46 | # Password of the slave to connect to the server |
| | 47 | # optional |
| | 48 | PASSWORD=password |
| | 49 | |
| | 50 | # That's all. at most one hour after you put a new file in this directory, |
| | 51 | # slavedns will try to synchronize it's domain list |
| | 52 | # you may launch manually the synchronization with "/usr/sbin/slavedns" |
| | 53 | |
| | 54 | # you can override the default config with those settings |
| | 55 | # CONFDIR=/etc/slavedns |
| | 56 | # CACHEDIR=/var/cache/slavedns |
| | 57 | # BINDDIR=/etc/bind/slavedns |
| | 58 | # BINDINCLUDE=/etc/bind/slavedns.conf |
| | 59 | # WGET=wget |
| | 60 | # WGETFLAGS="" |
| | 61 | WGETFLAGS="--no-check-certificate" #if certificat is autosigned |
| | 62 | # WGETRC=${HOME}/.wgetrc |
| | 63 | # NAMED="/usr/pkg/etc/rc.d/named9 restart" # BIND9 on NetBSD |
| | 64 | # NAMED="/etc/rc.d/named restart" # BIND8 on NetBSD/OpenBSD |
| | 65 | # NAMED="ndc restart" # generic |
| | 66 | # NAMED="/etc/init.d/named restart" # BIND8 on some Linux |
| | 67 | # NAMED="/etc/init.d/named9 restart" # BIND9 on some Linux |
| | 68 | # NAMED="/etc/init.d/bind restart" # BIND8 on other Linux |
| | 69 | NAMED="/etc/init.d/bind9 restart" # BIND9 on other Linux |
| | 70 | }}} |