title: How to point subdomain to an ip and retain domain name
body: <p>Given:</p>
  
  <ul>
  <li>a domain w/ <strong>gofather</strong>: <code>gloriousdomain.com</code>
  
  <ul>
  <li>w/ nameservers pointing to server w/ <strong>hostcrocodile</strong></li>
  </ul></li>
  <li>a subdomain: <code>sub.gloriousdomain.com</code></li>
  <li>a server w/ <strong>digitalpond</strong> and ip: <code>123.456.78.9</code></li>
  <li>an <code>A-Record</code>in <strong>hostcrocodile</strong> pointing <code>sub.gloriousdomain.com</code> -> <code>123.456.789</code></li>
  </ul>
  
  <p>How do I make it so that when I enter <code>sub.gloriousdomain.com</code> in my browser it doesn't just reroute me and change my url to <code>123.456.78.9</code></p>
  
  <hr>
  
  <h3>cases where it's worked before</h3>
  
  <ul>
  <li><strong>wordpress</strong> :
  
  <ul>
  <li>when you first set it up, it does the whole <em>route to ip</em> thing</li>
  <li>then you finish the setup w/ it asking the subdomain and magically it's fixed</li>
  </ul></li>
  <li><strong>redmine</strong>
  
  <ul>
  <li>routes to ip until you type in the subdomain</li>
  </ul></li>
  </ul>
  
  <h3>Interesting facts</h3>
  
  <ul>
  <li>When I ping <code>123.456.78.9</code> it pings back <code>123.456.78.9</code></li>
  <li>I thought <code>passenger</code> on top of <code>nginx</code> was doing some work helping the resoloution for <code>redmine</code> and that's why it worked, but to test it I stopped the service and pinged my redmine box</li>
  </ul>