Addition of extended commands and IPv6 support.

Note:

* The fact that addresses are made canonical via reverse resolution
   does not allow to 'prefer' IPv4 addresses if these resolve
   to a name that has a preferred AAAA record. Perhaps an option
   to prefer IPv4 (or disable IPv6) should be added.