FreeBSD DJBDNS: Tinydns Create a Zone File For Domain

https‮al.www//:‬utturi.com
FreeBSD DJBDNS: Tinydns Create a Zone File For Domain

To create a zone file for a domain using DJBDNS on a FreeBSD system, you will need to do the following:

  1. Create a DNS data file for your domain. The DNS data file specifies the DNS records for your domain, and should be in a specific format, as described in the TinyDNS documentation.

To create a DNS data file, you can use the tinydns-data utility to generate a template file. For example, to create a template file for the domain example.com, you can run the following command:

# tinydns-data

This will create a file named data in the current directory. You can then edit this file to add DNS records for your domain.

  1. Run the make command to compile the DNS data file and create the necessary database files:
# cd /usr/local/tinydns/primary
# make
  1. Restart the TinyDNS daemon to apply the changes:
# service tinydns restart
  1. Test the configuration by querying the TinyDNS server using the dig command:
# dig @localhost example.com

This should return the DNS records for the domain example.com.

For more information about configuring and using the DJBDNS TinyDNS server, you can refer to the DJBDNS documentation.

Created Time:2017-10-28 20:40:33  Author:lautturi