ported DnsExceptions to scala