CARVIEW |
Select Language
HTTP/2 200
date: Tue, 15 Jul 2025 16:54:37 GMT
content-type: text/html; charset=utf-8
cache-control: max-age=0, private, must-revalidate
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
link: ; rel=preload; as=fetch; crossorigin=use-credentials
referrer-policy: no-referrer-when-downgrade
server-timing: issue_layout-fragment;desc="issue_layout fragment";dur=197.412238,issue_conversation_content-fragment;desc="issue_conversation_content fragment";dur=615.951685,issue_conversation_sidebar-fragment;desc="issue_conversation_sidebar fragment";dur=76.782386,nginx;desc="NGINX";dur=1.103408,glb;desc="GLB";dur=94.816301
strict-transport-security: max-age=31536000; includeSubdomains; preload
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With, Accept,Accept-Encoding, Accept, X-Requested-With
x-content-type-options: nosniff
x-frame-options: deny
x-voltron-version: 6a3bf42
x-xss-protection: 0
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=lHJGKW1fP%2FmFD8KKT0r8wh6S3MRuCinaDcjfvD1fuc7Kalh7tZY28tgW%2BkAznYnPKqIdML2yGsOmBeKbsKNHYhcZZT9x1N1gWWUtQa3klK1H5ZY%2BvM2MnOPsGygKYjvaDyZm7T9qyyAtL66UQ3S3bt3TOGgQVzV5dN%2BZ%2Fl6Yxwc1RxfeMnb%2BsG0pD5odetceX3PXhd8684Eh0sxz5xPL%2FJhoZuNmfuy7Gb8%2BEvQ%2B2n%2FlhgpNrnJ9EH4n40y4JqrrFdbnG8o2Dj6ilVfAyCrYdQ%3D%3D--LRjRLf0b4qzdnL2G--O8dn2fGdnlpGIO7k2UhvRA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.226799690.1752598476; Path=/; Domain=github.com; Expires=Wed, 15 Jul 2026 16:54:36 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Wed, 15 Jul 2026 16:54:36 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: DA86:33E1E3:4A3A:587F:687687CC
systemd socket activation fails on IPv6 · Issue #741 · NLnetLabs/unbound · GitHub
No one assignedNo labelsNo typeNo projectsNo milestoneNone yetNo branches or pull requests
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 397
Closed
Description
Describe the bug
When unbound is run with systemd's socket activation (see additional information below for an example socket file); unless you set specific IPv4 addresses to listen (like 127.0.0.1:553
) on the socket file and set do-ip6: no
(also set port: 553
for this example) on unbound.conf, you will get these two error lines:
error: setsockopt(..., IPV6_V6ONLY, ...) failed: Invalid argument
fatal error: could not open ports
To reproduce
Steps to reproduce the behavior:
- Compile and install unbound with systemd support (
--enable-systemd
). - Copy the built
contrib/unbound.service
from source to/usr/lib/systemd/system/
. - Install the systemd socket file below to
/usr/lib/systemd/system/
. - Configure
/usr/local/etc/unbound/unbound.conf
like below. - Reload systemd daemon. (
systemctl daemon-reload
) - Start the unbound socket. (
systemctl start unbound.socket
) - Start the unbound service. (
systemctl start unbound.service
) - Check service log. (Assuming journald is installed,
journalctl -xeu unbound
)
Expected behavior
Unbound starting.
System:
- Unbound version: 1.16.2
- OS: Debian 11 (bullseye)
unbound -V
output:Version 1.16.2 Configure line: --enable-systemd --enable-subnet --enable-tfo-client --enable-tfo-server --enable-dnstap --enable-dnscrypt --enable-cachedb --enable-ipsecmod --enable-ipset --with-pthreads --with-dynlibmodule --with-pyunbound --with-pythonmodule --with-libevent=/usr --with-libexpat=/usr --with-libhiredis=/usr --with-libnghttp2=/usr --with-protobuf-c=/usr --with-libsodium=/usr --with-libmnl=/usr Linked libs: libevent 2.1.12-stable (it uses epoll), OpenSSL 1.1.1n 15 Mar 2022 Linked modules: dns64 python dynlib cachedb ipsecmod subnetcache ipset respip validator iterator DNSCrypt feature available TCP Fastopen feature available BSD licensed, see LICENSE in source package for details. Report bugs to unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues
Additional information
File /usr/lib/systemd/system/unbound.socket
:
[Socket]
BindIPv6Only=both
ListenDatagram=553
ListenStream=553
[Install]
WantedBy=sockets.target
File /usr/local/etc/unbound/unbound.conf
:
server:
verbosity: 1
port: 553
use-systemd: yes
do-daemonize: no
username: ""
python:
dynlib:
remote-control:
control-enable: no
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Milestone
Relationships
Development
Issue actions
You can’t perform that action at this time.