Cperello/non ascii dns

@kernevil , please, could you take a look to see whether all the changes make sense?