why do i get "connection refused" on some dns lookups?
if i try to resolve certain hostnames (some google domains, in particular), i have problems.
on occasion, i believe this bug prevents me from being able to display google maps correctly. it also seems to make other pages load slowly or fail to load completely.
based on other comments i've seen elsewhere on the web, i believe this relates to cases when the resolver response is large (which tends to happen for google domains and akamai domains since they tend to have lots of alternative servers). when the response exceeds 512 bytes, i believe it falls back to using TCP. what's less clear from these other discussions is exactly why i'm having the problem and more importantly what to do about it. some other threads end with the recommendation to turn off IPv6. that is not an issue in my case. other threads devolve into theories about problems relating to different hardware devices (routers).
i'm using what i believe to be a pretty vanilla setup, running mac os x 10.6 server, with dns server turned on and using a forwarding address of that provided by my ISP. because this is happening over the lan (via an airport wireless basestation) it doesn't seem like there should be any issues of ports not being open or firewall issues or anything like that - but correct me if i'm wrong about that.
i see the following results when using (for example) the hostname www.google-analytics.com:
% dig @<my-osx-server> www.google-analytics.com
;; Truncated, retrying in TCP mode.
;; Connection to 192.168.2.103#53(192.168.2.103) for www.google-analytics.com failed: connection refused.
%dig @<my-isp's-dns-server> www.google-analytics.com
; <<>> DiG 9.6.0-APPLE-P2 <<>> +ignore @duff.homedns.org www.google-analytics.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31551
;; flags: qr tc rd ra; QUERY: 1, ANSWER: 17, AUTHORITY: 10, ADDITIONAL: 0
;; QUESTION SECTION:
;www.google-analytics.com. IN A
;; ANSWER SECTION:
www.google-analytics.com. 75504 IN CNAME www-google-analytics.l.google.com.
www-google-analytics.l.google.com. 105 IN A 74.125.226.163
www-google-analytics.l.google.com. 105 IN A 74.125.226.164
www-google-analytics.l.google.com. 105 IN A 74.125.226.165
www-google-analytics.l.google.com. 105 IN A 74.125.226.166
www-google-analytics.l.google.com. 105 IN A 74.125.226.167
www-google-analytics.l.google.com. 105 IN A 74.125.226.168
www-google-analytics.l.google.com. 105 IN A 74.125.226.169
www-google-analytics.l.google.com. 105 IN A 74.125.226.170
www-google-analytics.l.google.com. 105 IN A 74.125.226.171
www-google-analytics.l.google.com. 105 IN A 74.125.226.172
www-google-analytics.l.google.com. 105 IN A 74.125.226.173
www-google-analytics.l.google.com. 105 IN A 74.125.226.174
www-google-analytics.l.google.com. 105 IN A 74.125.226.175
www-google-analytics.l.google.com. 105 IN A 74.125.226.160
www-google-analytics.l.google.com. 105 IN A 74.125.226.161
www-google-analytics.l.google.com. 105 IN A 74.125.226.162
;; AUTHORITY SECTION:
. 72803 IN NS a.root-servers.net.
. 72803 IN NS b.root-servers.net.
. 72803 IN NS k.root-servers.net.
. 72803 IN NS e.root-servers.net.
. 72803 IN NS c.root-servers.net.
. 72803 IN NS l.root-servers.net.
. 72803 IN NS j.root-servers.net.
. 72803 IN NS h.root-servers.net.
. 72803 IN NS g.root-servers.net.
. 72803 IN NS i.root-servers.net.
;; Query time: 10 msec
;; SERVER: 192.168.2.103#53(192.168.2.103)
;; WHEN: Wed Apr 27 14:13:49 2011
;; MSG SIZE rcvd: 508
Mac OS X (10.6.7)