Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you only update subdomain zones, and not the main zone? #89

Closed
evulhotdog opened this issue Dec 23, 2021 · 13 comments · Fixed by #91
Closed

How do you only update subdomain zones, and not the main zone? #89

evulhotdog opened this issue Dec 23, 2021 · 13 comments · Fixed by #91
Assignees
Labels
question Further information is requested
Milestone

Comments

@evulhotdog
Copy link

Hey there!

This tool is great! Thanks for writing it!

How do you only update subdomains and not the main domain zone? I've tried everything that I can think of and I can't find a way to do it in the config.

@rxbn
Copy link
Member

rxbn commented Dec 23, 2021

Hey!

Thanks for your kind words :) Really appreciate it!

SyncFlaer currently manages the "root record" (example.com) to always be an A record pointing to your current public ip address. Disabling this feature is currently not possible.

However, if you can describe me why and for what reason you don't want to have your root record managed by SyncFlaer, I maybe can extended it :)

-- rxbn

@rxbn rxbn self-assigned this Dec 23, 2021
@rxbn rxbn added the question Further information is requested label Dec 23, 2021
@evulhotdog
Copy link
Author

Thanks for the quick response!

I have a whole list of subdomains that I want to update the public IP's for, but, I don't want the main domain updated (or even set to anything, at all.)

This tool would be great for that use case but no matter what I am required to have that populated if I use this tool.

@rxbn
Copy link
Member

rxbn commented Dec 23, 2021

Alright, thanks for the clarification!

Basically, I see two ways how we can handle this case:

  1. Add an option to completely disable SyncFlaer to manage the root record
  2. Add a configuration where users can define how their root record should look like (e.g. different record type, different ip than the current public ip, ...)

@gi8lino what is your opinion?

@evulhotdog would option 2 be something that fits your use case?

@evulhotdog
Copy link
Author

Option 2 would be ideal, where setting record type to None would not modify it at all, or at least set it to what you want to set it to.

@gi8lino
Copy link
Member

gi8lino commented Dec 23, 2021

I think the nr 1 is easy to implement.
We can extend "additional records" to also set the root domain, so we can cover nr 2 as well...

@rxbn
Copy link
Member

rxbn commented Dec 23, 2021

How do you want your root record to look like? A or CNAME? What should be the content of it?

Or do you not want a root record in your zone at all?

I'm asking so that I can create something that fits most of the possible use cases :)

@evulhotdog
Copy link
Author

evulhotdog commented Dec 23, 2021

I think the nr 1 is easy to implement. We can extend "additional records" to also set the root domain, so we can cover nr 2 as well...

When I was brainstorming on how I would implement it, this is how I thought about it initially, just setting it there. Although you also shouldn't need to set the main domain, either?

How do you want your root record to look like? A or CNAME? What should be the content of it?

Or do you not want a root record in your zone at all?

I'm asking so that I can create something that fits most of the possible use cases :)

I actually don't use my root :) It has no record at all.

@rxbn
Copy link
Member

rxbn commented Dec 23, 2021

When I was brainstorming on how I would implement it, this is how I thought about it initially, just setting it there. Although you also shouldn't need to set the main domain, either?

Exactly, this would also cause a breaking change if users suddenly have to define their root records by themselves.

I actually don't use my root :) It has no record at all.

Alright, now I understand it better :)

Let me see what I can do to fix your issue. I'll keep you posted!

@rxbn rxbn added this to the v5.2.0 milestone Dec 23, 2021
@rxbn rxbn closed this as completed in #91 Dec 24, 2021
@rxbn
Copy link
Member

rxbn commented Dec 24, 2021

You can now update to v5.2.0. This version introduces a new config parameter: managedRootRecord. You can simply set it to false and SyncFlaer will delete your root record :)

Happy Holidays!

@xucian
Copy link

xucian commented Dec 11, 2022

and SyncFlaer will delete your root record

not sure if I follow. does this mean that I cannot use the root domain for other, unrelated services, because it can either be updated or deleted? how about it being left alone? 😁

@rxbn
Copy link
Member

rxbn commented Dec 12, 2022

@xucian SyncFlaer is designed to manage your entire zone. You can use the additionalRecords config to set your root record to anything you want. Just make sure you set managedRootRecord to false.

@xucian
Copy link

xucian commented Dec 12, 2022 via email

@rxbn
Copy link
Member

rxbn commented Dec 12, 2022

@xucian Yes, you can:

additionalRecords:
  - name: example.com
    proxied: true
    type: A
    contents: 1.1.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants