Advertisement
zefie

DD-WRT PPPoE DNS Fix

Dec 13th, 2011
458
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2. ##################################################################
  3. ## Certain DD-WRT seem to append user DNS with ISP provided DNS ##
  4. ## Which has priority over user DNS. This script fixes this.    ##
  5. ##################################################################
  6.  
  7. nvram get wan_dns | awk 'BEGIN{FS=" "}{for (i=1; i<=NF; i++) printf "nameserver %s", $i; }' > /tmp/resolv.dnsmasq
  8. killall dnsmasq
  9. dnsmasq --conf-file=/tmp/dnsmasq.conf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement