Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dnsmasq: enable DNSSEC build option by default #50904

Closed
uhohspaghetios opened this issue Jun 20, 2024 · 3 comments
Closed

dnsmasq: enable DNSSEC build option by default #50904

uhohspaghetios opened this issue Jun 20, 2024 · 3 comments
Labels
request Package request

Comments

@uhohspaghetios
Copy link
Contributor

I see no reason dnsmasq should not be built with DNSSEC support.
https://www.icann.org/resources/pages/dnssec-what-is-it-why-important-2019-03-05-en

At present even when forwarding DNS requests to, for example, 9.9.9.9 or 1.1.1.1 caching nameservers with DNSSEC support, the result on the local network is no DNSSEC protection.

For example, if you try to get an IP using dig or any other method of dnssec-failed.org, it should not return a ping because the DNSSEC is signed with an invalid key. If your system returns an IP address for this domain name, you are at risk of DNS poisoning.

@classabbyamp classabbyamp added the request Package request label Jun 21, 2024
@classabbyamp classabbyamp changed the title dnsmasq needs to be built with DNSSEC support dnsmasq: enable DNSSEC build option by default Jun 21, 2024
@piekay
Copy link
Contributor

piekay commented Jun 23, 2024

Dnsmasq is already being compiled with DNSSEC support. It just isn't enabled by default. See #41786. I am not entirely sure if it's worth it to enable DNSSEC by default and potentially breaking somebodys workflow

@uhohspaghetios
Copy link
Contributor Author

uhohspaghetios commented Jun 26, 2024

I am going to disagree with you there. I get this error when setting the dnssec option in dnsmasq.conf

% doas dnsmasq -u dnsmasq -g dnsmasq

dnsmasq: unsupported option (check that dnsmasq was compiled with DHCP/TFTP/DNSSEC/DBus support) at line 6 of /usr/share/dnsmasq/trust-anchors.conf

My dnsmasq.conf file:

conf-file=/usr/share/dnsmasq/trust-anchors.conf
dnssec
strict-order
no-resolv
server=::1#53000
listen-address=::1
no-dhcp-interface=::1
bind-interfaces
no-hosts
cache-size=1000

I took a look at the template file. I see the build option to build with DNSSEC support, but apparently that is not happening.

From the template:

build_options="dnssec"
desc_option_dnssec="Enable DNSSEC support via nettle"

What calls that build option to be set?

@classabbyamp
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request Package request
Projects
None yet
Development

No branches or pull requests

3 participants