Priority to IPv4 addresses when resolving a nameserver

Resolves #102