IPv6

Hi,

The most important changes to be is the ability to specify domain. Without this “domain” parameter,
I can't use the module with IPv6. The rest are trivial changes.