Skip to content

net: dns needs to use unique request IDs #345

Closed
@gopherbot

Description

@gopherbot

by whitetiger0990:

What steps will reproduce the problem?
1. _,error:=net.Dial("tcp","",host);
2. Have a 2Wire router (which is what I believe is causing the problem, but
may be wrong)

What is the expected output? What do you see instead?
I expect error==nil, but instead error=="dial tcp google.com:80: lookup
google.com. on 192.168.1.254:53: no answer from server"

What is your $GOOS?  $GOARCH?
linux amd64

Which revision are you using?  (hg identify)
cf1a9b1f9bee+ tip


Please provide any additional information below.
See attached for 4 packets associated with the execution of my test script.
Also attached is my test script. It sometimes works, outputting:

google.com:80
B <nil>

but then sometimes outputs:
google.com:80
B dial tcp google.com:80: lookup google.com. on 192.168.1.254:53: no answer
from server



I'm pretty sure it's something related to the 2Wire router because both my
mother and grandmother have one and it appears to be the same issue, and
nothing else on my computer seems to be experiencing any difficulty (but if
someone can provide some way to test that, I'll be glad to do it. I'm not
completely ruling out some problem with the computer).

The router doesn't even seem to respond several google.com queries, but it
responds right away to the incorrect google.com.gateway.2wire.net.

Thanks, if any more information is needed, just ask.

Attachments:

  1. packets.txt (5198 bytes)
  2. dialing.go (162 bytes)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions