lexicon
lexicon copied to clipboard
'none' provider
I came across lexicon looking for a way to simplify automatic setup of records for Debian packages. I had started a simple put-dns script to do this, but would prefer to switch to lexicon, as I do not believe in duplicating effort, and put-dns had not got very far.
One thing that put-dns has is a 'none' provider, which is the default and simply appends the request, in RFC1034 format to a file. This allows a start on automating external DNS setup when a provider is not available.
This would then allow usage like
lexicon none create ambridge-garden-club.org.uk TXT --name "ambridge-garden-club.org.uk" --content "Test text record"
to append to /var/lib/lexicon/pending.txt a line saying
ambridge-garden-club.org.uk. IN TXT "Text text record"
A more useful example would be automated creation of SPF, DKIM, MX records.
Hello @JohnLines, I think this is quite interesting! Do you think you would have time to propose an implementation?