diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2021-11-16 11:09:14 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2021-11-16 11:10:55 +0100 |
commit | 25945976fbc11d155ff72b472d03d3c8556a5b09 (patch) | |
tree | 67181a777a39a05ce09f2d6533ad8cfb60cedaaf | |
parent | 37c2bed3009c75782f482df818e2fdc335591a26 (diff) | |
download | alpine-conf-25945976fbc11d155ff72b472d03d3c8556a5b09.zip |
setup-dns: accept comma separate list of dns servers
fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10488
-rw-r--r-- | setup-dns.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/setup-dns.in b/setup-dns.in index 9bd307e..18e3962 100644 --- a/setup-dns.in +++ b/setup-dns.in @@ -46,7 +46,7 @@ if [ -n "$NAMESERVERS" ] || [ $# -gt 0 ];then dns="$NAMESERVERS" else ask "DNS nameserver(s)?" "${dns% }" - dns="$resp" + dns="$(echo $resp | tr ',' ' ')" fi if [ "$domain" != "" ]; then |