Close GH-5: Root DNS and socket checks. Fixes #4, Fixes #4