Page 1 of 1
reserver eintrag
Posted: 2003-01-26 23:03
by blindfisch
hallo,
wie kann ich einen reserve eintrag für einen anderen server machen?
dns-server ist auf 192.168.0.1. von diesem möchte ich einen reserve eintrag für 192.168.0.2 machen
Re: reserver eintrag
Posted: 2003-01-26 23:29
by flo
Läuft bei mir folgendermaßen:
/etc/named.conf:
Code: Select all
view "internal" {
match-clients { 192.168.5.0/24; };
recursion yes;
zone "5.168.192.in-addr.arpa" in { type master; file "domain/192.168.5.zone"; allow-update {127.0.0.1;}; };
zone "domain.de" in { type master; file "domain/internal.zone"; allow-update {127.0.0.1;}; };
};
Zonenfile 192.168.5.zone
Code: Select all
$TTL 1W
@ IN SOA . root.localhost. (
2002100801 ; serial (d. adams)
8H ; refresh
4H ; retry
1D ; expiry
8H ) ; minimum
IN NS pollux.domain.de.
;#
;# DynIPs
;#
1 IN PTR dynip-01.domain.de.
2 IN PTR dynip-02.domain.de.
3 IN PTR dynip-03.domain.de.
4 IN PTR dynip-04.domain.de.
...(und so weiter)
Das "view internal" und "match clients" kannst Du überspringen - dann muß Du bloß noch die Klammern anpassen.
Grüße,
flo.
Re: reserver eintrag
Posted: 2003-01-27 02:11
by blindfisch
danke, allerdings hab ich noch einige fragen
muss der eintrag für die named.conf in den "options" teil?
Code: Select all
1 IN PTR dynip-01.domain.de.
2 IN PTR dynip-02.domain.de.
3 IN PTR dynip-03.domain.de.
4 IN PTR dynip-04.domain.de.
ich will auf ip .2 später "bla", auf ip .3 später "blubb" haben. wie muss das dann aussehen?