DNS Zone File Creator is an application written in Go that queries DNS records for a given domain and writes the results to a DNS zone file. This project aims to simplify the process of getting DNS records and converting them into a well-structured zone file.
- Go v1.16 or later. Installation instructions can be found here.
- Clone the repository:
git clone https://github.com/enesconf/dnszonefile.git cd dnszonefile
- Run the program:
go run main.go --domain yourdomain.com
DNS Zone File Creator generates a zone file named yourdomain.com.zone
. This file contains DNS records for the domain and its subdomains.
By default, DNS Zone File Creator queries a list of common subdomains (www
, mail
, ftp
). If you want to customize this list, modify the subdomains
slice in main.go
.