Tutorials

Setup DNS using Bind / named

|| what is bind
please take a look this

|| install bind (debian)

# aptitude install bind9

|| setting bind
| setup file named.conf

# 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

# 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

# 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

# /etc/init.d/bind9 restart

|| testing

# dig blackonsole.org @localhost

|| link
| google
| justinhartman

Hi, I’m Sysadmin.ID

Leave a Reply

Your email address will not be published. Required fields are marked *