DNS query and ARP resolution of APNs