Add beginnings of DNS resolver code