You'll probably need to add -R option to /etc/conf.d/dhcpcd (read the manpage for details)
]]>you're missing the point: the resolv.conf must be different for different connections... if you tell DHCP not to overwrite resolv.conf then you're going to be using the resolv.conf from work and nothing will resolve (e.g. firefox will sit at "resolving host www.blah.com...")
Actually, there are several DNS servers that I know that will resolve correctly both in my office and at home. So this isn't the issue. In fact, I'm overwriting every day with the same DNS server regardless of location.
I don't have DHCP at the office currently so that's not an option right now. I might be able to set up a box to act as a DHCP server but that's not my first choice. Still it'd be easier for me than writing a script.. yeesh.
]]>the easiest option is to use dhcp in both places.
or use static ips in both both places and write a simple script to overwrite the resolv.conf with your proper settings...
and yes, check rc.conf for the example static ip line... you must specifiy the gateway when setting the IP
]]>Also, I thought a bit more about making my wireless static but the problem is the IP I get from wireless is 10.0.2.x while the IP I have at work is 192.168.1.x. More to the point, the gateway for eth0 (ethernet) is 192.168.1.1 while the gateway for eth1 (wireless) is 10.0.2.1. Does rc.conf support two different gateways? How would I handle that?
]]>I like the suggestion of making it static though.. will try that tonight.
]]>On a sidenote, it is quite normal for it to change the config for the DNS servers (/etc/resolv.conf), since they're normally supplied by the DHCP server.
]]>Try switching to a static IP for wireless
]]>Every day I redo my resolv.conf file and no matter how many times I save it it keeps getting overwritten the next day! This is frustrating b/c the name server really doesn't need to change between my two connections yet the one that it's putting in is only compatible with my wireless connection.
How can I stop arch from messing with my resolv.conf?
]]>