0

I have a zone file that looks like this:

فلسطين.         172800  IN      NS      idn.pnina.ps.
فلسطين.         172800  IN      NS      ns1.pnina.ps.
فلسطين.         172800  IN      NS      dns1.gov.ps.
فلسطين.         172800  IN      NS      dns3.gov.ps.

when trying to load it, it gives me an errors about UTF8.

Is there any way I can force loading it?

Nick
  • 826
  • 2
  • 15
  • 42

1 Answers1

3

You should convert UTF-8 host- and domain names to the correct Internationalized Domain Name in Punycode with for instance the idn utility from the libidn package:

idn فلسطين 

xn--ygbi2ammx

and then use that in your Bind zone:

; NS records for فلسطين transcribed in punycode
172800  .xn--ygbi2ammx IN      NS      idn.pnina.ps.

Good practice is to include a comment as well (which as far as I know may still be in UTF-8) so you know what host or domain it concerns.

HBruijn
  • 77,029
  • 24
  • 135
  • 201
  • I noticed this, but the file is generated from another bind server. Do you know some good tool for convert that comes by default in CentOS? – Nick Jul 20 '15 at 09:33
  • I thought that the libidn package comes from the standard CentOS repository? – HBruijn Jul 21 '15 at 15:04
  • 1
    thanks, we fixed it in other way. CentOS lack idn tool that converts whole file - this is what I asked it. Your answer was very helpful, we couldn't do it without it. :) – Nick Jul 21 '15 at 16:05