Skip to content

Commit 0c98233

Browse files
authored
Fix bug whit ns records in idn domains
This will fix outroll/vesta#845 Named wont start whit unicode charcters and return: zone example.com/IN: loaded serial 2016100705 dns_rdata_fromtext: /home/admin/conf/dns/españa.es.db:18: near 'ns2.españa.com.': bad name (check-names) zone xn--espaa-rta.es/IN: loading from master file /home/admin/conf/dns/españa.es.db failed: bad name (check-names)
1 parent 8cabb54 commit 0c98233

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-add-dns-record

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ domain=$2
1818
record=$(idn -t --quiet -u "$3" )
1919
record=$(echo "$record" | tr '[:upper:]' '[:lower:]')
2020
rtype=$(echo "$4"| tr '[:lower:]' '[:upper:]')
21-
dvalue=$(idn -t --quiet -u "$5" )
21+
dvalue=$(idn -t --quiet -a "$5" )
2222
priority=$6
2323
id=$7
2424
restart=$8

0 commit comments

Comments
 (0)