reserver eintrag

Bind, PowerDNS
Post Reply
blindfisch
Posts: 52
Joined: 2002-08-17 00:55
 

reserver eintrag

Post 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
flo
Posts: 2223
Joined: 2002-07-28 13:02
Location: Berlin
 

Re: reserver eintrag

Post 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.
blindfisch
Posts: 52
Joined: 2002-08-17 00:55
 

Re: reserver eintrag

Post 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?
Post Reply