Package: auroradns-cli
auroradns-cliA command line api client for PCextreme's AuroraDNS service based on Apache
Libcloud.Usageusage:auroradns-cli.py[action][arguments](--helpformoreinformation)AuroraDNSCommandLineInterface

positionalarguments:{list-zones,get-record,create-record,delete-record,update-record,create-zone,delete-zone,set-hostname}Specifytheactiontoperform.

optionalarguments:-h,--helpshowthishelpmessageandexit--detailsprintdetails--extrasprintextras--forcedonotprompt

authentication:--apikeyAPIKEY,-aAPIKEYdnsapikey--secretkeySECRETKEY,-sSECRETKEYdnssecretkey

recordarguments:-nNAME,--nameNAMEdnsnamefield,defaultstoapex-dDATA,--dataDATAdnsdata/contentfield-pPRIO,--prioPRIOdnsrecordPRIO,mandatoryforMXandSRVrecordtypes-tTYPE,--typeTYPEdnsrecordtype,defaultstoA/AAAAbasedonDATA,mandatoryotherwise--ttlTTLdnsrecordTTL--recordidRECORDIDdnsrecordID

zonearguments:-zZONE,--zoneZONEdnsZONEname--zoneidZONEIDdnszoneIDExamplesList all records in a zone:./auroradns-cli.pyget-record--zone=mydomain.net
nametypepriorityttldata
---------------------------------------------------------------------------------------------------------------------
@A900203.0.113.20
*A900203.0.113.20
@AAAA9002001:db8:1337::5054:efff:fe0c:c675
*AAAA9002001:db8:1337::5054:efff:fe0c:c675
@MX10900primary.mail.pcextreme.nl
@MX20900fallback.mail.pcextreme.nl
@NS3600ns081.auroradns.eu
@NS3600ns082.auroradns.nl
@NS3600ns083.auroradns.info
@SOA4800ns081.auroradns.euadmin.auroradns.eu2019011401864007200604800300Filter on specific record types and ttl:./auroradns-cli.pyget-record--zone=mydomain.net--type=AAAA--ttl=900nametypepriorityttldata
-----------------------------------------------------------------------------
@AAAA9002001:db8:1337::5054:efff:fe0c:c675
*AAAA9002001:db8:1337::5054:efff:fe0c:c675Create a new dns-record, IPv6 and IPv4 records are validated and record type is
automatically set to AAAA or A if not specified. TTL defaults to zone default:./auroradns-cli.pycreate-record--zone=mydomain.net--name=test123--data=2001:db8:1337:dbfd:5054:3eff:feba:c1f3
Recordcreated:test123.mydomain.net.3600INAAAA2001:db8:1337:dbfd:5054:3eff:feba:c1f3Delete a record, multiple records can be removed if the filters
return multiple results:./auroradns-cli.pydelete-record--zone=mydomain.net--name=mysubdomain--type=A
nametypepriorityttldata
------------------------------------------------------------------------------
mysubdomainAAAA36002001:db8:1337::5054:15ff:feb8:6a0e

Warning,youareabouttodeletetherecordsshownabove,thiscannotbeundone.
Type_uppercase_yestoconfirm:YES

Deletedrecordid9f020b67-5b77-46e8-832c-0792280e3260:mysubdomain.mydomain.net.3600INA203.0.113.10Automatically create or update AAAA-/A-records for the host./auroradns-cli.pyset-hostname
Recordcreated:mysubdomain.mydomain.net.3600INAAAA2001:db8:1337::5054:15ff:feb8:6a0e
Recordupdated:mysubdomain.mydomain.net.3600INA203.0.113.10AuthenticationYou can either pass the--apikey APIKEYand--secretkey SECRETKEYcommand
line argumenrs or set theDNS_API_KEYandDNS_SECRET_KEYenvironment
variables:exportDNS_API_KEY=MYAPIKEY;exportDNS_SECRET_KEY=MYSECRETKEYSetuppip3installauroradns-cliRequirementsUbuntu 16+aptinstallpython3python3-pippython3-devCentOS 7yuminstallpython3python3-pippython3-develLicenseMIT LicenseThis is my first python project ever so there's probably a lot of code in here
that doesn't even come close to being pythonic and some design choices that
may seem very strange but they seemed logical to me at the time. So no
guarantees on this whatsoever, use at your own risk. If this works for you,
great, enjoy! If not, send me a message and I'll try to fix the issue.