[GH-ISSUE #1742] DNS over ipv6 not working #1180

Closed
opened 2026-05-05 07:36:34 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @ghost on GitHub (Jan 20, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1742

As of #1722 enhancement, there is now the possibility to specify an ipv6 address for dns inside the sandbox.

The ipv6 address is correctly passed to the sandbox.

route -6 -n

inside the sandbox correctly shows that our ipv6 address is indeed routed to eth0

Doing a 'dig' without specifying a dns works (at least it sends packets, and for whatever reason on my configuration the real dns can't resolve what it is asked to resolve, but that is unrelated to firejail)

... but a 'curl' or the like won't even try to resolve dns. It immediately fails with 'could not resolve host'. Wireshark shows that it is not even trying to send a dns request!

So, sure, forcing request with dig works, but there must be more to make dns over ipv6 work transparently in a sandbox that just accepting an ipv6 address!

Originally created by @ghost on GitHub (Jan 20, 2018). Original GitHub issue: https://github.com/netblue30/firejail/issues/1742 As of #1722 enhancement, there is now the possibility to specify an ipv6 address for dns inside the sandbox. The ipv6 address is correctly passed to the sandbox. `route -6 -n` inside the sandbox correctly shows that our ipv6 address is indeed routed to eth0 Doing a 'dig' without specifying a dns works (at least it sends packets, and for whatever reason on my configuration the real dns can't resolve what it is asked to resolve, but that is unrelated to firejail) ... but a 'curl' or the like won't even try to resolve dns. It immediately fails with 'could not resolve host'. Wireshark shows that it is not even trying to send a dns request! So, sure, forcing request with dig works, but there must be more to make dns over ipv6 work transparently in a sandbox that just accepting an ipv6 address!
gitea-mirror 2026-05-05 07:36:34 -06:00
Author
Owner

@netblue30 commented on GitHub (Jan 23, 2018):

Inside the sandbox, take a look at /etc/resolv.conf. The DNS IP should go into this file. There is no difference between IPv4 and IPv6 DNS, if one of the works the other one should also work.

<!-- gh-comment-id:359810488 --> @netblue30 commented on GitHub (Jan 23, 2018): Inside the sandbox, take a look at /etc/resolv.conf. The DNS IP should go into this file. There is no difference between IPv4 and IPv6 DNS, if one of the works the other one should also work.
Author
Owner

@chiraag-nataraj commented on GitHub (Dec 9, 2018):

Closing since the OP has left Github. If someone thinks we should leave this open, feel free to re-open.

<!-- gh-comment-id:445541761 --> @chiraag-nataraj commented on GitHub (Dec 9, 2018): Closing since the OP has left Github. If someone thinks we should leave this open, feel free to re-open.
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: github-starred/firejail#1180
No description provided.