URL: https://linuxfr.org/forums/general-general/posts/dns-dhcp Title: DNS DHCP Authors: zeycron Date: 2010年05月06日T12:09:18+02:00 Tags: Score: 0 Bonjour j'ai un souci pour enregistrer dynamiquement les données du dns avec mon dhcp........ DNS (192.168.1.3) : **named.conf** include "/etc/bind/rndc.key"; acl reseauLocal { £spaces£ £/spaces192ドル.168.1.0/24; £spaces£ £/spaces£}; options { directory "/var/cache/bind"; forwarders { 192.168.1.2; }; allow-query {reseauLocal;}; allow-recursion {reseauLocal;}; }; controls { £spaces£ £/spaces£inet 127.0.0.1 port 953 £spaces£ £/spaces£allow { 127.0.0.1; } keys { "Kdhcpupdate_rndc-key"; }; }; zone "." { £spaces£ £/spaces£type hint; £spaces£ £/spaces£file "/etc/namedb/db.root"; }; zone "toto.mondomaine.org" in { £spaces£ £/spaces£type master; £spaces£ £/spaces£file "/etc/namedb/db.toto.mondomaine.org"; £spaces£ £/spaces£allow-update{key Kdhcpupdate_rndc-key;}; £spaces£ £/spaces£notify yes; }; zone "1.168.192.in-addr.arpa" in { £spaces£ £/spaces£type master; £spaces£ £/spaces£file "/etc/namedb/db.16.168.1"; £spaces£ £/spaces£allow-update{key Kdhcpupdate_rndc-key;}; £spaces£ £/spaces£notify yes; £spaces£ £/spaces£}; **/etc/bind/rndc.conf** key "Kdhcpupdate_rndc-key" { £spaces£ £/spaces£algorithm hmac-md5; £spaces£ £/spaces£secret "monsecret........"; }; options { £spaces£ £/spaces£default-key Kdhcpupdate_rndc-key; £spaces£ £/spaces£default-server 127.0.0.1; }; server localhost { £spaces£ £/spaces£key Kdhcpupdate_rndc-key; }; **/etc/bind/rndc.key** key "Kdhcpupdate_rndc-key" { £spaces£ £/spaces£algorithm hmac-md5; £spaces£ £/spaces£secret "monsecret........"; }; DHCP (192.168.1.4) : **dhcpd.conf** allow booting; allow bootp; authoritative; ddns-domainname "toto.mondomaine.org."; ddns-rev-domainname "in-addr.arpa."; ddns-updates on; ddns-update-style interim; ignore client-updates; update-static-leases on; subnet 192.168.1.0 netmask 255.255.255.0 { # PASSERELLE PAR DEFAUT option routers 192.168.16.1; # ADRESSE DE DIFFUSION option broadcast-address 192.168.16.255; # MASQUE DE SOUS-RESEAU option subnet-mask 255.255.255.0; # delai du bail en seconde # default-lease-time 3600; # NOM DE DOMAINE option domain-name "toto.mondomaine.org"; option domain-name-servers 192.168.1.3; key "dhcpupdate" { £spaces£ £/spaces£algorithm hmac-md5; £spaces£ £/spaces£secret "monsecret qui est le meme que sur le serveur bind sur la machine 192.168.1.3"; }; zone 1.168.192.in-addr.arpa { £spaces£ £/spaces£primary 192.168.16.3; £spaces£ £/spaces£key dhcpupdate; £spaces£ £/spaces£} zone toto.mondomaine.org { £spaces£ £/spaces£primary 192.168.16.3; £spaces£ £/spaces£key dhcpupdate; £spaces£ £/spaces£} Le DHCP marche très bien... et le DNS aussi... mais les fichiers db.1.168.192 et db.toto.mondomaine.org ne se remplissent pas au fur et à mesure (dynamiquement).... je n'ai pas d'erreur dans les logs....sans doute un gros oubli si quelqu'un pouvait m'aider... merci!!