der_angler
17.09.03, 09:36
Hallo,
ich habe auf einem Red Hat 9 Server DNS & DHCP laufen. Der Rechner hat 3 Netzwerkkarten. 1 für DSL, die anderen 2 fürs Netzwerk.
Das ist mein erstes Linux System was ich installiert habe, und deshalb wollte ich hier mal meine named.conf und meine zonen-Dateien posten und fragen ob die so richtig sind oder ob sich da fehler eingeschlichen haben (was ich vermute).
Also erstmal die "named.conf"
// generated by named-bootconf.pl
options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
forwarders
{
217.5.112.145;
194.25.2.129;
};
listen-on port 53 { 127.0.0.1;192.168.0.1;192.168.1.1; };
};
//
// a caching only nameserver config
//
zone "." IN {
type hint;
file "named.ca";
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "kraus" IN {
type master;
file "kraus.zone";
allow-update { none; };
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "0.168.192.zone";
allow-update { none; };
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "1.168.192.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
}
Dann die "0.168.192.zone"
$TTL 86400
@ IN SOA rhsrv.kraus root.rhsrv.kraus (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS rhsrv.
1 IN PTR rhsrv.kraus
jetzt die "1.168.192.zone"
$TTL 86400
@ IN SOA rhsrv.kraus root.rhsrv.kraus (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS rhsrv.
1 IN PTR rhsrvcb.kraus
und zu guter letzt die "kraus.zone"
$TTL 86400
$ORIGIN kraus.
@ 1D IN SOA @ root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
1D IN NS rhsrv.kraus.
1D IN A 192.168.0.1
rhsrv 1D IN A 192.168.0.1
rhsrvcb 1D IN A 192.168.1.1
ich habe auf einem Red Hat 9 Server DNS & DHCP laufen. Der Rechner hat 3 Netzwerkkarten. 1 für DSL, die anderen 2 fürs Netzwerk.
Das ist mein erstes Linux System was ich installiert habe, und deshalb wollte ich hier mal meine named.conf und meine zonen-Dateien posten und fragen ob die so richtig sind oder ob sich da fehler eingeschlichen haben (was ich vermute).
Also erstmal die "named.conf"
// generated by named-bootconf.pl
options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
forwarders
{
217.5.112.145;
194.25.2.129;
};
listen-on port 53 { 127.0.0.1;192.168.0.1;192.168.1.1; };
};
//
// a caching only nameserver config
//
zone "." IN {
type hint;
file "named.ca";
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "kraus" IN {
type master;
file "kraus.zone";
allow-update { none; };
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "0.168.192.zone";
allow-update { none; };
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "1.168.192.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
}
Dann die "0.168.192.zone"
$TTL 86400
@ IN SOA rhsrv.kraus root.rhsrv.kraus (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS rhsrv.
1 IN PTR rhsrv.kraus
jetzt die "1.168.192.zone"
$TTL 86400
@ IN SOA rhsrv.kraus root.rhsrv.kraus (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS rhsrv.
1 IN PTR rhsrvcb.kraus
und zu guter letzt die "kraus.zone"
$TTL 86400
$ORIGIN kraus.
@ 1D IN SOA @ root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
1D IN NS rhsrv.kraus.
1D IN A 192.168.0.1
rhsrv 1D IN A 192.168.0.1
rhsrvcb 1D IN A 192.168.1.1