EraDNS core resolver code