What's new

resolv.conf on 3.0.0.4_376.48

jdcola

New Around Here
After upgrade from 376.47 to 376.48beta2, I found /etc/resolv.conf became a symbolic link of /rom/etc/resolv.conf
I used to set custom DNS on VPN connection by change the /tmp/ppp/vpnc-ip-pre-up to a symlink of /jffs/scripts/routes-up.sh, in which I use `sleep` to wait the VPN established and `echo -e 'nameserver ...' >/etc/resolv.conf`. (If I use /tmp/ppp/vpnc-ip-up instead of vpnc-ip-pre-up, the connection icon will keep rotating but not change to checkmark. strange...)

1. How can I change resolv.conf now (by script) ? (It's read-only now)
2. resolv.conf contains now "nameserver 127.0.0.1". Is it safe to use dnsmasq.postconf to bypass (no-resolv) it and set dns by "server x.x.x.x" ?
3. Anyhow, I need an approach to disable VPN auto-acquired DNS (not provided on WebGUI).
 
/etc/resolv.conf is strictly for local (on the router itself) resolution. /tmp/resolv.conf is the file you want to edit to add more DNS servers to dnsmasq, which handles both local (outer) and LAN resolution.
 

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!

Members online

Back
Top