raise error if nameservers is empty
reformat