After trying to use the wiki page (link) for how to format a zone file, so I could mass import DNS records for a domain, I noticed an issue.
Wiki says to follow this format
$ORIGIN example.com.
$TTL 3600
example.com. IN NS ns.somewhere.example.
Well if you put this into a file, and import it into Cloudflare, it doesn’t like the ‘IN’ word.
I got it to work like this.
$ORIGIN example.com.
$TTL 3600
www A 1.1.1.1
Rinse and repeat.
Cloudflare, your article (link) says to use the proper zone format, but if you go to the official wiki page for “Zone File”, you guys don’t even accept that format. Can you just provide this simple example in the import area of dns records within Cloudflare, to help people like me not have to take time to upload variations of the file till it is finally accepted?
You can upload a .txt file with just one record per line, exactly as BIND uses.
Example:
@ 600 IN MX 1 aspmx.l.google.com.
@ 600 IN MX 5 alt1.aspmx.l.google.com.
@ 600 IN MX 10 aspmx2.googlemail.com.
@ 600 IN MX 10 aspmx5.googlemail.com.
@ 600 IN A 64.233.186.190
www 600 IN CNAME youtube.com.
host891 600 IN AAAA 2607:f8b0:4000:817::2004
host892 600 IN A 142.250.113.139
host892 600 IN AAAA 2607:f8b0:4000:817::2004
host893 600 IN A 142.250.113.134
host893 600 IN AAAA 2607:f8b0:4000:817::2004
host895 600 IN A 142.250.113.132
host895 600 IN AAAA 2607:f8b0:4000:817::2004
host896 600 IN A 142.250.113.137
host896 600 IN AAAA 2607:f8b0:4000:817::2004
host897 600 IN A 142.250.113.130
host897 600 IN AAAA 2607:f8b0:4000:817::2004