|| what is bind
please take a look this
|| install bind (debian)
|
1 |
# aptitude install bind9 |
|| setting bind
| setup file named.conf
|
1 2 3 4 5 6 7 8 9 10 |
# vi /etc/bind/named.conf.local
zone "blackonsole.org" IN {
file "/etc/bind/master/zone.blackonsole.org";
type master;
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "/etc/bind/master/rdns.blackonsole.org";
}; |
| setup file zone
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# mkdir /etc/bind/master
# cd /ect/bind/master/
# vi zone.blackonsole.org
$TTL 86400
$ORIGIN blackonsole.org.
@ 1D IN SOA blackonsole.org. admin.blackonsole.org. (
42 ; serial
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
1D IN NS ns1.blackonsole.org.
1D IN NS ns2.blackonsole.org.
1D IN A 192.168.1.11
1D IN MX 10 mail.blackonsole.org.
ns1 1D IN A 192.168.1.11
ns2 ID IN A 192.168.1.11
www 1D IN A 192.168.1.11
mail 1D IN A 192.168.1.11 |
| setup file reverse
|
1 2 3 4 5 6 7 8 9 10 11 |
# vi rdns.blackonsole.org
$TTL 86400
@ IN SOA blackonsole.org. admin.blackonsole.org. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS ns1.blackonsole.org.
IN NS ns2.blackonsole.org.
11 IN PTR mail.blackonsole.org. |
|| restarting named
|
1 |
# /etc/init.d/bind9 restart |
|| testing
|
1 |
# dig blackonsole.org @localhost |
|| link
| google
| justinhartman