Re: Dynamic DNS (Bind) e DHCP
Tenho utilizado os tutoriais abaixo e tem funcionado perfeitamente:
http://www.guiadohardware.net/dicas/ddns.html
http://www.semicomplete.com/articles/dynamic-dns-with-dhcp/
Att,
Jarbas
2010/9/28 Caio Abreu Ferreira <idic@terra.com.br>:
> Lista
>
> Estou tentando configurar o servidor DHCP e o servidor DNS (Bind)
> para que os dois trabalhem junto, DDNS (Dynamic DNS). Quando uma nova estação
> é acrescentada na rede e assume um novo IP (DHCP), um novo "registro" é
> acrescentado no DNS (Bind). Para isso estou seguindo alguns textos[1]/[2] que
> tenho encontrado na internet.
>
> Informações técnica.
>
> - DNS Server - 192.168.0.5 (master) e 192.168.0.6 (slave)
> - DHCP Server - 192.168.0.7
> - Domínio - particula.local
>
> Até agora eu fiz o seguinte.
>
> ##### A - cat etc/rndc.key #####
> key "rndc-key" {
> algorithm hmac-md5;
> secret "FiPdAfSwPyMCYI8Ck1hDTg==";
> };
>
> ##### B - dhcpd.conf #####
> authoritative;
> ddns-update-style interim;
> ddns-updates on;
> ddns-domainname "particula.local";
> ddns-rev-domainname "0.168.192.in-add.arpa";
>
> key "rndc-key" {
> algorithm hmac-md5;
> secret "FiPdAfSwPyMCYI8Ck1hDTg==";
> };
>
> zone particula.local {
> primary 192.168.0.5;
> key rndc-key;
> }
>
> zone 0.168.192.in-addr.arpa {
> primary 192.168.0.5;
> key rndc-key;
> }
>
> default-lease-time 600;
> max-lease-time 7200;
>
> option domain-name "particula.local";
> option domain-name-servers 192.168.0.5, 192.168.0.6;
>
> subnet 192.168.0.0 netmask 255.255.255.0 {
> range 192.168.0.100 192.168.0.127;
> option routers 192.168.0.2;
> option domain-name "particula.local";
> option domain-name-servers 192.168.0.5, 192.168.0.6;
> option broadcast-address 192.168.0.255;
> }
>
> ##### named.conf (master) #####
> key "rndc-key" {
> algorithm hmac-md5;
> secret "FiPdAfSwPyMCYI8Ck1hDTg==";
> };
>
> zone "particula.local" {
> type master;
> file "master/db.particula.local";
> allow-transfer { 192.168.0.6; };
> notify yes;
> };
>
> zone "0.168.192.in-addr.arp" {
> type master;
> file "master/db.0.168.192.in-addr.arpa";
> allow-update { key rndc-key; };
> };
>
> Quando o servidor de DHCP é inicializado estão aparecendo as
> seguintes mensagens de erro.
>
> server dhcpd[12204]: /etc/dhcpd.conf line 9: expecting a parameter or declaration.
> server dhcpd[12204]: ddns-update-style
> server dhcpd[12204]: ^
> server dhcpd[12204]: /etc/dhcpd.conf line 10: expecting a parameter or declaration.
> server dhcpd[12204]: ddns-updates
> server dhcpd[12204]: ^
> server dhcpd[12204]: /etc/dhcpd.conf line 11: expecting a parameter or declaration.
> server dhcpd[12204]: ddns-domainname
> server dhcpd[12204]: ^
> server dhcpd[12204]: /etc/dhcpd.conf line 12: expecting a parameter or declaration.
> server dhcpd[12204]: ddns-rev-domainname
> server dhcpd[12204]: ^
> server dhcpd[12204]: /etc/dhcpd.conf line 14: expecting a parameter or declaration.
> server dhcpd[12204]: key
> server dhcpd[12204]: ^
> server dhcpd[12204]: /etc/dhcpd.conf line 17: expecting a parameter or declaration.
> server dhcpd[12204]: };
> server dhcpd[12204]: ^
> server dhcpd[12204]: /etc/dhcpd.conf line 24: expecting a parameter or declaration.
> server dhcpd[12204]: zone
> server dhcpd[12204]: ^
> server dhcpd[12204]: Configuration file errors encountered
> server dhcpd[12204]: exiting.
>
> Alguem na lista por acaso já implementou esse tiopo de solução DDNS?
>
> Obrigado.
>
> 1-http://www.semicomplete.com/articles/dynamic-dns-with-dhcp/
> 2-http://hackerific.net/2007/12/24/dynamic-dns-with-dhcp-and-bind-9/
> 3-http://webcache.googleusercontent.com/search?q=cache:http://www.ubuntu-ac.org/archives/977
>
> --
>
>
> .''`. Caio Abreu Ferreira
> : :' : idic@terra.com.br
> `. `'` Debian User
> `- Key fingerprint = 97F8 61AC 605F 8A8B 3BA1 D479 8C9A 52E8 6478 601F
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iEYEARECAAYFAkyhvYEACgkQmkYY0KJL9xN3jACaA8zhXvoQOM87OjrA6dXyf48m
> SBgAn2L5YsoOMl76lYF8q72qTNVbKSTg
> =VNiw
> -----END PGP SIGNATURE-----
>
>
Reply to: