On 2013-02-20 7:22 PM, Jonh Wendell wrote: > 2013/2/20 Felix Fietkau <[email protected] <mailto:[email protected]>> > > On 2013-02-20 6:57 PM, Jonh Wendell wrote: > > 2013/2/20 Felix Fietkau <[email protected] <mailto:[email protected]> > <mailto:[email protected] <mailto:[email protected]>>> > > > > What I meant was: why do you need to rename the resolv.conf file? > > > > > > Ahh. Because I don't want to use the dns servers dhcp gives to me. > You don't need to modify anything scripts for that. Just set 'option > peerdns 0' on interfaces that get a dynamic DNS entry via DHCP or other > protocols, and use 'option dns <val>' to specify your own servers. > > - Felix > > > I don't want dns servers to be hard coded that way. I have my own > scripts/programs that write directly to /tmp/resolv.conf.auto. So, can I > just use 'peerdns 0' and don't have any 'option dns..'? Having custom scripts write to /tmp/resolv.conf.auto seems a bit hackish to me. If you're using dnsmasq, how about changing its config to point at your own config file. If not, you only need to change a symlink in /tmp.
- Felix _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
