Reference JavaScript DNS implimentation