Monday, February 11, 2008

Coba2 buat DNS local Pake 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";
};
pre>zone "angga.net.id" {
type master;
file "master/angga.net.id";
};

4 jalankan sh make-localhost

1) isi filenya...untuk 16.10.172.in-addr.arpa (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


(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......

1 comment:

imamshoivis said...

maaf dimana saya bisa ngejalankan make-localhost di direktori mana?
terus tak cari2 filenya kok tidak ada?

 

blogger templates | Make Money Online