Pages

Selasa, 20 November 2012

how to create a dns for FreeBSD

DNS
---
#edit /etc/named/named.conf
options {
        directory "/etc/namedb";
};
zone "." {
        type hint;
        file "named.root";
};
zone "0.0.127.IN-ADDR.ARPA" {
        type master;
        file "localhost.rev";
};
zone "ardix.hs.id" {
        type master;
        file "db.domain";
};
zone "9.10.10.in-addr.arpa" {
        type master;
        file "db.ardix";
};



# edit /etc/named/db.domain
$TTL    3600
@       IN      SOA     nzr.ardix.hs.id. root.ardix.hs.id.  (
                                20060304        ; Serial
                                3600    ; Refresh
                                900     ; Retry
                                3600000 ; Expire
                                3600 )  ; Minimum
                        IN      NS      nzr.ardix.hs.id.
ardix.hs.id.       IN      PTR     ardix.hs.id.
ardix.hs.id.       IN      A       10.10.9.212
sim.ardix.hs.id.   IN      A       10.10.9.212
sis.ardix.hs.id.   IN      A       10.10.9.212
mail.ardix.hs.id.   IN      A       10.10.9.212
www.ardix.hs.id.   IN      CNAME   ardix.hs.id.

# edit /etc/named/db.ardix
$TTL    3600
@       IN      SOA     nzr.ardix.hs.id. root.ardix.hs.id.  (
                                20060304        ; Serial
                                3600    ; Refresh
                                900     ; Retry
                                3600000 ; Expire
                                3600 )  ; Minimum
                        IN      NS      nzr.ardix.hs.id.
212                     IN      PTR     ardix.hs.id.

0 komentar:

Posting Komentar