#!/bin/sh ################################################################## ## Certain DD-WRT seem to append user DNS with ISP provided DNS ## ## Which has priority over user DNS. This script fixes this. ## ################################################################## nvram get wan_dns | awk 'BEGIN{FS=" "}{for (i=1; i<=NF; i++) printf "nameserver %s", $i; }' > /tmp/resolv.dnsmasq killall dnsmasq dnsmasq --conf-file=/tmp/dnsmasq.conf