How do I setup primary dns name server using tinydns under FreeBSD operating systems?
You need to create a zone file for your domain which will provide the following data:
- Your name server IP address.
- Your mail server IP address and pointer to mx.
- Your AAAA and A records etc.
Step # 1: Create Directory For Your Zone File
Type the following command:
# mkdir /var/ns1.nixcraft.in
Step # 2: Set Up a DNS Publication Service
You need to use your IP 202.54.1.1 and directory /var/ns1.nixcraft.in as follows
# tinydns-conf tinydns dnslog /var/ns1.nixcraft.in 202.54.1.1
Above will create all required directories and default zone data file.
Step # 3: Start TinyDNS Server
Type the following command:
# ln -s /var/ns1.nixcraft.in /var/service/
Verify that UDP port # 53, opened:
# sockstat -4
# sockstat -4 -p 53
Now, all you’ve to do is create a zone file for your domain nixcraft.in.
(adsbygoogle = window.adsbygoogle || []).push({});