make the DNS class more general

1 job for develop in 6 minutes and 14 seconds (queued for 1 second)