← Back to team overview

sslug-teknik team mailing list archive

DNS på intranet

 

Hejsa

Jeg skal opsætte en dns server (bind) på et intranet. DNS-serveren bliver placeret på den maskine der hedder gandalf og intranet post- og mailserver bliver gimli. Jeg vil så lige høre om denne syntaks er helt i skoven:

;
; Zone file for .misfeldtphoto.dk
;
; Mandatory minimum for a working domain
;

$TTL 86400           ; Default TTL for any record.
                     ; Most often same as SOA TTL.
                     ; 86400   s = 24 hours

@ IN SOA gandalf.misfeldtphoto.dk. hostmaster.gandalf.misfeldtphoto.dk. ( 199901122 ; serial, todays date + todays serial #
                          28800           ; refresh, seconds
                          7200            ; retry, seconds
                          3600000         ; expire, seconds
                          86400 )         ; TTL, minimum, seconds

            IN      NS      gandalf.misfeldtphoto.dk.

; local mail is distributed on gimli
misfeldtphoto.dk. IN MX 10 gimli.misfeldtphoto.dk. ; Primary Mail Exchanger


; A record for gandalf server (this machine)
gandalf IN A 192.168.1.100
; MX record for gandalf
gandalf MX 10 gimli
; some aliases for my gandalf
ns IN CNAME gandalf


; A record for gimli server
gimli IN A 192.168.1.4
; some aliases for my gimli
admin IN CNAME gimli local IN CNAME gimli


;
; give "localhost.misfeldtphoto.dk" and "loopback.misfeldtphoto.dk" IP address 127.0.0.1
localhost IN A  127.0.0.1
loopback  IN A  127.0.0.1


Anders Misfeldt