1
0
mirror of https://github.com/github/octodns.git synced 2024-05-11 05:55:00 +00:00
Commit Graph

477 Commits

Author SHA1 Message Date
Ross McFarland
7958a6e1d1 Merge remote-tracking branch 'origin/master' into alias-root-only 2020-11-02 13:47:23 -08:00
Ross McFarland
19798e3acf Only allow ALIAS on APEX 2020-11-02 07:26:07 -08:00
Jonathan Leroy
2d4855508c Check that an alias zone source is not an alias zone 2020-11-01 23:58:40 +01:00
Jonathan Leroy
9a4812223e Add missing empty line 2020-10-31 20:19:09 +01:00
Jonathan Leroy
038ae42284 Add comments and fixes some tests 2020-10-31 20:16:26 +01:00
Jonathan Leroy
a6d8848fad Fixes linting issues 2020-10-31 14:19:43 +01:00
Jonathan Leroy
b0da090723 Add test for alias zones 2020-10-31 14:09:54 +01:00
Jonathan Leroy
a2aa98377d Add tests for Record.copy() 2020-10-31 10:57:14 +01:00
Jonathan Leroy
4fb102e4be Fixes tests related to _populate_and_plan() 2020-10-31 09:44:06 +01:00
Jonathan Leroy
04a2d7a585 Merge branch 'master' into zones-aliases 2020-10-28 16:24:40 +01:00
Jonathan Leroy
eec4c4f81c Remove support for dynamic DNAME records as no provider currently
support them
2020-10-27 20:31:57 +01:00
Jonathan Leroy
de51e5f531 Add support for DNAME records 2020-10-26 22:18:35 +01:00
Jonathan Leroy
897a033443 Add tests for Manager.get_zones() 2020-10-21 20:02:12 +02:00
Jonathan Leroy
f2a6f870b4 Make each alias zone reference its target zone instead of listing all
aliases zones in the target zone configuration
2020-10-20 22:18:48 +02:00
Jonathan Leroy
7bf0b31367 Revert "Add support for zones aliases"
This reverts commit b926d78c5c.
2020-10-20 19:54:35 +02:00
Jonathan Leroy
2cc91ead71 Merge branch 'master' into zones-aliases 2020-10-20 19:51:56 +02:00
Guillaume Gelin
31105cc472 Implement octodns-sync --source
It can be useful to only synchronize zones that use a certain source. For
example, in a situation where some zones use a dynamic source and others don't,
you probably want to synchronize those with a dynamic source regularly, and
only synchronize the others when a change is made.

Although we only synchronize the zones that use a given source, we still want
to synchronize all sources to avoid deleting records that would live in another
source of the zone.
2020-08-27 16:16:24 +02:00
Jonathan Leroy
b926d78c5c Add support for zones aliases
This commit adds support for zones aliases. This allows to define one or
multiple zone as aliases of an existing zone without using workarounds
like simlinks and miltiple "zones" entries in the configuration file.

An alias zone is share all of its content with it parent zone, only the
name of the zone is different.

```
zones:
  example.com.:
    aliases:
      - example.net.
      - example.org.
    sources:
      - in
    targets:
      - out
```

Known issues:
- No documentation,
- Only the `octodns-sync` and `octodns-validate` commands supports
aliases zones at this time,

I added a loop in the manager init function which convert all alias
zone to "real" ones during config validation, however I'm not sure
this is the right approach. Comments welcome.
2020-08-03 00:47:22 +02:00
John Dale
9e372fee19 Merge branch 'easydns_provider' of https://github.com/actazen/octodns into easydns_provider 2020-07-21 20:01:10 +00:00
John Dale
9e990632c4 Update to remove DYNamic A records
* Removed conversion of DYN records to A records
* Updated test fixtures to change test DYN to an A record
2020-07-21 19:58:24 +00:00
John Dale
10abfd870b Merge branch 'master' into easydns_provider 2020-07-20 19:04:03 -04:00
John Dale
6a2c7909bd Merge branch 'easydns_provider' of https://github.com/actazen/octodns into easydns_provider 2020-07-20 23:01:30 +00:00
John Dale
9a2152d249 Update to remove URL and STEALTH records
* Removed conversion of URL and STEALTH records to CNAME records
* Updated test fixtures to remove URL conversion testing
2020-07-20 22:58:21 +00:00
Ross McFarland
a6a9f03cd8 Merge branch 'master' into srv-validation 2020-07-20 13:44:22 -07:00
Ross McFarland
e6e745d1b7 Merge branch 'master' into patch-1 2020-07-20 13:29:43 -07:00
Justin B Newman
427b8a1a06 Add support for wildcard SRV records, as shown in RFC 2782 2020-07-20 12:48:47 -05:00
John Dale
ecfaa1160b Merge branch 'master' into easydns_provider 2020-07-18 04:08:54 -04:00
John Dale
f4aa96abe5 Update to provide consistency
* Replaced camelCase with snake_case
* Change apikey to api_key
* Added check on record name before delete during domain_create
2020-07-18 08:03:27 +00:00
Phelps Williams
0a342aa6c2 EnvVar: Integrating review feedback and finishing tests 2020-07-17 12:09:20 -07:00
Phelps Williams
4d006e94a2 Adding environment variable record injection
Per the discussion on https://github.com/github/octodns/issues/583
here is a work in progress of environment variable injection for
discussion.
2020-07-15 18:17:33 -07:00
Phelps Williams
5c0d5831ac UltraDNS unit test improvements 2020-07-13 16:37:21 -07:00
Phelps Williams
da9b3aed5b Removing NS modification tests
Root NS modification support is being developed on
https://github.com/github/octodns/pull/434

