Fix adding default DNS port for DNS servers addressed via IPv6

This patch fixes adding the default DNS port 53 for DNS servers addressed via IPv6. IPv6 addresses already include colons and the old implementation confused them with the port separator.

Along with some basic unit tests.