Skip to content

dns lookup very slow #26960

Closed
Closed
@wencan

Description

@wencan

go version:

go version go1.10.3 linux/amd64

go env:

GOARCH="amd64"
GOBIN=""
GOCACHE="/home/user/.cache/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/user/Projects/Go"
GORACE=""
GOROOT="/opt/Go/current"
GOTMPDIR=""
GOTOOLDIR="/opt/Go/current/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build634905456=/tmp/go-build -gno-record-gcc-switches"

httpstat http://baidu.com
output:

Connected to 220.181.57.216:80

HTTP/1.1 200 OK
Server: Apache
Accept-Ranges: bytes
Cache-Control: max-age=86400
Content-Length: 81
Content-Type: text/html
Date: Mon, 13 Aug 2018 11:07:25 GMT
Etag: "51-47cf7e6ee8400"
Expires: Tue, 14 Aug 2018 11:07:25 GMT
Last-Modified: Tue, 12 Jan 2010 13:48:00 GMT
Connection: Keep-Alive

Body discarded

   DNS Lookup   TCP Connection   Server Processing   Content Transfer
[    8194ms  |          26ms  |             28ms  |             0ms  ]
             |                |                   |                  |
    namelookup:8194ms         |                   |                  |
                        connect:8220ms            |                  |
                                      starttransfer:8248ms           |
                                                                 total:8248ms   

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeWaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions