Advertisement
Guest User

DD-WRT PPPoE DNS Fix

a guest
Dec 13th, 2011
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.45 KB | None | 0 0
  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
  8. ", $i; }' > /tmp/resolv.dnsmasq
  9. killall dnsmasq
  10. dnsmasq --conf-file=/tmp/dnsmasq.conf
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement