# Unable to connect

**URL:** <https://discourse.pi-hole.net/t/unable-to-connect/58427>\
**Category:** Help\
**Tags:** docker\
**Created:** [October 8, 2022, 4:45pm UTC](https://discourse.pi-hole.net/t/unable-to-connect/58427 "2022-10-08T16:45:02Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![chiragnahata](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/chiragnahata/32/32988_2.png) [@chiragnahata](https://discourse.pi-hole.net/u/chiragnahata)\
**Post date:** [October 8, 2022, 4:45pm UTC](https://discourse.pi-hole.net/t/unable-to-connect/58427/1 "2022-10-08T16:45:02Z")

</div>

I am getting dns timeout on my windows computer. Also in pihole everything is zero. I am using docker. Please help

Ports  
 ![image](https://discourse.pi-hole.net/uploads/default/original/3X/b/7/b7f2b0d74249957256dbfbdb4292298483ea7f55.png)

I have made pihole using docker.

 ![image](https://discourse.pi-hole.net/uploads/default/original/3X/9/0/9018ca9fa5f22cda73966474867d9e30dcbcca3e.png)  
 ![image](https://discourse.pi-hole.net/uploads/default/original/3X/9/c/9c0eb0a0dfead54ba52bb6aaba1f0339b7016e65.png)  
 ![image](https://discourse-cdn.pi-hole.net/uploads/default/optimized/3X/c/e/ce6a4b00f512da5444c14335a7f9aa424fc404c9_2_690x56.png)

```auto
version: "3"

# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
services:
  pihole:
    container_name: pihole
    image: pihole/pihole:latest
    # For DHCP it is recommended to remove these ports and instead add: network_mode: "host"
    ports:
      - "53:53/tcp"
      - "53:53/udp"
      - "67:67/udp" # Only required if you are using Pi-hole as your DHCP server
      - "1010:80/tcp"
      - "4443:443/tcp"
    environment:
      TZ: 'Asia/Kolkata'
      # WEBPASSWORD: 'set a secure password here or it will be random'
    # Volumes store your data between container upgrades
    volumes:
      - './etc-pihole:/etc/pihole'
      - './etc-dnsmasq.d:/etc/dnsmasq.d'
    # https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
    cap_add:
      - NET_ADMIN # Required if you are using Pi-hole as your DHCP server, else not needed
    restart: unless-stopped

```

 ![image](https://discourse.pi-hole.net/uploads/default/original/3X/f/3/f359b271fcf3feb7739b737f167066d188e781c0.png)  
Port 53 is used by process user:"named"

Do I need to add the bridge here in pihole network ?  
Also the pihole is configured in different port ? Is that the issue ?

Similar issue like [DNS Request Timeout - Help - Pi-hole Userspace](https://discourse.pi-hole.net/t/dns-request-timeout/10496)

Debug log file : [https://github.com/Chirag-Nahata/Pihole/blob/main/pihole\_debug.log](https://github.com/Chirag-Nahata/Pihole/blob/main/pihole_debug.log)

Github issue : [Pi Hole unable to run · Issue #1223 · pi-hole/docker-pi-hole · GitHub](https://github.com/pi-hole/docker-pi-hole/issues/1223)  
Reddit issue : [https://www.reddit.com/r/pihole/comments/xzfe5h/pihole\_unable\_to\_run\_issue/](https://www.reddit.com/r/pihole/comments/xzfe5h/pihole_unable_to_run_issue/)

---

<div class="post-metadata">

**Author:** ![chrislph](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/chrislph/32/32723_2.png) [@chrislph](https://discourse.pi-hole.net/u/chrislph)\
**Post date:** [October 8, 2022, 4:49pm UTC](https://discourse.pi-hole.net/t/unable-to-connect/58427/2 "2022-10-08T16:49:02Z")

</div>

Sounds like Windows isn't using the Pi-hole or can even reach a DNS server. Please give more information and follow the Help template which shows when you make a new post, and also post your pihole debug token (just the token URL, not the whole log). That way people can delve into it and help work out what's going on.

---

<div class="post-metadata">

**Author:** ![jfb](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jfb/32/4332_2.png) [@jfb](https://discourse.pi-hole.net/u/jfb)\
**Post date:** [October 8, 2022, 4:54pm UTC](https://discourse.pi-hole.net/t/unable-to-connect/58427/3 "2022-10-08T16:54:30Z")

</div>

> [@chiragnahata](#):
>
> Please help

Please help us by following our help template. In particular, we have no debug log, which is our primary diagnostic tool.

---

<div class="post-metadata">

**Author:** ![chiragnahata](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/chiragnahata/32/32988_2.png) [@chiragnahata](https://discourse.pi-hole.net/u/chiragnahata)\
**Post date:** [October 8, 2022, 5:08pm UTC](https://discourse.pi-hole.net/t/unable-to-connect/58427/4 "2022-10-08T17:08:55Z")

</div>

Check the edit

---

<div class="post-metadata">

**Author:** ![chiragnahata](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/chiragnahata/32/32988_2.png) [@chiragnahata](https://discourse.pi-hole.net/u/chiragnahata)\
**Post date:** [October 8, 2022, 5:09pm UTC](https://discourse.pi-hole.net/t/unable-to-connect/58427/5 "2022-10-08T17:09:50Z")

</div>

Check the edit

---

<div class="post-metadata">

**Author:** ![DanSchaper](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/danschaper/32/91_2.png) [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)\
**Post date:** [October 8, 2022, 5:12pm UTC](https://discourse.pi-hole.net/t/unable-to-connect/58427/6 "2022-10-08T17:12:31Z")

</div>

From your screenshot on Github,

You have port 53 used on the host device.

 ![194710619-6588cd87-3066-4872-b6df-4cb9d455bc2d](https://discourse.pi-hole.net/uploads/default/original/3X/c/a/ca119a86178652a143249ead2ffd19b9af7e94a3.png)

Edit:

```plaintext
- "1100:53/tcp"
- "1101:53/udp"

```

You can't do that unless you have a way to make every client use port 1100.

---

<div class="post-metadata">

**Author:** ![jfb](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jfb/32/4332_2.png) [@jfb](https://discourse.pi-hole.net/u/jfb)\
**Post date:** [October 8, 2022, 5:32pm UTC](https://discourse.pi-hole.net/t/unable-to-connect/58427/7 "2022-10-08T17:32:35Z")

</div>

> [@chiragnahata](#):
>
> Check the edit

No debug token in the edit.

---

<div class="post-metadata">

**Author:** ![Bucking\_Horn](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/bucking_horn/32/18719_2.png) [@Bucking\_Horn](https://discourse.pi-hole.net/u/Bucking_Horn)\
**Post date:** [October 8, 2022, 7:23pm UTC](https://discourse.pi-hole.net/t/unable-to-connect/58427/8 "2022-10-08T19:23:31Z")

</div>

> [@chiragnahata](#):
>
> ```auto
> ports:
> - "1100:53/tcp"
> - "1101:53/udp"
> 
> ```

**Dan** is right:  
Virtually any piece of software will use port 53 to send DNS requests, unless explicitly configured otherwise.

Change those ports back to 53.

---

<div class="post-metadata">

**Author:** ![chiragnahata](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/chiragnahata/32/32988_2.png) [@chiragnahata](https://discourse.pi-hole.net/u/chiragnahata)\
**Post date:** [October 9, 2022, 4:55am UTC](https://discourse.pi-hole.net/t/unable-to-connect/58427/9 "2022-10-09T04:55:31Z")

</div>

But if the change the ports back to 53 it is giving the error that it is in use. How to solve that please help

---

<div class="post-metadata">

**Author:** ![chrislph](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/chrislph/32/32723_2.png) [@chrislph](https://discourse.pi-hole.net/u/chrislph)\
**Post date:** [October 9, 2022, 5:11am UTC](https://discourse.pi-hole.net/t/unable-to-connect/58427/10 "2022-10-09T05:11:14Z")

</div>

Please create and upload a debug log and post just the tricorder debug token URL here.

From the Pi-hole command line enter

```
pihole -d -a

```

Or from the web interface it's _ **Tools \> Generate debug log** _ and tick the _ **🔲 Upload** _ box and then _ **Generate** _

---

<div class="post-metadata">

**Author:** ![Bucking\_Horn](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/bucking_horn/32/18719_2.png) [@Bucking\_Horn](https://discourse.pi-hole.net/u/Bucking_Horn)\
**Post date:** [October 9, 2022, 5:28am UTC](https://discourse.pi-hole.net/t/unable-to-connect/58427/12 "2022-10-09T05:28:07Z")

</div>

> [@chiragnahata](#):
>
> But if the change the ports back to 53 it is giving the error that it is in use.

That would suggest another DNS resolver on the same machine is already claiming port 53.  
You have to prevent that other DNS resolver from doing so, e.g. by disabling or uninstalling it.  
On a Linux system, the followong command should help to identify the process that is currently binding port 53:

```auto
sudo ss -tulpn | grep "Netid\|:53 "

```

---

<div class="post-metadata">

**Author:** ![chiragnahata](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/chiragnahata/32/32988_2.png) [@chiragnahata](https://discourse.pi-hole.net/u/chiragnahata)\
**Post date:** [October 9, 2022, 5:29am UTC](https://discourse.pi-hole.net/t/unable-to-connect/58427/13 "2022-10-09T05:29:32Z")

</div>

this processes are used by "named"

![image](https://discourse.pi-hole.net/uploads/default/original/3X/1/b/1b98dd4bd37d2679d46b4d7603ca42901182c4b1.png)

---

<div class="post-metadata">

**Author:** ![chiragnahata](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/chiragnahata/32/32988_2.png) [@chiragnahata](https://discourse.pi-hole.net/u/chiragnahata)\
**Post date:** [October 9, 2022, 5:46am UTC](https://discourse.pi-hole.net/t/unable-to-connect/58427/14 "2022-10-09T05:46:34Z")

</div>

_Moderator edit: explicit debug log removed_

(_Just post the token, please. For your own privacy and security, do not post the full, unsanitised debug log output here. You correctly posted a debug token earlier - I've reinstated that post. 😉 )_

---

<div class="post-metadata">

**Author:** ![rdwebdesign](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/rdwebdesign/32/51363_2.png) [@rdwebdesign](https://discourse.pi-hole.net/u/rdwebdesign)\
**Post date:** [October 9, 2022, 6:15am UTC](https://discourse.pi-hole.net/t/unable-to-connect/58427/15 "2022-10-09T06:15:00Z")

</div>

Please, don't paste your full log here (or github). Everybody can see your log.

Just paste your debug token (it's a URL showed after the log is created).  
Only developers have access when you use the token.

---

<div class="post-metadata">

**Author:** ![Bucking\_Horn](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/bucking_horn/32/18719_2.png) [@Bucking\_Horn](https://discourse.pi-hole.net/u/Bucking_Horn)\
**Post date:** [October 9, 2022, 6:15am UTC](https://discourse.pi-hole.net/t/unable-to-connect/58427/16 "2022-10-09T06:15:38Z")

</div>

Seems you are running _`bind`_ on your machine.

If you do not depend on it for some reason, disable `named`  
It would depend on your OS how to do that exactly.

You could try:

```auto
sudo systemctl stop named
sudo systemctl disable named

```

If that doesn't work, consult your OS documentation.

EDIT: Afterwards, use the `sudo ss...` command from above to verify that ports are free.

---

<div class="post-metadata">

**Author:** ![chiragnahata](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/chiragnahata/32/32988_2.png) [@chiragnahata](https://discourse.pi-hole.net/u/chiragnahata)\
**Post date:** [October 9, 2022, 6:32am UTC](https://discourse.pi-hole.net/t/unable-to-connect/58427/20 "2022-10-09T06:32:39Z")

</div>

[https://tricorder.pi-hole.net/ksUveN2O/](https://tricorder.pi-hole.net/ksUveN2O/)

---

<div class="post-metadata">

**Author:** ![chiragnahata](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/chiragnahata/32/32988_2.png) [@chiragnahata](https://discourse.pi-hole.net/u/chiragnahata)\
**Post date:** [October 9, 2022, 6:35am UTC](https://discourse.pi-hole.net/t/unable-to-connect/58427/21 "2022-10-09T06:35:22Z")

</div>

no nothing happened

---

<div class="post-metadata">

**Author:** ![Bucking\_Horn](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/bucking_horn/32/18719_2.png) [@Bucking\_Horn](https://discourse.pi-hole.net/u/Bucking_Horn)\
**Post date:** [October 9, 2022, 6:51am UTC](https://discourse.pi-hole.net/t/unable-to-connect/58427/22 "2022-10-09T06:51:15Z")

</div>

Did you reverify by rerunning the `ss` command from above?  
It should come back as an empty, headers only list, if stopping and disabling `named` has been successful.

---

<div class="post-metadata">

**Author:** ![chiragnahata](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/chiragnahata/32/32988_2.png) [@chiragnahata](https://discourse.pi-hole.net/u/chiragnahata)\
**Post date:** [October 9, 2022, 7:20am UTC](https://discourse.pi-hole.net/t/unable-to-connect/58427/23 "2022-10-09T07:20:34Z")

</div>

after running sudo ss cannot find the port 53 listed there

---

<div class="post-metadata">

**Author:** ![chiragnahata](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/chiragnahata/32/32988_2.png) [@chiragnahata](https://discourse.pi-hole.net/u/chiragnahata)\
**Post date:** [October 9, 2022, 7:32am UTC](https://discourse.pi-hole.net/t/unable-to-connect/58427/24 "2022-10-09T07:32:32Z")

</div>

Already changed DNSStubListener=yes to DNSStubListener=no

[Next page](https://discourse.pi-hole.net/t/unable-to-connect/58427.md?page=2)
