Die Konfigurationsdatei named.conf:

Dies ist die Konfigurationsdatei des Rechners SuperSchuessel in der Domäne HomeBase.de:


/* configuration file for BIND 8.1 or later used on SuperSchuessel
 * (should be installed as /etc/named.conf)
 * 
 * adapted by Dr. Ralph Hübner
 */

#
# overall options of the server
#
options {
	directory "/var/named";
	# the default is to fail, if the master file is not correct
	check-names master warn;

	pid-file "/var/run/named.pid";

	datasize default;
	stacksize default;
	coresize default;
	files unlimited;
	recursion yes;

	multiple-cnames no;		// if yes, then a name my have more
					// than one CNAME RR.  This use
					// is non-standard and is not
					// recommended, but it is available
					// because previous releases supported
					// it and it was used by large sites
					// for load balancing.
};

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

zone "localhost" IN {
	type master;
	file "db.localhost";
	check-names fail;
	allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
	type master;
	file "db.127.0.0";
	check-names fail;
	allow-update { none; };
};

#
# zone HomeBase.de (Master)
#
zone "HomeBase.de" IN {
	type master;
	file "master/db.HomeBase.de";
	notify yes;
	allow-update { 200.0.0.1; };
};

#
# zone 0.0.200 for reverse lookup
#
zone "0.0.200.in-addr.arpa" IN {
	type master;
	file "master/db.200.0.0";
	notify yes;
	allow-update { 200.0.0.1; };
};
  

Nach der options- Präambel zur Festlegung einiger Standardparameter folgt die Konfiguration des Cache durch die Datei root.hint und anschließend die Beschreibung der Domänen- und Adreßbereiche (Zonen), welche der Nameserver versorgen soll (forward- und reverse- lookup). Eine Sonderstellung nimmt hierbei das Loopback- Interface ein (Zone localhost, Adresse 127.0.0.0), das durch zwei eigene Dateien konfiguriert wird.

Mit dem Schlüsselwort allow-update wird hier festgelegt, daß die Zone localhost überhaupt nicht und die Zone HomeBase.de nur vom Rechner mit der Adresse 200.0.0.1 im laufenden Betrieb verändert werden darf.


Linux - Konfiguration:  Linux