Skip to content

Commit

Permalink
Fix nameserver bug related to resolv.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarmo Puttonen committed Jan 5, 2021
1 parent 6f569bf commit 47a7001
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ systemctl disable systemd-resolved.service
systemctl stop systemd-resolved
rm -rf /etc/resolv.conf
echo "nameserver 1.1.1.1" > /etc/resolv.conf
echo "nameserver 1.0.0.1" > /etc/resolv.conf
echo "nameserver 1.0.0.1" >> /etc/resolv.conf

grep $MYPRIVATEIP /etc/hosts -q || (echo $MYPRIVATEIP `hostname` >> /etc/hosts)

Expand Down

0 comments on commit 47a7001

Please sign in to comment.