Commit graph

68 commits

Author SHA1 Message Date
Koen Rouwhorst
0798e4eb0e Route 53 provider now supports CAA (#193) 2017-09-02 07:31:51 -07:00
chewrocca
4244d5f638 adding functionality to allow Gandi to use SRV record types (#192)
* adding CombineSRVs and SplitCombinedSrvValues

adding support for Gandi SRV record types

* adding dc.CombineSRVs()

adding dc.CombineSRVs() to allow Gandi SRV record types.

* adding providers.CanUseSRV

adding providers.CanUseSRV for allowing Gandi to use SRV record types.

* adding case "SRV"

adding case SRV to allow Gandi to use SRV record types.
2017-08-29 10:10:50 -04:00
Tom Limoncelli
198cc258d8 Gandi: Fix broken PTR tests. (#188) 2017-08-22 12:45:40 -07:00
Manatsawin Hanmongkolchai
2ef6b9d6c5 Added PTR record support for prettyzone (#182) 2017-08-14 06:30:59 -07:00
Tom Limoncelli
2534c8eaf2 Ban NO_PURGE when using BIND and others. (#180) 2017-08-11 15:43:06 -04:00
Juho Teperi
ad27cc9b3b Digitalocean provider (#171)
* Implement Digitalocean provider
* Vendor digitalocean lib
* Enable SRV for Digitalocean and fix the tests
* Test cname etc. records pointing to the same domain
2017-08-10 13:31:20 -07:00
PJ Eby
638ee45e6c Implement SRV support for CloudFlare provider (#174)
* Implement SRV support for CloudFlare provider
* go fmt
* Use valid SRV names in SRV tests
2017-08-10 13:02:06 -07:00
Tom Limoncelli
4570e0e404 Fix Gandi's MX handling. 2017-08-05 13:21:57 -04:00
Pat Moroney
93764da4e3 Namecom punycode (#170)
* convert records to punycode before processing

* make IDN CNAME target use a real IDN TLD
2017-08-05 08:08:22 -07:00
Norm MacLennan
7f01a8c9ad #68 Registrar support for Route53 provider (#155)
* Added registrar support to Route53 provider
* ran gofmt on route53Provider
* Caveat: If you use r53 is a Registrar but not as a Dns Service Provider, DNSControl may be DNS-related API calls that you do not have IAM permissions to do.
2017-08-05 07:56:42 -07:00
Tom Limoncelli
2cbabd859b Make it easier to add new Rtypes. (#169)
* NEW: docs/adding-new-rtypes.md
* Mark all "if" and "switch" statements with `#rtype_variations`
* Make consistent use of `default: panic()`
2017-08-04 12:26:29 -07:00
Tom Limoncelli
2f0f5330fc Add CAA support (#161)
* Added CAA support

* Fixed bind parsing of CAA records

* Added CAA parsing test

* Renamed CAA json fields

* Added CAA tag validation

* Updated CAA docs to clarify on the value field

* parse_tests: Fixed typo in caaflags

* Added integration test

* Small cleanups
2017-07-25 14:59:40 -04:00
Tom Limoncelli
caa71c4031 Mark RecordConfig when Target contains multiple embedded fields. 2017-07-20 18:59:09 -04:00
Pat Moroney
8d390aad24 add the new ANAME record type to the records list (#158) 2017-07-20 16:39:40 -04:00
Tom Limoncelli
e6ce3b8895 Cleanup SRV testing
* Integration tests: PTR tests should only happen if CanUsePTR
* Integration tests: SRE tests should only happen if CanUseSRV
* CanUseSRV should be validated early (in pkg/normalize/validate.go)
* CLOUDFLARE does not support SRV. Check for this during validation
* GCLOUD CanUsesRV (mostly by accident, but whatever works)
2017-07-20 15:55:26 -04:00
Tom Limoncelli
4bdaf37c78 NAMEDOTCOM CanUseAlias 2017-07-20 10:10:43 -04:00
Tom Limoncelli
9aac24e14c Add support for SRV records for BIND 2017-07-19 16:02:11 -04:00
Tom Limoncelli
d55b20ecdb Add SRV Record Type (#136)
* Add support for SRV records for NAMEDOTCOM and ROUTE53.
* Improve docs
* Rename RR() to ToRR().
* Rename RecordConfig Priority to MxPreference (affects json IR data)
2017-07-19 15:53:40 -04:00
Tom Limoncelli
032750743c DNSIMPLE: Supports PTR records 2017-07-19 14:41:18 -04:00
Pat Moroney
5b71da6a48 add ALIAS support for Name.com provider (#156) 2017-07-19 13:23:17 -04:00
Norm MacLennan
d1fba2c236 Route53 provider: pass the right correction message based on action (#151) 2017-07-14 16:03:04 -04:00
Tom Limoncelli
d346d561a0 NAMEDOTCOM needs parameterization to permit integration testing. 2017-07-13 15:21:16 -04:00
Tom Limoncelli
e563c53658 PTR should handle "Classless in-addr.arpa delegation" RFC2317 (#149)
* Handle IPv4 "Classless in-addr.arpa delegation" RFC2317 (partial).
* Validate PTR name when in RFC2317 "Classless in-addr.arpa delegation" domains.
* Update docs
* Set CanUsePTR for Route53 and Google CloudDNS.
* BIND: Replace "/" with "_" in filenames.
2017-07-10 19:24:55 -04:00
Craig Peterson
152892f62a generalize capability validation 2017-07-06 10:24:21 -04:00
Tom Limoncelli
aa92817116 Enable PTR records for BIND driver (#146)
* WIP

* Enable PTR records in dnsconfig.js, in BIND provider.

* Rename REVERSE() to REV().

* More accurate PTR target checking

* Document REV()

* Fix broken test
2017-07-06 10:18:15 -04:00
Tom Limoncelli
0b34c42ff4 Rename RR() to ToRR(). 2017-06-17 11:00:12 -04:00
Tom Limoncelli
2b93e6725f Gandi does not support TTLs > 30 days (#139)
* Fix https://github.com/StackExchange/dnscontrol/issues/108

TODO(tlim): Add tests.

* fixup!
2017-06-12 11:38:26 -04:00
Tom Limoncelli
79a9de256e Clarify error message. 2017-06-09 11:57:30 -04:00
Craig Peterson
42ef9f4b9e moving a bunch of packages under pkg (#124)
* moving a bunch of packages under pkg

* fix gen

* fix tst

* oops

* fix test fo real

* parse mx/a
2017-05-25 14:25:39 -04:00
Craig Peterson
20253130cf allowing metadata to force remove all nameservers 2017-05-23 13:38:14 -04:00
Craig Peterson
f1a0d65198 Cloudflare Redirects (#119)
* function sig

* sig

* some custom record infrastructure

* CLOUDFLARE REDIRECTS!

* comments out

* guarding redirects behind provider metadata to manage

* catch commas in js to ensure proper encoding.

* gen

* small fix

* revendor otto

* docs
2017-05-19 14:15:57 -04:00
Tiernan OToole
5cad1c3513 Cloudflare createdomain (#113)
* fixing #112

* fixing build issue

* typo

* adding missing commits from master

* fixing gofmt validation errors

* fixing github pull request sugestions

* fixing build issue

* adding debug info

* adding more debug

* tweaking code based on pull request comments

* fixing error
2017-05-05 15:20:43 -06:00
Mathieu Herbert
95705e7f2d Allow more flexibility in configuring Route53 (#93)
* providers/route53/route53Provider.go

* fix fmt

* check credentials, add Route53 fetch zones in init section and add check if delegation set is present or nil
2017-05-03 11:30:05 -06:00
Craig Peterson
0f4f7d813e no purge (#111) 2017-05-03 09:46:39 -06:00
Tiernan OToole
22fb25af36 adding no_purge to cloudflare (#110) 2017-05-03 09:24:08 -06:00
Tom Limoncelli
8769b1f021 Removed debug statements. 2017-04-30 09:30:07 -04:00
Tom Limoncelli
d92fd5b461 BIND Provider: Pick default TTL automatically for zonefiles (#109)
* BIND Provider: Pick default TTL automatically for zonefiles
2017-04-30 09:28:35 -04:00
Pat Moroney
3488c82093 Fix some typos in comments (#102) 2017-04-27 06:59:18 -06:00
rbelnap
426c2ed38d add BaseURL option to namecheap creds to allow setting sandbox endpoint (#97) 2017-04-25 11:24:55 -04:00
Craig Peterson
4f0b605908 alias can have orange cloud 2017-04-20 07:13:21 -06:00
Pat Moroney
e9f6749c0f Name.com now manages NS records by itself. (#92) 2017-04-19 15:20:26 -06:00
Craig Peterson
fb14cea91e Support ALIAS records with Cloudflare (#89)
* simple facility for registering provider capabilities

* support for cloudflare. tests.

* js and docs

* docs

* generate
2017-04-19 13:13:28 -06:00
Craig Peterson
bb1dcac520 Testing and fixing AD (#74)
* updates to AD

* fix linux build
2017-04-13 10:19:51 -06:00
Craig Peterson
ff6c4289fa namecheap: Sorting nameservers (#72)
Partially fixes #69
2017-04-10 19:26:19 -06:00
Derek Gottlieb
eddb66caa5 Correct docs to reflect supported values for cloudflare_proxy[_default] (#71)
Also correct other minor typos
2017-04-10 19:26:11 -06:00
Craig Peterson
d205c8b4ed Adding gandi to integration suite. Fixing bugs. (#57)
* Adding gandi to integration suite. Fixing bugs.
Fixes #35
Fixes #36

* small fixes

* gandi docs
2017-03-27 16:03:01 -06:00
Craig Peterson
7073b8f989 getting tests setup for r53. Not mixing deletes and other changes in same changeset. 2017-03-22 13:08:23 -06:00
Craig Peterson
2ac43a424b Letting you run only some tests. Way to document failures in individual providers and skip. 2017-03-22 10:40:47 -06:00
Craig Peterson
854c84e652 Update bind docs and Getting Started (#53)
* intitial work for bind refactor

* relax requirement that creds.json exists.

* Updating bind docs.
Fixes #48

* typo

* can exclude provider from default set in creds.json

* Add bind to integration tests. Fix for IDNs.
2017-03-22 10:38:08 -06:00
Anthony Eden
4fef4a8550 DNSimple provider (#43)
* Implement a basic DNSimple provider.

Handles domain delegation as well as record create, update, and delete.

Note that this is completely untested at the moment. It’s so alpha it might burn your face off.

* Add some inline comments. Always use the StackExchange libs.

* Clean up dnsimple docs a little

* This will need to be changed before merging.

* Import the dnsimple dnscontrol package from its expected path

* Properly build the FQDN and implement record listing so create/update/delete are used correctly.

* Add support for overriding base URL to allow connection to sandbox.

* Vendor dnsimple-go and its dependencies.

* Remove unnecessary doc file.

* Use dnsutil.AddOrigin for combining record name and origin.

* Modifying dnsimple provider to pass tests
2017-03-18 19:58:47 -06:00