Lexicon provides a way to manipulate DNS records on multiple DNS
providers in a standardized way. Lexicon has a CLI but it can
also be used as a python library.

Homepage:
https://github.com/dns-lexicon/dns-lexicon
