You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
374 B
18 lines
374 B
3 years ago
|
#!/bin/sh
|
||
|
# set default nameserver, if any
|
||
|
|
||
|
if [ $GLOBAL_NAMESERVERS = "example" ]; then
|
||
|
echo "# yandex"
|
||
|
echo "#nameserver 77.88.8.1"
|
||
|
echo "# google"
|
||
|
echo "#nameserver 8.8.8.8"
|
||
|
echo "# level3"
|
||
|
echo "#nameserver 4.2.2.1"
|
||
|
echo "#nameserver 4.2.2.2"
|
||
|
echo "#nameserver 4.2.2.3"
|
||
|
else
|
||
|
for i in $GLOBAL_NAMESERVERS; do
|
||
|
echo "nameserver $i"
|
||
|
done
|
||
|
fi >> /etc/resolv.conf
|