Matching both fqdn and pqdn in lookup