Skip to content

Commit

Permalink
prioritise dns over mdns in nsswitch.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
oznu committed Dec 8, 2020
1 parent ed4a09c commit 5238ba5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions stage3_homebridge/01-homebridge/00-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ chown -R pi:pi /var/lib/homebridge
# set ui port for use in motd message
echo "8581" > /etc/hb-ui-port
# prioritise dns over mdns
sed -i 's/files mdns4_minimal \[NOTFOUND=return\] dns/files dns mdns4_minimal \[NOTFOUND=return\]/' /etc/nsswitch.conf
systemctl daemon-reload
systemctl enable homebridge
EOF
Expand Down

0 comments on commit 5238ba5

Please sign in to comment.