If we receive multiple dns servers against a domain,
authorRoy Marples <roy@marples.name>
Mon, 11 Jun 2012 15:40:37 +0000 (15:40 +0000)
committerRoy Marples <roy@marples.name>
Mon, 11 Jun 2012 15:40:37 +0000 (15:40 +0000)
only the first address is passed to dnsmasq over dbus.
Thanks to Naveen Rao.

dnsmasq.in

index 498c373e2f2655b577319e35122f425fcd7f0e99..1cd86510e67344d13a5b3a44ced4df26ae6bbd45 100644 (file)
@@ -71,8 +71,8 @@ conf=
 for d in $DOMAINS; do
        dn="${d%%:*}"
        ns="${d#*:}"
-       n="${ns%%,*}"
        while [ -n "$ns" ]; do
+               n="${ns%%,*}"
                case "$n" in
                *.*.*.*)
                        SIFS=${IFS-y} OIFS=$IFS