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

Re: Dynamische DNS-Server Konfiguration



On Thu, May 15, 2003 at 07:58:17AM +0200, Martin Bammer wrote:
> hat jemand schon einmal einen DNS-Server installiert?

Ja.

> Ich bräuchte Informationen darüber wie man bind beibringt DNS-Einträge
> dynamisch zu verwalten.

bind spricht von Haus aus mit dhcpd. DHCP macht m.E. fast immer Sinn,
auch dann, wenn Rechner statische IPs brauchen (Kopplung an die MAC in
dem Fall).

> Es soll möglich sein über die Kommandozeile Einträge hinzuzufügen und
> zu entfernen. Wie geht das?

Mit DHCP eigentlich unnötig.  Im Zweifelsfall zone editieren und 
kill -HUP `cat /var/run/named.pid`

> Wie sieht die Konfiguration aus? Beispiele für die
> Konfigurationsdatei(en) wären sehr hilfreich.

dhcpd.conf und named.conf für obigen Vorschlag sind angehängt.

HTH-HAND,
Nick

-- 
x----------------------------------------------------------------------x
|                I maintain a Zero-Tolerance policy for                |
|                  Zero-Tolerance policy maintainers.                  |
|----------------------------------------------------------------------|
| Nicolas Kratz <nick@ikarus.dyndns.org> <n_kratz@cs.uni-frankfurt.de> |
x----------------------------------------------------------------------x
// Config file for caching only nameserver
// w/ dhcp comm. for local clients

options {
	directory "/var/named";
	// allow-query { localnets; };
	// allow-transfer { localnets; };
	listen-on { 127.0.0.1; 10.0.0.1; };
};

key DHCP_UPDATER {
	algorithm HMAC-MD5.SIG-ALG.REG.INT;
	secret base64_encoded_key==;
};

zone "." {
	type hint;
	file "root.hint";
};

zone "0.0.127.in-addr.arpa" {
	type master;
	file "127.0.0.zone";
};

zone "domain.invalid" {
	type master;
	file "domain.invalid.zone";
	notify no;
	allow-update { key DHCP_UPDATER; };
};

zone "0.0.10.in-addr.arpa" {
	type master;
	notify no;
	file "10.0.0.zone";
	allow-update { key DHCP_UPDATER; };
};

logging {
	category update { default_syslog; };
	category security { default_syslog; };
	category queries { default_syslog; };
};
# dhcpd.conf

ddns-update-style interim;

subnet 10.0.0.0 netmask 255.255.255.0 {
	range 10.0.0.11 10.0.0.200;
	default-lease-time 86400; max-lease-time 259200;
	option subnet-mask 255.255.255.0;
	option broadcast-address 10.0.0.255;
	option routers 10.0.0.1;
	option domain-name-servers 10.0.0.1;
	option domain-name "domain.invalid";
}

key DHCP_UPDATER {
	algorithm HMAC-MD5.SIG-ALG.REG.INT;
	secret base64_encoded_key==;
}

zone webterrier.de.internal. {
	primary 127.0.0.1;
	key DHCP_UPDATER;
}

zone 0.0.10.in-addr.arpa. {
	primary 127.0.0.1;
	key DHCP_UPDATER;
}

Attachment: pgpok_okpRwxA.pgp
Description: PGP signature


Reply to: