Fix: prevent hostname resolving (IPv6 AAAA) to localhost

Change-Id: I4c5db698083c517fed4175edbd789ef15f4028b8