Skip to content

Add auto-create records feature, comment timestamp + cat: null fix #41

Open
Bierchermuesli wants to merge 2 commits intofiliparag:masterfrom
Bierchermuesli:feat/auto-create-records
Open

Add auto-create records feature, comment timestamp + cat: null fix #41
Bierchermuesli wants to merge 2 commits intofiliparag:masterfrom
Bierchermuesli:feat/auto-create-records

Conversation

@Bierchermuesli
Copy link
Copy Markdown
Contributor

Hey - may I can add this feature and a small bug?

  • Add auto_create_records - creates missing DNS records instead of aborting
  • Add UTC timestamp to DNS record comment field
  • Fix cat: null error when only api_key is set and not api_key_file in config

"request_timeout": Maximum duration of HTTP requests
"api_url": URL of the Hetzner Console'\''s API
"ip_url": URL of a service for retrieving external IP addresses
"auto_create_records": Automatically create missing DNS records (default: false)
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While this is arguably nicer user experience-wise, I chose to go against it as adding the record manually is a kind of a double check that user's intention matches what the script's configuration does. It neither adds or deletes records, just updates them. If there is a mistake/typo in JSON config, it will not turn into a garbage record that needs to be removed using Hetzner's website.

I'm not sure which approach is better 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants