forked from freifunk-franken/firmware
fff-dhcp: add fallback dns server
If the user did not specify a dns server, set a fallback. Since we already have multiple servers available on an anycast address, this address is chosen instead of as specific server. This should avoid the issue that the default server might deprecate suddenly. A warning is still displayed to remind the user to conscientiously choose a server and not rely on defaults. Signed-off-by: Johannes Kimmel <fff@bareminimum.eu>
This commit is contained in:
parent
faf1910728
commit
32a6d9164d
|
@ -8,7 +8,10 @@ configure() {
|
|||
uci add_list dhcp.@dnsmasq[0].server="/ip6.arpa/$f"
|
||||
done
|
||||
else
|
||||
echo "WARNING: No DNS servers set!"
|
||||
echo "WARNING: No DNS servers set! Using default server fd43:5602:29bd:ffff:1:1:1:1"
|
||||
uci add_list dhcp.@dnsmasq[0].server="fd43:5602:29bd:ffff:1:1:1:1"
|
||||
uci add_list dhcp.@dnsmasq[0].server="/in-addr.arpa/fd43:5602:29bd:ffff:1:1:1:1"
|
||||
uci add_list dhcp.@dnsmasq[0].server="/ip6.arpa/fd43:5602:29bd:ffff:1:1:1:1"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue