title: how to "allow from hostname" in nginx config
body: <p>I'm currently doing this in my nginx.conf:</p>
  
  <pre><code>allow 1.2.3.4;
  deny;
  </code></pre>
  
  <p>What I'd really like to do is this:</p>
  
  <pre><code>allow my.domain.name;
  deny;
  </code></pre>
  
  <p>I.e., I want nginx to do an A record lookup on my.domain.name at the time of the request, and if it matches the IP that the request is coming from, then allow it. I don't see any built-in mechanism to do this however. Anybody have a native way to do this before I start coding something custom?</p>