-
Notifications
You must be signed in to change notification settings - Fork 72
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
"Root resource was present, but now absent" adding NS to existing A record #167
Comments
I am seeing almost identical behavior in a very similar situation. My nameserver hosts domain parent.io, and also subdomain child.parent.io; if I try to update glue NS records within parent.io (which should appear in parent.io's zone file), I get the above issue. Terraform import can also not import glue NS records in the parent zone. This is for something defined in the style of:
Note that this only applies on a server that is ALSO hosting the child domain (or perhaps that the child domain just plain exists? I haven't tested it with an extant domain primarily hosted on a different server). If the child domain does not exist at the server, it will happily add/modify/destroy the glue NS records for it in the parent zone. My best guess is that it's adding the record to the correct zone, but then reading data from the child zone rather than the parent when it goes to verify it. That's only a guess, however. |
Having exact same issue when trying to delegate a subdomain, initial run is fine, subsequent ones are broken. |
My workaround to this has been to create an actual zone for |
Ran into this when trying to create an entry with dns_a_record_set. Version
Example code
Workaround
|
Does that behave upon multiple re-apply runs after? That's what I found the real bug from, you can get it to run but the issues come from running again. |
So far, it's been fine on multiple applies. Seems to require the subdomain to be present before creating records there. |
This is did not work for me for NS resource records on MS DNS (2019) See terraform trace below:
Enabled DNS server audit logs and they don't record anything meaningful. |
I'd appreciate someone's suggestions/findings in troubleshooting this on the Windows server side. We could tackle this problem from this size. |
The Terraform |
Hi there,
Adding A record, add subdomain to A record, add NS for A record then breaks.
Terraform Version
Affected Resource(s)
Terraform Configuration Files
and the applied zonefile, no NS record:
Add NS
tf plan:
tf apply: Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
tf plan:
zone after
tf apply:
Debug Output
any tips before I spend 30min sanitizing the debug log?
Expected Behavior
Created dns A record, subdomain in A record and also NS for A record
Actual Behavior
Records Created, but terraform chokes on subsequent runs.
Important Factoids
TF from ubuntu linux targeting an ubuntu bind9 server. no clouds involved.
References
Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:
Sorry to adjust your issue template slightly, I had most of this formatted while debugging the issue myself. Please forgive me.
The text was updated successfully, but these errors were encountered: