LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   i need to keep nwam from changing resolv.conf ( osol 2009.06 & OpenDNS nameservers ) (https://www.linuxquestions.org/questions/solaris-opensolaris-20/i-need-to-keep-nwam-from-changing-resolv-conf-osol-2009-06-and-opendns-nameservers-737150/)

joe262 07-02-2009 04:14 AM

i need to keep nwam from changing resolv.conf ( osol 2009.06 & OpenDNS nameservers )
 
Hi!

Im trying to configure my laptop running OpenSolaris 2009.06 to use OpenDNS nameservers, regardless of where i am / what dhcp server i am connected to.

I set the nameservers in resolv.conf but when i restart nwam, resolv.conf gets overwritten with the nameservers supplied by the dhcp server.

I have tried the following:
chmod -w /etc/resolv.conf
didnt solve the problem

made the following changes to /etc/default/dhcpagent
# PARAM_REQUEST_LIST=1,3,6,12,15,28,43
# edited below by joe to prevent taking dns from dhcp
PARAM_REQUEST_LIST=1,3,12,28,43

Please also note that the dhcp server im trying this out with is a netgear FWG114P wireless router. i doubt that makes a difference, but just in case. I have it currently set to use the ISP's nameservers, so that i can get the laptop to ignore the settings that the router is providing, this way when i go to a friends house or whatever, i can still use the dns servers of my choice.

Any help / insights appreciated!!

thanx,
joe

rbees 07-02-2009 11:00 AM

simalar issue
 
Not sure it is related but...

I am trying to get local dns set up on my network. And my resolv.conf also getss over writen when I restart my netwonking service. Would sure be nice to know where to put the name server I want included in those sent to my clients.

jlliagre 07-02-2009 12:42 PM

Nwam allows hooking custom scripts that will be run automatically after certain events occur. You might be able to overwrite the dns settings there although I don't know exactly when these hooks are called.

Google /etc/nwam/ulp/check-conditions for details.


All times are GMT -5. The time now is 01:08 AM.