unbound: use ipv4 on older ubuntu
SpamHaus rejects queries from ipv6. unbound does not work on ipv6 only servers without do-ip6: true prefer-ip4 only works on ubuntu 24 this leads to a situation that we cannot support ipv6 only servers with older ubuntu
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
# Prefer IPv4 outbound queries. Spamhaus often rejects queries from IPv6 addresses
|
||||
# This setting is in a separate file since it only works from Ubuntu 24 , unbound 1.19.2
|
||||
|
||||
server:
|
||||
prefer-ip4: yes
|
||||
|
||||
@@ -6,11 +6,17 @@ server:
|
||||
interface: 127.0.0.150
|
||||
interface: 172.18.0.1
|
||||
ip-freebind: yes
|
||||
do-ip6: yes
|
||||
access-control: 127.0.0.1 allow
|
||||
access-control: 172.18.0.1/16 allow
|
||||
cache-max-negative-ttl: 30
|
||||
cache-max-ttl: 300
|
||||
|
||||
# Prefer IPv4 outbound queries. Spamhaus often rejects queries from IPv6 addresses
|
||||
# without this, unbound does not start on IPv6 only servers
|
||||
do-ip6: yes
|
||||
# this setting only works with ubuntu 24 and unbound >= 1.19.2
|
||||
prefer-ip4: yes
|
||||
|
||||
# enable below for logging to journalctl -u unbound
|
||||
# verbosity: 5
|
||||
# log-queries: yes
|
||||
|
||||
Reference in New Issue
Block a user