-
Notifications
You must be signed in to change notification settings - Fork 6
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
Specify Zones #5
Comments
Hello @rubydotexe and apologies for the delay in replying. Could you please give an example of when this occurs? Currently, when the googleclouddns client starts up, it will list all the zones for the specified project and then match up the DNS zone name passed in from Caddy with the zone in Google Cloud. The only catch is that the zone has to be a public zone; if it is private, the client will ignore it. Any additional information you could provide would be appreciated, thanks! |
Sure, here's the full log of what I'm experiencing within Caddy. I want to stress that my zones are configured correctly in google cloud, in fact, I currently only have one.
|
My A records are pointed to the correct IP, I've verified rather obsessively, but I can check my configuration again upon suggestion. |
Hey @rubydotexe. thank you for the additional context. I've been trying to reproduce your issue and I've not had any luck. I have a GCP project with a public zone I am using the JSON file from a service account with DNS admin rights in the project and I have the following environment variables defined:
I then am using the following *.wxgl.us {
bind 127.0.0.1
tls <email address> {
dns googleclouddns {
gcp_project {$GCP_PROJECT}
}
}
respond "Hello there! I'm a Caddy!"
} I'm able to generate a cert in this configuration:
I'm hoping you can share how this setup differs with your own to see if we can figure out what's going on. Thanks! |
Thanks for continuing to troubleshoot with me, @brockwood. I am using a dockerized version of Caddy. I thought I linked this originally, but I didn't, so I apologize for not providing full context earlier. You can learn more about my Caddy set up here. I started with Google Cloud, then went to namecheap, and then went to Google-cloud again. Currrently, this is my set-up. I decided to mimic yours.
Edit: Here's my new build file:
|
Edit: Disregard, the problem has been reproduced successfully. |
Hi! I have multiple zones in my Cloud DNS, and I was wondering if there could be a variable that allows me to specify which domain zone(s) I am using when calling the Google Cloud API. I am using Caddy with the Google Cloud DNS plugin, and abstractly, being unable to specify between zones means I get this error:
unable to find Google managaged zone for domain xyz.
An adjustment here would also mean that the github.com/caddy-dns/googleclouddns would need to be adjusted too, but I would make a new issue there if my request is approved.
The text was updated successfully, but these errors were encountered: