I buy domains in bulk for site vulnerability testing.
Right now for each domain that I purchase I have to manually go to my domain registrar's website and add a CNAME record. As an example, for the domain abc.com:
CNAME, www, www.abc.com.herokudns.com, 500
As I am purchasing about 100 domains per day, this gets pretty repetitive. My domain registrar is the cheapest out there (directnic.com) but they don't have an API.
Is it possible to write your own DNS server which spits out this record dynamically? If so, I can just point all my domains to this one DNS server.