Author: H.User1325 (26 Mar 14 11:47am)
The problem is that Chrome (or any browser) doesn't ask the correct question. Go back and read the first paragraph of "DNS query Format." You will see " For example, from the command line of a Unix-based machine, you could run a DIG or NSLOOKUP query for a particular address."
A DIG or LSLOOKUP "ask" your servers DNS to translate the name sent into an IP address, aaa.bbb.ccc.ddd. On the other hand a browser "ask" to have the content of that address downloaded. Not knowing your level of understanding (don't want to insult you) but maybe another way of saying that is the difference between what you want to ask is "What is Bill's phone number?" and what you're ask through your browser is "Connect me to Bill's phone so I can talk to him."
Bill -> "abcdefghijkl.184.108.40.206.dnsbl.httpbl.org" which should return 127.3.5.1 if ask correctly.
Any browser, including Chrome, is designed to give you the content of the address you enter. What you want is what looks like "the IP address" of what you entered.
Sorry re-read your OP. You need to use a gethostbyname() not a file_get_content. Your query format is correct just using the wrong function.
covering all bases:
Asking the question correctly and you KEY is no dough good. the IP 127.9.1.2 returns the results listed in the documentation.
If your KEY is listed on you dashboard is is good.
OR missing something ... No you do not need to host you own HP. (BUT I would suggest that you do, to add to the fight.)
Hope this helps.