Internationalized domain names (IDN) and DNS / Bind9 problem

IDN_18x24_2012To use domain names with special characters ( παράδειγμα.δοκιμή or مثال.إختبار), you need to transform them into proper format.

To accomplish that, we use idn command from libidn package.
It should be included in base repository so simple: yum install libidn would suffice.

To get real name of domain you need to have UTF-8 terminal coding enabled, then run:

idn παράδειγμα.δοκιμή

The result should be: xn--hxajbheg2az3al.xn--jxalpdlp
This is now your domain name and to include it in Bind9, you just have to set it in config file. Example:

#### My greek domain ####
zone "xn--hxajbheg2az3al.xn--jxalpdlp" {
        type master;
        file "";

I strongly recommend you to comment these IDN’s, so you will know exactly which domain is which, without the need of reversing the transformation.
Note: You should set zone same as any other domain.

Leave a Reply

Purpose of the commenting system is to share your experience. I encourage you to post feedback with your own suggestions, ideas or optimizations regarding the topic of a blog post. What commenting system isn't for, is asking questions about similar issues of yours and requesting support for it. Blog post is provided as is and I am not here to solve all your problems. Please bear that in mind and try to avoid posting such comments. I do take privilege to remove comment from my blog for any reason whatsoever. Usually I do it when I sense a comment was posted only for spam/seo reasons or is out of blog post's topic. Thank you for reading this, now you may continue :)

Your email address will not be published. Required fields are marked *