Propagate ipv6 option to dns lookup function.

This change propagates the ipv6 enable/disable option to the dns lookup code, which should make ipv6 support be a noop when disabled in the config.

Ref: https://github.com/saltstack/salt/pull/4232#issuecomment-17154609