Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement