Thanks for filing the bug, I'll look into it.
However, before that, I really need to know a few more details:

- on which platform(s) do you see this bug ? (exact details, including
version/patch numbers please)
- is the problem appearing in all applications that access the network, or
only some of them. If the latter, can you list the ones you spotted ?
- if this is in a custom application, can you tell exactly which API you're
using to resove the host name.

thanks in advance

On Mon, May 25, 2009 at 9:31 PM, Peter Jeffe <pje...@gmail.com> wrote:

>
> I'm glad to hear someone else is seeing this.  I've submitted this as
> a bug (http://code.google.com/p/android/issues/detail?id=2764).  It
> would really help if anyone who has 1.5 on a device could say whether
> they've seen this sort of behavior--either getting unknown host errors
> (check the log for InetAddress errors like below), or taking a really
> long time to open a web page etc.
>
> The bug report reads as follows:
>
> --
> Running the 1.5 SDK on Windows XP SP2, the DNS client on the emulator
> periodically seems to get confused and do the following:
>
> 1. Re-transmit a valid query 4 times, with 5-second delays between
> each query, even though it receives a valid response each time.
>
> 2. Then append garbage to the domain name being queried and query this
> for 4 times, of course receiving an NXDOMAIN response each time.
>
> It appears that it then always throws an UnknownHostException, which
> shows up in the log as:
>
> 05-25 18:45:04.568  4833  4848 I InetAddress: Unknown host www.google.com,
> throwing UnknownHostException
> 05-25 18:45:45.448  4833  4851 I InetAddress: Unknown host
> csi.gstatic.com, throwing UnknownHostException
>
> It seems to start doing this some time after the emulator is started,
> but there's no regular pattern that I can see.  This has also been
> observed by at least one other developer (see
>
> http://groups.google.com/group/android-developers/browse_thread/thread/cd5be36a07ad1a3d/ba559f2e2ff06e32#ba559f2e2ff06e32
> ).
>
> I took a network trace with Wireshark of the DNS traffic while opening
> www.google.com in the browser and have attached both the text and
> binary dumps of it.  Here's an excerpt:
>
>     57 13:45:20.080441 192.168.0.108         24.93.41.127
> DNS      Standard query A csi.gstatic.com
>     58 13:45:20.150069 24.93.41.127          192.168.0.108
> DNS      Standard query response CNAME csi.l.google.com A
> 209.85.165.101 A 209.85.165.102 A 209.85.165.113 A 209.85.165.100
>     59 13:45:25.082077 192.168.0.108         24.93.41.128
> DNS      Standard query A csi.gstatic.com
>     60 13:45:25.104063 24.93.41.128          192.168.0.108
> DNS      Standard query response CNAME csi.l.google.com A
> 209.85.165.100 A 209.85.165.101 A 209.85.165.102 A 209.85.165.113
>     61 13:45:30.077230 192.168.0.108         24.93.41.127
> DNS      Standard query A csi.gstatic.com
>     62 13:45:30.098362 24.93.41.127          192.168.0.108
> DNS      Standard query response CNAME csi.l.google.com A
> 209.85.165.113 A 209.85.165.100 A 209.85.165.101 A 209.85.165.102
>     63 13:45:35.077796 192.168.0.108         24.93.41.128
> DNS      Standard query A csi.gstatic.com
>     64 13:45:35.101998 24.93.41.128          192.168.0.108
> DNS      Standard query response CNAME csi.l.google.com A
> 209.85.165.101 A 209.85.165.102 A 209.85.165.113 A 209.85.165.100
>     65 13:45:40.082501 192.168.0.108         24.93.41.127
> DNS      Standard query A csi.gstatic.com.\360\v
>     66 13:45:40.259945 24.93.41.127          192.168.0.108
> DNS      Standard query response, No such name
>     67 13:45:45.081006 192.168.0.108         24.93.41.128
> DNS      Standard query A csi.gstatic.com.\360\v
>     68 13:45:45.165518 24.93.41.128          192.168.0.108
> DNS      Standard query response, No such name
>     69 13:45:50.076779 192.168.0.108         24.93.41.127
> DNS      Standard query A csi.gstatic.com.\360\v
>     70 13:45:50.143289 24.93.41.127          192.168.0.108
> DNS      Standard query response, No such name
>     71 13:45:55.078268 192.168.0.108         24.93.41.128
> DNS      Standard query A csi.gstatic.com.\360\v
>     72 13:45:55.103427 24.93.41.128          192.168.0.108
> DNS      Standard query response, No such name
>
> Note that it keeps retrying every 5 seconds, even when it got a valid
> response.  Then see after 4 queries with the correct domain name it
> starts appending garbage to the domain name (csi.gstatic.com.\360\v).
> And this is definitely what's in the packet, the dump looks like this
> (see the 02, f0, 0b starting at offset 46):
>
> 0000  00 1b 24 72 bc 38 00 1d  7e f0 a0 53 08 00 45 00   ..$r.8..
> ~..S..E.
> 0010  00 8b d1 13 40 00 f7 11  af 5c 18 5d 29 80 c0 a8   ....@... .
> \.])...
> 0020  00 6c 00 35 c1 23 00 77  f0 29 2b 01 85 83 00 01   .l.5.#.w .)
> +.....
> 0030  00 00 00 01 00 00 03 63  73 69 07 67 73 74 61 74   .......c
> si.gstat
> 0040  69 63 03 63 6f 6d 02 f0  0b 00 00 01 00 01 00 00
> ic.com.. ........
> 0050  06 00 01 00 00 2a 26 00  40 01 61 0c 72 6f 6f 74   .....*&.
> @.a.root
> 0060  2d 73 65 72 76 65 72 73  03 6e 65 74 00 05 6e 73   -
> servers .net..ns
> 0070  74 6c 64 0c 76 65 72 69  73 69 67 6e 2d 67 72 73   tld.veri sign-
> grs
> 0080  03 63 6f 6d 00 77 bf b5  54 00 00 07 08 00 00 03   .com.w..
> T.......
> 0090  84 00 09 3a 80 00 01 51
> 80                        ...:...Q .
>
> As annoying as this is on the emulator, my main concern of course is
> that it's also a problem on the device, which would be a disaster.
>
> -- Peter
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to