# Le conteneur Docker de Discourse a du mal à accéder au DNS

**URL:** <https://meta.discourse.org/t/discourse-docker-container-has-trouble-reaching-dns/86439>\
**Category:** Self-hosting\
**Created:** [Avril 30, 2018, 7:06 UTC](https://meta.discourse.org/t/discourse-docker-container-has-trouble-reaching-dns/86439 "2018-04-30T07:06:01Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![yuri-zubov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yuri-zubov/32/95718_2.png) [@yuri-zubov](https://meta.discourse.org/u/yuri-zubov)\
**Post date:** [Avril 30, 2018, 9:05 UTC](https://meta.discourse.org/t/discourse-docker-container-has-trouble-reaching-dns/86439/12 "2018-04-30T09:05:55Z")

</div>

thank you for helping.  
on host machine didn’t work DNS-query

```plaintext
dig NS tut.by @8.8.8.8

; <<>> DiG 9.11.3-1ubuntu1-Ubuntu <<>> NS tut.by @8.8.8.8
;; global options: +cmd
;; connection timed out; no servers could be reached

```

I took ip address from networking interface and add to docker settings

```plaintext
dig NS tut.by @172.30.0.55

; <<>> DiG 9.11.3-1ubuntu1-Ubuntu <<>> NS tut.by @172.30.0.55
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10382
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;tut.by. IN	NS

;; ANSWER SECTION:
tut.by. 60	IN	NS	ns1.hosterby.com.
tut.by. 60	IN	NS	ns2.hosterby.com.

;; Query time: 48 msec
;; SERVER: 172.30.0.55#53(172.30.0.55)
;; WHEN: Mon Apr 30 09:04:58 UTC 2018
;; MSG SIZE rcvd: 83

```

---

_[View the full topic](https://meta.discourse.org/t/discourse-docker-container-has-trouble-reaching-dns/86439)._
