CaffeineAddict
Well-Known Member
This is my config file which is /etc/unbound/unbound.conf.d/unbound.conf
If I uncomment "interface" and set it to
If I set interface to IPv4 it won't work, ex.
also
No matter what I do dns over IPv4 does not work.
If I uncomment line in config "do-ip6: no" then unbound doesn't work at all which is a prof that it works only via IPv6
Specifying different dns server makes no difference.
I'm using debian 12 and the reason I need dns over IPv4 is to be able to specify dns address in network manager trough UI which edits the /etc/resolv.conf
For ex in the window below, "DNS Servers" asks me to enter IPv4 DNS address (I don't have IPv6 connectivity):
EDIT:
I figured out the issue was because nftables was configured to drop IPv4 but not IPv6.
Code:
server:
#interface: enp2s0
#interface: 0.0.0.0
port: 53
#access-control: 192.168.8.0/24 allow
hide-identity: yes
hide-version: yes
use-syslog: yes
cache-max-ttl: 14400
cache-min-ttl: 900
prefetch: yes
rrset-roundrobin: yes
do-tcp: yes
do-ip4: yes
do-udp: yes
#do-ip6: no
tls-upstream: yes
tls-cert-bundle: "/etc/ssl/certs/ca-certificates.crt"
forward-zone:
name: "."
forward-tls-upstream: yes
forward-addr: 1.1.1.1@853#one.one.one.one
#forward-addr: 2a05:fc84::42@853#dns.digitale-gesellschaft.ch
Works fine which is the same asdig @::1 example.com
dig @localhost example.com
Does not workdig @127.0.0.1 example.com
If I uncomment "interface" and set it to
It will work as if not specified, which is IPv6 by defaultinterface: ::1
If I set interface to IPv4 it won't work, ex.
does not make IPv4 workinterface: 127.0.0.1
also
does not make IPv4 workinterface: 0.0.0.0
No matter what I do dns over IPv4 does not work.
If I uncomment line in config "do-ip6: no" then unbound doesn't work at all which is a prof that it works only via IPv6
Specifying different dns server makes no difference.
I'm using debian 12 and the reason I need dns over IPv4 is to be able to specify dns address in network manager trough UI which edits the /etc/resolv.conf
For ex in the window below, "DNS Servers" asks me to enter IPv4 DNS address (I don't have IPv6 connectivity):
EDIT:
I figured out the issue was because nftables was configured to drop IPv4 but not IPv6.
Last edited: