#!/bin/sh
echo "nameserver 8.8.8.8" >> /tmp/resolv.conf
You don't need a USB drive to setup jffs, jffs uses the routers flash.
Okay, I've put the script in and it does add the line to resolv.conf, but this doesn't seem to get picked up. Checking the boot log and network map pages only shows the first two DNS entries, not the one added by the boot script.
Any ideas? What's the best way of checking what nameservers the router is using?
killall -sighup dnsmasq
ec 3 00:29:45 dnsmasq[4076]: read /etc/hosts - 3 addresses
Dec 3 00:29:45 dnsmasq-dhcp[4076]: read /etc/ethers - 6 addresses
Dec 3 00:29:46 dnsmasq[4076]: using nameserver 8.8.8.8#53
Dec 3 00:29:46 dnsmasq[4076]: using nameserver 206.248.154.170#53
Dec 3 00:29:46 dnsmasq[4076]: using nameserver 206.248.154.22#53
nvram set wan_dns="4.2.2.2 4.2.2.1 4.2.2.3"
nvram set wan0_dns="4.2.2.2 4.2.2.1 4.2.2.3"
nvram commit
Could the UI be extended from two to three slots as its not hardcoded anywhere else?
I used to use a DNS cache program that could cycle through 10 servers depending which were fastest and had the right info, so three seems quite conservative to me.
After all that, and hearing from other people about the issue with using DNSes out of my region, I've decided to stick with the two, one from my ISP and one from OpenDNS (because my ISP's DNS can be slow to update). So really I should apologise for wasting your time on this one!![]()
The intention had been to use the NVRAM edits, and if necessary use a start-up script to keep them current as you suggested. It's a little clunky in that you can't change it from the UI, but it's a lot better than appending to resolve.conf, and then having to kill and restart dnsmasq which isn't very elegant.
(because my ISP's DNS can be slow to update).
We use essential cookies to make this site work, and optional cookies to enhance your experience.