apt-get install bind9
How to use it:
in the file
/etc/bind/named.conf
at the very end of the file,
set domain information:
zone “domain.com” in {type master; file “/etc/bind/named/domain.com.db“;};
appropriately create folder
/etc/bind/named
in it, create a file
domain.com.db
contents:
@ IN SOA domain.com. root.domain.com. (
201012243 <—–>; serial-nom
28800 <-> <——>; refressh second
7200 <–> <——>; retry
604800 < > <——>; expiry
86400) > <——>; TTL
;
domain.com. IN A 173.192. * the *. * the *
ns1. domain.com. IN A 173.192. * the *. * the *
ns2. domain.com. IN A 173.192. * the *. * the *
*. domain.com. In A 173.192. * the *. * the *
domain.com. IN MX 10 mail
@ NS ns1. domain.com.
@ NS ns2. domain.com.
;
end of content. domain.com change its value
do restart binda
/etc/init.d/bind9 restart
the NS1 and NS2 on domain, after some time, the domain will be handled by your server your bind9.
It means that all additional records for the domains you can do on the server without going to the domain registrar