Removing attempts to validate this functionality for now.
2020-07-09 15:27:23 -07:00
John Dale
c2f541546b Adding Octodns provider class for easyDNS
This provider class for easydns.com adds support for basic dns records
through the easyDNS v3 API.  Support for dynamic and geo based dns
records is planned for a future update.

Sample configuration for the easyDNS provider are:

  easydns:
     class: octodns.provider.easydns.EasyDNSProvider
     token: <token>
     apikey: <key>

The token and key values are found on the easyDNS customer portal at:

https://cp.easydns.com/manage/security/api/production_info.php

Also, below are some optional configuration parameters which can be
added to override the class defaults.  By default the provider class
connects with the LIVE easyDNS API, if you wish to perform testing
with the easyDNS Sandbox API you can enable it by adding the following
configuration parameter:

     sandbox: True

Note, the API token and key are different for the sandbox than they
are for the production API, you can obtain sandbox credentials at:

https://cp.easydns.com/manage/security/api/sandbox_info.php

Lastly, if you have created Domain Portfolios through the easyDNS CP
you can configure which portfolio new domains will be added to by
supplying the portfolio option with the name of your portfolio.

     portfolio: <portfolio name>
2020-07-09 03:47:11 +00:00
Phelps Williams
ea5a5f4ab3 Merge branch 'master' of https://github.com/github/octodns into ultradns_support 2020-07-01 17:44:52 -07:00
Phelps Williams
52ed5fa022 Ultra interface with support for basic records 2020-07-01 17:41:45 -07:00
Ross McFarland
c5a19b4403 Merge remote-tracking branch 'origin/master' into add-route53-interval-option 2020-07-01 07:58:22 -07:00
Ross McFarland
0522036853 Merge branch 'master' into ns1-georegion-and-country 2020-06-24 18:45:12 -07:00
Ross McFarland
c25dd38d4f lenient param to populate needs to be optoinal 2020-06-24 18:37:22 -07:00
Ross McFarland
0830b9c114 Handle and test for old-style NS1 catchall naming pattern 2020-06-23 14:54:40 -07:00
Ross McFarland
2938c7bf6a Test out the new naming/code paths for NS1 region populate/combining 2020-06-23 13:57:14 -07:00
Ross McFarland
a8cb831d29 Much more thorough testing of NS1 _params_for_dynamic_A 2020-06-23 13:47:46 -07:00
Ross McFarland
680cd95e73 Remove fragile save & restore record junk 2020-06-23 13:16:42 -07:00
Ross McFarland
d84aace823 Don't modify a shared record, causes cascading test failures 2020-06-23 13:16:09 -07:00
Ross McFarland
bbe4dc2d3e NS1 georegion, country, and catchall need to be separate groups 2020-06-23 09:49:37 -07:00
Lance Hudson
2277ad714a Merge branch 'master' into patch-1 2020-06-22 17:43:38 -04:00
Lance Hudson
9989134286 Merge branch 'master' into patch-3 2020-06-19 15:40:34 -04:00
Ross McFarland
2a159bf93b Refactor PowerDNS version handling to be transparently cached properties 2020-06-12 09:36:57 -07:00
Lance Hudson
e477f9f888 Add the ability to mark a zone as lenient 2020-06-11 20:11:12 -04:00
Lance Hudson
b80d1575e6 Update tests with new per_page params 2020-06-11 17:57:32 -04:00
Maikel Poot
ee7b36b496 Added server version checking 2020-06-10 13:34:44 +02:00