Couldn't start forwarding DNS server: listening to udp socket: listen udp [fe80::c204:be4:e85f:5327]:53: bind: invalid argument #3918

Closed
opened 2026-03-04 04:32:50 -05:00 by deekerman · 1 comment
Owner

Originally created by @ppfeufer on GitHub (Sep 21, 2022).

Prerequisites

  • I have checked the Wiki and Discussions and found no answer

  • I have searched other issues and found no duplicates

  • I want to report a bug and not ask a question

Operating system type

Linux, Other (please mention the version in the description)

CPU architecture

64-bit ARM

Installation

GitHub releases or script from README

Setup

Raspberry PI

AdGuard Home version

v0.107.13

Description

What did you do?

Set bind_hosts to a private IPv6 address

dns:
  bind_hosts:
    - 192.168.178.2
    - fe80::c204:be4:e85f:5327

Expected result

AdGuardHome using the internal IPv6 address to listen to

Actual result

pi@adguard:/opt/AdGuardHome $ tail -f AdGuardHome.log
2022/09/21 16:02:12.352515 [info] auth: initialized.  users:1  sessions:2
2022/09/21 16:02:12.353023 [info] number of certs - 3
2022/09/21 16:02:12.353045 [info] got an intermediate cert
2022/09/21 16:02:12.353095 [info] got an intermediate cert
2022/09/21 16:02:12.394752 [info] Initialize web module
2022/09/21 16:02:12.396743 [info] DNS cache is enabled
2022/09/21 16:02:12.396811 [info] MaxGoroutines is set to 300
2022/09/21 16:02:12.816647 [info] AdGuard Home is available at the following addresses:
2022/09/21 16:02:12.816768 [info] Go to http://192.168.178.2:8100
2022/09/21 16:02:12.817026 [info] Go to https://agh.ppfeufer.de:443
2022/09/21 16:02:22.513405 [info] Starting the DNS proxy server
2022/09/21 16:02:22.513537 [info] Cache TTL override is enabled. Min=43200, Max=86400
2022/09/21 16:02:22.513566 [info] The server is configured to refuse ANY requests
2022/09/21 16:02:22.513595 [info] DNS cache is enabled
2022/09/21 16:02:22.513633 [info] MaxGoroutines is set to 300
2022/09/21 16:02:22.513680 [info] Creating the UDP server socket
2022/09/21 16:02:22.513877 [info] Listening to udp://192.168.178.2:53
2022/09/21 16:02:22.513916 [info] Creating the UDP server socket
2022/09/21 16:02:22.518307 [fatal] couldn't start forwarding DNS server: listening to udp socket: listen udp [fe80::c204:be4:e85f:5327]:53: bind: invalid argument

Screenshots (if applicable)

Additional information

Setting bind_hosts to 0.0.0.0 works and AGH will listen to the IPv6 address but also exposes AGH to the internet, which is the desired effect.

Originally created by @ppfeufer on GitHub (Sep 21, 2022). ### Prerequisites - [X] I have checked the [Wiki](https://github.com/AdguardTeam/AdGuardHome/wiki) and [Discussions](https://github.com/AdguardTeam/AdGuardHome/discussions) and found no answer - [X] I have searched other issues and found no duplicates - [X] I want to report a bug and not ask a question ### Operating system type Linux, Other (please mention the version in the description) ### CPU architecture 64-bit ARM ### Installation GitHub releases or script from README ### Setup Raspberry PI ### AdGuard Home version v0.107.13 ### Description #### What did you do? Set `bind_hosts` to a private IPv6 address ```yaml dns: bind_hosts: - 192.168.178.2 - fe80::c204:be4:e85f:5327 ``` #### Expected result AdGuardHome using the internal IPv6 address to listen to #### Actual result ``` pi@adguard:/opt/AdGuardHome $ tail -f AdGuardHome.log 2022/09/21 16:02:12.352515 [info] auth: initialized. users:1 sessions:2 2022/09/21 16:02:12.353023 [info] number of certs - 3 2022/09/21 16:02:12.353045 [info] got an intermediate cert 2022/09/21 16:02:12.353095 [info] got an intermediate cert 2022/09/21 16:02:12.394752 [info] Initialize web module 2022/09/21 16:02:12.396743 [info] DNS cache is enabled 2022/09/21 16:02:12.396811 [info] MaxGoroutines is set to 300 2022/09/21 16:02:12.816647 [info] AdGuard Home is available at the following addresses: 2022/09/21 16:02:12.816768 [info] Go to http://192.168.178.2:8100 2022/09/21 16:02:12.817026 [info] Go to https://agh.ppfeufer.de:443 2022/09/21 16:02:22.513405 [info] Starting the DNS proxy server 2022/09/21 16:02:22.513537 [info] Cache TTL override is enabled. Min=43200, Max=86400 2022/09/21 16:02:22.513566 [info] The server is configured to refuse ANY requests 2022/09/21 16:02:22.513595 [info] DNS cache is enabled 2022/09/21 16:02:22.513633 [info] MaxGoroutines is set to 300 2022/09/21 16:02:22.513680 [info] Creating the UDP server socket 2022/09/21 16:02:22.513877 [info] Listening to udp://192.168.178.2:53 2022/09/21 16:02:22.513916 [info] Creating the UDP server socket 2022/09/21 16:02:22.518307 [fatal] couldn't start forwarding DNS server: listening to udp socket: listen udp [fe80::c204:be4:e85f:5327]:53: bind: invalid argument ``` #### Screenshots (if applicable) #### Additional information Setting `bind_hosts` to `0.0.0.0` works and AGH will listen to the IPv6 address but also exposes AGH to the internet, which is the desired effect.
deekerman 2026-03-04 04:32:50 -05:00
  • closed this issue
  • added the
    duplicate
    label
Author
Owner

@ainar-g commented on GitHub (Sep 21, 2022):

Duplicate of #2926. Weird that it was on a milestone so far. Setting that one to 0.107.14.

Thanks for the report; please upvote the older issue.

@ainar-g commented on GitHub (Sep 21, 2022): Duplicate of #2926. Weird that it was on a milestone so far. Setting that one to 0.107.14. Thanks for the report; please upvote the older issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/AdGuardHome#3918
No description provided.