diff --git a/dnsmasq/config.json b/dnsmasq/config.json index dfe018b..4aa5cd1 100644 --- a/dnsmasq/config.json +++ b/dnsmasq/config.json @@ -6,15 +6,16 @@ "url": "https://home-assistant.io/addons/dnsmasq/", "startup": "before", "boot": "auto", - "host_network": true, + "ports": { + "53/udp": 53, + "53/tcp": 53 + }, "options": { - "interface": "eth0", "defaults": ["8.8.8.8", "8.8.4.4"], "forwards": [], "hosts": [] }, "schema": { - "interface": "str", "defaults": ["str"], "forwards": [ { diff --git a/dnsmasq/run.sh b/dnsmasq/run.sh index 789188c..aea908b 100644 --- a/dnsmasq/run.sh +++ b/dnsmasq/run.sh @@ -6,10 +6,6 @@ CONFIG_PATH=/data/options.json DEFAULTS=$(jq --raw-output '.defaults[]' $CONFIG_PATH) FORWARDS=$(jq --raw-output '.forwards | length' $CONFIG_PATH) HOSTS=$(jq --raw-output '.hosts | length' $CONFIG_PATH) -INTERFACE=$(jq --raw-output '.interface | length' $CONFIG_PATH) - -# Set interface -echo "interface=$INTERFACE" >> /etc/dnsmasq.conf # Add default forward servers for line in $DEFAULTS; do