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

DDNS mit dnsmasq



Hallo!

Ich wollte extra einen groooooßen Bogen um Bind machen und habe dnsmasq ausprobiert. Leider bin ich selbst dafür zu doof... Folgende Situation: DSL-Router (192.168.0.1). Daran hängt der Debian Woody Server MARS (192.168.0.2) mit dhcp 2.0p15-11 und dnsmasq 1.4-2 sowie diverse Win-Clients mit dynamischer IP-Zuweisung (einer davon ist PLUTO).

dnsmasq scheint genau _eine_ DNS-Anfrage zu beantworten, danach ist Schluss:

,---- [ dnsmasq ]
| mars:/home/ts# /etc/init.d/dhcp restart
| Stopping DHCP server: dhcp.
| Starting DHCP server: dhcp.
| mars:/home/ts# /etc/init.d/dnsmasq restart
| Restarting caching dns forwarder: dnsmasq.
| mars:/home/ts# nslookup pluto
| Server:         127.0.0.1
| Address:        127.0.0.1#53
|
| Non-authoritative answer:
| Name:   pluto
| Address: 192.168.0.10
|
| mars:/home/ts# nslookup pluto
| Server:         127.0.0.1
| Address:        127.0.0.1#53
|
| Non-authoritative answer:
| *** Can't find pluto: No answer
|
| mars:/home/ts# nslookup mars
| Server:         127.0.0.1
| Address:        127.0.0.1#53
|
| Non-authoritative answer:
| Name:   mars.billroth.de
| Address: 192.168.0.2
`----

Meine Config-Files:

,---- [ /etc/resolv.conf ]
| search billroth.de
| nameserver 127.0.0.1
`----

,---- [ /etc/resolv.dnsmasq ]
| search billroth.de
| nameserver 192.168.0.1
|
`----

,---- [ /etc/hosts ]
| 127.0.0.1       localhost
| 192.168.0.2     mars.billroth.de mars
`----

,---- [ /etc/dhcpd.conf ]
| option domain-name "billroth.de";
| option domain-name-servers 192.168.0.2;
| option subnet-mask 255.255.255.0;
| default-lease-time 600;
| max-lease-time 7200;
| authoritative;
| subnet 192.168.0.0 netmask 255.255.255.0 {
|   range 192.168.0.10 192.168.0.50;
|   get-lease-hostnames true;
|   option subnet-mask 255.255.255.0;
|   option netbios-name-servers 192.168.0.2;
|   option broadcast-address 192.168.0.255;
|   option routers 192.168.0.1;
| }
`----

,---- [ /etc/default/dnsmasq ]
| RESOLV_CONF="/etc/resolv.dnsmasq"
| DHCP_LEASE="/var/lib/dhcp/dhcpd.leases"
`----

Was geht hier schief?!? Warum klappt die DNS-Anfrage nur ein mal?! Ein verwirrter...

...Tom

--
"What difference does it make to the dead, the orphans,
 and the homeless, whether the mad destruction is brought
 under the name of totalitarianism or the holy name of
 liberty and democracy?"    --- Gandhi



Reply to: