Could simplify this if we used the same atom, inet/inet6?  That would mean just one `to_ip(Host, [Pref|Others])`?