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

Suggestion: Support IDNs #28

Open
ThomasLandauer opened this issue May 21, 2021 · 2 comments
Open

Suggestion: Support IDNs #28

ThomasLandauer opened this issue May 21, 2021 · 2 comments

Comments

@ThomasLandauer
Copy link
Contributor

When the domain name contains an umlaut, I'm getting this error:

Error: Error creating zone. API returned HTTP 422 Unprocessable Entity error with message: '422 Unprocessable Entity: invalid invalid character for domain name'

So I'm suggesting that you're including the conversion to punycode in the provider - especially since (after a quick search) I couldn't find a conversion function in Terraform, so right now the conversion has to be done outside of Terraform (i.e. manually).

@c33s
Copy link

c33s commented Jun 7, 2021

as workaround you can try using external data provider

something like this should work

// returns json {"name": "......"}
data "external" "exaemple_com" {
  program = ["bash", "${local.bin_dir}/convert-umlauts.sh", "exämple.com"]
}

// access it with 
data.external.exaemple_com.result.name

@kimdre
Copy link

kimdre commented May 27, 2024

Hi, we created a new fork of this project as this one is no longer maintained and added a bunch of additional features including a built in function for IDN/Punycode support.

You can find it here: https://registry.terraform.io/providers/germanbrew/hetznerdns/latest/docs/functions/idna

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

No branches or pull requests

3 participants