Set the socket protocol family

Allows the use of an IPv6 nameserver
Fix docs on `udp-open-socket`