question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Octodns-sync support sync without override the dynamic records

See original GitHub issue

We have a usercase where dynamic records get create/delete through TF or ruby/python r53 api’s when we provision and tear down the resources. In the same zone, we have some static records requests that come through from support where we are trying to streamline using octodns and git for version control. One way to achieve would be to take octodns-dump and make necessary changes push to git and sync. Still, we may see some dynamic records that may get-in in the meantime. So one thought would be something like octodns-sync --config-file=./config/production.yaml --no-delete

A flag that can override only the records that it finds in its <zone>.yaml and ignore the rest of the records. any thoughts, please share.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
viranchcommented, Feb 5, 2022

Side note: --no-delete can be achieved by setting delete_pcent_threshold to 0. See https://github.com/octodns/octodns/blob/07aad17/docs/records.md#restrict-record-manipulations

0reactions
rosscommented, Feb 4, 2022

This is now also possible with the use of processors, though there’s no in-built processor that would specifically ignore dynamic records. It would be possible to build such a thing. It may be easier to stick with the exclude stuff recommended above. Either way I believe there are options to solve the use case so closing. Feel free to reopen if not.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Octodns-sync support sync without override the dynamic records
The easiest way I found is to octodns-dump the record set down, then update with excluded . Or just create excluded records that...
Read more >
octodns Changelog - pyup.io
Now that it's used as it needed to be YamlProvider overrides. Provider.supports and just always says Yes so that any dynamically registered
Read more >
Use Git & GitHub to manage your DNS with OctoDNS | By Parker
OctoDNS is a library for managing your DNS, which ships with a series of commands for syncing, dumping, and reporting.
Read more >
Overriding some DNS entries in BIND for internal networks
The best method is via the response policy zone in Bind 9.8.1 or newer. It allows you to override single records in arbitrary...
Read more >
octoDNS, GitHub Actions, Cloudflare & Digital Ocean - Medium
Now that we have our local DNS zonefiles it's super simple to sync the records. by default, octoDNS will dry-run everything and no...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found