Re: My own DNS resolver



I've noticed that a lot of DNS queries don't even return answer fields
with IP addresses, but only name servers or authorities. For example,
when I send a query to my university's domain, (www.uhmc.sunysb.edu),
the DNS server sends me a lot of authorities and additional fields,
but no answer fields.

I get:

| NAME: uhmc.sunysb.edu
| TYPE: 2 CLASS: 1 TTL: 6687 LENGTH: 20
| DATA: nocnoc.stonybrook.edu

| NAME: uhmc.sunysb.edu
| TYPE: 2 CLASS: 1 TTL: 6687 LENGTH: 13
| DATA: infoblox-2.uhmc.sunysb.edu

How can I resolve this query? It doesn't even include an internet IP
address, only name servers. A query to www.coke.com is even less
informative. The DNS server sends me no answer fields, and various
authority fields like:

| NAME: com
| TYPE: 2 CLASS: 1 TTL: 13276 LENGTH: 4
| DATA: K.GTLD-SERVERS.NET

But the UNIX system call gethostbyname() has no difficulty resolving
these host names, so there must be more to DNS lookups then I
currently understand.

.