1c4a7bd5dd
Putting any configuration into /etc/net/ifaces/lo/resolv.conf makes etcnet *overwrite* /etc/resolv.conf, while putting that into /etc/resolv.conf itself makes e.g. vzctl --nameserver *append* to what's been specified. Reported-by: Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
18 lines
374 B
Bash
Executable File
18 lines
374 B
Bash
Executable File
#!/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
|