Jump to content
umarzuki

Bind9 Split-domain Dns

Recommended Posts

andaian:

OS = Debian 6
IP = 192.168.69.130
fqdn = ns01.mydomain.com

install pakej yang diperlukan
aptitude install bind9 resolvconf

set static IP
/etc/network/interfaces
 
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.69.130
netmask 255.255.255.0
gateway 192.168.69.2
dns-nameserver 127.0.0.1

/etc/hosts
 
 
127.0.0.1 localhost
127.0.1.1 debian.localdomain debian
192.168.69.130 ns01.mydomain.com ns01

setting bind
/etc/bind/named.conf.local
 
 
zone "mydomain.com" {
type master;
file "/etc/bind/zones/mydomain.com";
};

zone "30.168.192.in-addr.arpa" {
type master;
file "/etc/bind/zones/30.168.192.db";
};


forward zone /etc/bind/zones/mydomain.com

 
 
$TTL 3h

@ IN SOA ns.mydomain.com. root.mydomain.com. (
2012101601 ; counter/ Serial ; in the format YYYYMMDDCC where CC - counter 1 to 99
20m ; refresh
15m ; Retry Interval
1w ; Expire
1h ) ; Negative Cache TTL

IN A 192.168.69.130
IN NS ns01.mydomain.com.
IN MX 10 mail.mydomain.com.

ns01 IN A 192.168.69.130
mail IN A 192.168.69.131

reverse zone /etc/bind/zones/30.168.192.db
 
 
@ IN SOA mydomain.com. root.mydomain.com. (
3 ; counter/ Serial
15m ; refresh
15m ; Retry Interval
1w ; Expire
1h ) ; Negative Cache TTL

IN NS ns01.mydomain.com.

131 IN PTR mail.mydomain.com.

p/s: format tak betul, entah kenapa boleh jadi macam tu dalam tag code

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Similar Content

    • By TonikCapGajah2013
      [b][color=#0000ff][size=5]TIP:1 DNS Setting[/size][/color][/b]
      Kalau diperhatikan rajah di bawah terdapat 2 DNS yang berbeza iaitu Google DNS dan local ip.
      Biasanya orang letak 8.8.8.8 dan 8.8.4.4

      [img]http://www.entrytwo.com.my/images/putera/dns01.jpg[/img]

      Untuk mendapatkan DNS yang terbaik, cuba download program [color=#ff0000][b]namebench[/b][/color]:
      [url="http://code.google.com/p/namebench/"]http://code.google.com/p/namebench/[/url]
      [url="http://code.google.com/p/namebench/downloads/list"]http://code.google.c.../downloads/list[/url]

      Selepas download, run program namebench

      [img]http://www.entrytwo.com.my/images/putera/dns02.jpg[/img]

      Setelah selesai benchmark buka fail HMTL yang disimpan di dalam folder berikut:
      C:\Documents and Settings\user\Local Settings\Temp (winXP)

      [img]http://www.entrytwo.com.my/images/putera/dns03.jpg[/img]

      Ubah jika perlu, dns yang diberikan.
      [img]http://www.entrytwo.com.my/images/putera/dns04.jpg[/img]

      [img]http://www.entrytwo.com.my/images/putera/dns05.jpg[/img]


      ok..sekian
×
×
  • Create New...