Jun 25 2009

Membuat DNS local dengan freebsd

Published by under FreeBsd

Huh cari cari tutorial ngk dapet-dapet untuk ada temen yang mo
sharing...coba2  dewe akhire bisa deeeh....... tapi ngk tau juga...
sapa mo nyoba silahkan...ni sekali coba bisa sih..tapi    
besok mo coba lagi hehehee......langkah2 nya...

1. di /etc/resolf.conf ~ ditambahi nameserver (iplocal)
   yang mo di  jadiin dns

2. di /etc/host.conf ~ dibalik jadi 1.dns 2.hosts

3. conf /etc/namedb/named.conf

terutama di bagian....

// If named is being used only as a local resolver, this is a safe 
   default.

// For named to be accessible to the network, comment this option, 
   specify

// the proper IP address, or delete this option. listen-on 
{ 127.0.0.1;172.10.16.11; };(ditambahi ip local yng mo dijadiin DNS)
(sama nambah zone baru) coontohnya
zone "16.10.172.in-addr.arpa" {

         type master;

         file "master/16.10.172.in-addr.arpa";

        };

zone "angga.net.id" {         

         type master;         

         file "master/angga.net.id";        

         };  
Format ini ada contohnya di /etc/named.conf

4 jalankan sh make-localhost

   Letaknya di /etc/named

Edit filenya 16.10.172.in-addr.arpa yang letaknya di
/etc/namaed/master(untuk contoh aja)

; From: @(#)localhost.rev 5.1 (Berkeley) 6/30/90

; $FreeBSD: src/etc/namedb/PROTO.localhost.rev,v 1.6 
  2000/01/10 15:31:40 peter E

; This file is automatically edited by the `make-localhost' script in

; the /etc/namedb directory.

;
$TTL 3600
@         IN       SOA   angga.net.id. root.angga.net.id. (

                                 20070720 ; Serial

                                 3600 ; Refresh

                                 900 ; Retry

                                 3600000 ; Expire

                                 3600 ) ; Minimum

          IN       NS    ns1.angga.net.id.

          IN       NS    ns2.angga.net.id.

1         IN       PTR   ro.angga.net.id. (angka 3 dan 1
identitas ip gatewaynya ato yang mo dijadikan DNS ip 
belakangnya berapa)

11         IN       PTR   angga.net.id.

2) angga.net.id

   ; From: @(#)localhost.rev 5.1 (Berkeley) 6/30/90

   ; $FreeBSD: src/etc/namedb/PROTO.localhost.rev,v 1.6 
     2000/01/10 15:31:40 peter E

   ;

   ; This file is automatically edited by the `make-localhost' script in

   ; the /etc/namedb directory.

   ;

$TTL 3600

@         IN       SOA   angga.net.id. root.angga.net.id. (

                                 20070720 ; Serial

                                 3600 ; Refresh

                                 900 ; Retry

                                 3600000 ; Expire

                                 3600 ) ; Minimum

          IN       NS    ns1.cobacoba.net.id.

          IN       NS    ns2.cobacoba.net.id.

@         IN       A     172.10.16.11 

web         IN       A     172.26.78.29

Format ini ada contohnya di /etc/named/master
(tinggal di edit aja sesuai keinginan....wah wah wah..cobawoba lagi aahhhh)
5. jgn lupa di /etc/rc.conf di tambahi named_enable="YES"
6. rndc reload dijalankan....moga sukses.....
7. historinya.ip 172.26.78.29 ibaratnya ip publik, dia jadi gateway
ke ip 172.10.16.1....Terus 1p 172.10.16.11 DNS nya....
bis itu di restart aja..moga bisa..selamat mencoba oke boss....
wis aq meh bobox    sik...jane yo ngk ngantuk..capek deeh......

Comments Off on Membuat DNS local dengan freebsd