[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: DHCP - DNS



Sébastien Lardière wrote:

C'est la dernière chose que je n'ai pas essayé, je teste ça, ça ne m'arrange pas, mais bon

voici des extrais de mes fichiers de conf :
dhcpd.conf:
ddns-update-style interim;
ddns-updates on;
subnet 192.168.12.0 netmask 255.255.255.0 {
  range 192.168.12.12 192.168.12.220;
  option routers 192.168.12.1;
  option domain-name-servers 192.168.12.1;
  option ntp-servers 192.168.12.1;

  ignore client-updates;

  zone priv.tcweb.dyndns.org. {
  	primary 127.0.0.1;
  }

  zone 12.168.192.in-addr.arpa. {
  	primary 127.0.0.1;
  }
}

named.conf:
acl "dhcp-dns" {
ici, soit une autorisation par clef, soit par IP, l' IP étant le plus simple, mais aussi le moins fiable :-)
};

zone "priv.tcweb.dyndns.org" in {
	type master;
	file "/etc/bind/priv.tcweb.db";
	allow-update {"dhcp-dns";};
};

zone "12.168.192.in-addr.arpa" {
	type master;
	file "/etc/bind/192.168.12.db";
	allow-update {"dhcp-dns";};
};

dhclient.conf:
send fqdn.fqdn "nom_de_machine.priv.tcweb.dyndns.org.";
send fqdn.encoded on;
send fqdn.server-update on;

send host-name "nom_de_machine.priv.tcweb.dyndns.org";

--
Thomas Clavier                     http://www.tcweb.dyndns.org
Division Ressources & Compétences (Département Client/Serveur)
Adventec Lille
+33 (0)3 20 18 53 02 - +33 (0)6 20 81 81 30



Reply to: