Skip to content

Slow dns resolving  #96

@flomsk

Description

@flomsk

Hello @aacebedo
Thank you for great tool, it's make easier to control containers)
But I have some (bug?)
On the host system I paste to first line in resolv.conf
nameserver ip-addr-of-docker0-interface
After that I can resolv container by dns name.
But inside the containers something terrible happens

root@app:/# dig www.google.com
; <<>> DiG 9.9.5-3ubuntu0.13-Ubuntu <<>> www.google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 12943
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;www.google.com.			IN	A

;; ANSWER SECTION:
www.google.com.		300	IN	A	216.58.209.68

;; Query time: 4001 msec
;; SERVER: 127.0.0.11#53(127.0.0.11)
;; WHEN: Tue Mar 21 08:50:40 UTC 2017
;; MSG SIZE  rcvd: 59

4001msec!!!
What I'm doing wrong ?
I started dnsdock with
docker run -d -v /var/run/docker.sock:/var/run/docker.sock --name dnsdock -p 172.51.42.1:53:53/udp aacebedo/dnsdock:latest-amd64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions