properly parse port in DNS server