fff-dhcp: blacklist A record after factory reset

To speed up name resolution, blacklist the A record for
local.fff.community by pointing to 0.0.0.0.

Without this, dnsmasq can't answer to A lookups and clients might time
out waiting for a reply.

Signed-off-by: Johannes Kimmel <fff@bareminimum.eu>
This commit is contained in:
Johannes Kimmel 2021-02-20 14:06:12 +01:00
parent 493208b00b
commit a3ad66f074
1 changed files with 5 additions and 0 deletions

View File

@ -32,6 +32,11 @@ uci batch >/dev/null <<EOF
set dhcp.@domain[-1].ip="fdff::1"
set dhcp.@domain[-1].name="local.fff.community"
set dhcp.@domain[-1].addedbyautoconfig="/etc/uci-defaults/90-fff-dhcp"
add dhcp domain
set dhcp.@domain[-1].ip="0.0.0.0"
set dhcp.@domain[-1].name="local.fff.community"
set dhcp.@domain[-1].addedbyautoconfig="/etc/uci-defaults/90-fff-dhcp"
EOF
uci commit dhcp