Friday, June 7, 2013

creating a zone file for bind9 DNS

creating a zone file for bind9 DNS

when i deployed DNS on ubuntu, i had to change the owner of the forward/reverse zone file to named
does this apply also in ubuntu? also, can you check these for me, ive been getting SERVFAIL
which is proper syntax for ubuntu? //CONFIG1 or //CONFIG2
FORWARD ZONE
$TTL 1D
@       IN SOA  test.ic. admin.test.ic. (
                                0       ; serial
                                1D      ; refresh
                                1H      ; retry
                                1W      ; expire
                                3H )    ; minimum

//CONFIG 1
@               IN NS           test.ic.
@               IN A            192.168.5.26
www             IN A            192.167.5.26

//CONFIG 2
;test.ic.                IN NS           dns.test.ic.
;webserver               IN A            192.168.5.26
;www                     IN CNAME        webserver
REVERSE ZONE
$TTL 1D

@       IN SOA  test.ic. test.ic. (
                                0       ; serial
                                1D      ; refresh
                                1H      ; retry
                                1W      ; expire
                                3H )    ; minimum

//CONFIG 1
@       IN      NS      dns.test.ic.
26      IN      PTR     www.test.ic.

//CONFIG 2
;       IN      NS      dns.test.ic.
;26     IN      PTR     www.test.ic.
NSLOOKUP
root@dns:/etc/bind/zones# nslookup test.ic
Server:     127.0.0.1
Address:            127.0.0.1#53

** server can't find test.ic.test.ic: SERVFAIL

No comments:

Post a Comment