title: How can you query a specific nameserver (native php)
body: <p>A tool I am creating enables users to modify their reversed DNS records. Since these records can also be modified through external methods, it is imperative that I can show the users their actual current reverse DNS records. </p>
  
  <p>As it stands both <code>gethostbyaddr($ip)</code> aswell as <code>dns_get_record(&lt;reversed ip&gt;.in-addr.arpa)</code> return cached records after the first request.  </p>
  
  <p>Basically I need to query the authorative nameserver (which, in my case, is a known server/ip) directly, so that caching is not an issue on both the server as well as the non-authorative nameservers it uses).</p>
  
  <p>So the actual question (also <strong>TL;DR</strong>): <strong>How can I query a specific (authorative) nameserver in the most efficient way using native PHP methods. (php 5.3+)</strong></p>
  
  <p><em>Before marking this question as a duplicate: all existing answers on similar questions point to PEAR's NET2 class. This question seeks the answer if there is an easier way to do this without external classes ie. by a new method/class (newer versions of PHP)</em></p>