Updated DN retrieval to check additional header for value