Commit Graph

6 Commits

Author SHA1 Message Date
Buddy Sandidge
f05b4b4278 Refactor dns part of app to it's own package
dns package changes dns settings through a client, a client is able to:
 • GetRecords to get a list of records of a type and host. For example,
   GetRecords can get all "AAAA" records for host "domain.example.com"
 • CreateRecord will add a dns entry
 • DeleteRecord will delete a record on dnsimple

Update main package to use dns package
 • main package will now create a record and remove all existing records
   when updating
 • Add special case to do nothing if a dns name has only one value

Create utils package
 • Move splitHost into a utils package
2016-11-22 16:43:22 -08:00
Buddy Sandidge
59b259e55f Updating dnsimple with ip from internet service
• Get dnsimple oauth token from flag or environment variable
 • Check for ip address from whatismyipv6.buddy.wtf
 • Check what the dns record for the current host is set to
 • After getting record and ip address, either create, updated, or do
   nothing for the given host

TODO: clean up code
2016-11-18 14:53:24 -08:00
Buddy Sandidge
7ae53c00d4 Wrap errors and use cli library 2016-11-16 19:52:24 -08:00
Buddy Sandidge
80a8c8044e Add dependencies for errors and cli 2016-11-16 19:51:36 -08:00
Buddy Sandidge
a63f9d657e Get and print IP address from https://whatismyipv6.buddy.wtf/json 2016-11-16 19:19:41 -08:00
Buddy Sandidge
a747567d84 Initial commit 2016-11-16 17:40:33 -08:00