Mon, Apr 11, 2022Will Hackett

Save time importing Cloudflare DNS records

Cloudflare's UI for managing DNS records is nice, but this method can help you import larger batches of changes faster.

Cloudflare Bind Upload

You can use the BIND record format to your advantage to batch changes to your Cloudflare DNS records.

An A record example:

willhackett.com.	300	IN	A	104.26.12.146
willhackett.com.	300	IN	A	104.26.13.146
willhackett.com.	300	IN	A	172.67.73.254

An MX example:

willhackett.com.	300	IN	MX	27 route2.mx.cloudflare.net.
willhackett.com.	300	IN	MX	31 route3.mx.cloudflare.net.
willhackett.com.	300	IN	MX	70 route1.mx.cloudflare.net.

For subdomains (ie. test.willhackett.com), you would substitute the willhackett.com. with test.

About the Author

Will Hackett

CTO at Flowstate, building thoughtful AI products. Previously co-founded Pragmatic and Pactio, and led engineering teams at Blinq and Linktree. Passionate about distributed systems, product engineering, and helping teams ship great software.