My understanding is that the unix
host commands should generate the same IP address given the same domain. If you look at these two commands:
$ ping api.dev.myserver.com PING api.dev.myserver.com (10.11.12.15): 56 data bytes 64 bytes from 10.11.12.15: icmp_seq=0 ttl=64 time=0.303 ms (...) $ host api.dev.myserver.com api.dev.myserver.com has address 126.96.36.199
The first is my local development VM, and shows the desirable IP as I've specified in my /etc/hosts file. The second shows the live box, circumventing my /etc/hosts file. I have flushed my DNS cache to verify that's not causing the difference.