Strona 1 z 1

Bind9 - konfiguracja jednego IP i dynamiczne subdomeny

: 17 grudnia 2009, 15:36
autor: lukrec
Witam.

Panie i Panowie, mam dość poważny problem z konfiguracją domeny dla mojego serwera

To co mam:
£ącze TkTelekom podpięte bezpośrednio przez eth0.
Mam stałe IP: 88.199.245.67
dns które mi przydzielił TKT: 213.199.225.14

Zainstalowałem binda9, named.conf.

Kod: Zaznacz cały

// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the 
// structure of BIND configuration files in Debian, *BEFORE* you customize 
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local

include "/etc/bind/named.conf.options";

// prime the server with knowledge of the root servers
zone "." {
	type hint;
	file "/etc/bind/db.root";
};

// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912

zone "localhost" {
	type master;
	file "/etc/bind/db.local";
};

zone "127.in-addr.arpa" {
	type master;
	file "/etc/bind/db.127";
};

zone "0.in-addr.arpa" {
	type master;
	file "/etc/bind/db.0";
};

zone "255.in-addr.arpa" {
	type master;
	file "/etc/bind/db.255";
};

zone "reczkowski.eu" {
   type master;
   file "/etc/bind/custom/db.reczkowski.eu";
   allow-transfer {
   88.199.245.67;
   };
};

include "/etc/bind/named.conf.local";
/etc/bind/custom/db.reczkowski.eu

Kod: Zaznacz cały

$TTL 3600
@	IN	SOA		reczkowski.eu.		lukasz.reczkowski.eu. (
	2009120802
	86400
	3600
	3600000
	1209600
)
	IN	NS		ns1.reczkowski.eu.
	IN	NS		ns2.reczkowski.eu.
	IN	MX	10	mail.reczkowski.eu.
@	IN	A 	88.199.245.67
*		IN	A	88.199.245.67
Proszę mi powiedzieć co mi jeszcze brakuje abym mógł w panelu domeny24.net wpisać sobie adresy dns:

Kod: Zaznacz cały

ns1.reczkowski.eu
ns2.reczkowski.eu
Interesuje mnie możliwość tworzenia dynamicznie subomnem:

Kod: Zaznacz cały

xxx1.reczkowski.eu
przez utworzenie katalogu w:

Kod: Zaznacz cały

/var/www/xxx1.reczkowski.eu
Pozdrawiam.