Maybe also check for `:` so ipv6 will work with "domain"