]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/scripts/convert-dns-settings
convert-dns-settings: Explicitely enable using ISP name servers
[ipfire-2.x.git] / src / scripts / convert-dns-settings
index 23d76ec8892251e80efbf2d6c54b213373735e0f..11efc7cba816c94b0451c45c4d3d00204ee609ba 100755 (executable)
@@ -58,9 +58,9 @@ main() {
                # Empty the old settings file
                : > /var/ipfire/dns/settings
 
-               # Disable using ISP name servers when we already have some configured
-               if [ ${i} -gt 3 ]; then
-                       echo "USE_ISP_NAMESERVERS=off" \
+               # Enable using ISP name servers when no servers are configured
+               if [ ${i} -eq 3 ]; then
+                       echo "USE_ISP_NAMESERVERS=on" \
                                >> /var/ipfire/dns/settings
                fi
        fi