Having issue configuring BIND, I've registered a domain at namecheap and created NS names e.g. ns1.mydomain.com and ns2.mydomain.com and pointed my domain to it.
I installed BIND on the server and this is my current setting:
named.conf.local
Code:
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
zone "mydomain.com" {
type master;
file "/etc/bind/db.mydomain.com";
};
# This is the zone definition for reverse DNS. replace 0.168.192 with your network address in reverse notation - e.g my network address is 192.168.0
zone "201.168.192.in-addr.arpa" {
type master;
file "/etc/bind/rev.201.168.192.in-addr.arpa";
};
db.mydomain.com
Code:
;
; BIND data file for mydomain.com
;
$TTL 604800
mydomain.com. IN SOA ns1.mydomain.com. admin.mydomain.com. (
84739 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ); Negative Cache TTL
;
mydomain.com. IN NS ns1.mydomain.com.
mydomain.com. 86400 IN NS ns2.mydomain.com.
localhost 14400 IN A 127.0.0.1
ns1 14400 IN A <external server IP>
ns2 14400 IN A <external server IP>
@ IN A 127.0.0.1
@ IN AAAA ::1
This is the first time I'm configuring the BIND so I would appreciate any help given.
Bookmarks