Share your knowledge at the LQ Wiki.
Go Back > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.


  Search this Thread
Old 07-02-2009, 04:14 AM   #1
LQ Newbie
Registered: Apr 2009
Distribution: gentoo, xubuntu, opensuse, solaris 10, opensolaris, centos
Posts: 12

Rep: Reputation: Disabled
i need to keep nwam from changing resolv.conf ( osol 2009.06 & OpenDNS nameservers )


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

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!!

Old 07-02-2009, 11:00 AM   #2
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 882

Rep: Reputation: 45
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.
Old 07-02-2009, 12:42 PM   #3
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint
Posts: 9,703

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change nameservers WITHOUT editing resolv.conf??? zeeple Linux - Newbie 3 12-02-2008 01:29 PM
resolv.conf keeps changing solution cuco76 Linux - Networking 4 10-02-2006 04:57 PM
resolv.conf changing everytime network restart cuco76 Linux - Networking 4 11-29-2004 08:19 PM
/etc/resolv.conf keeps changing silvercastle Linux - Networking 2 04-15-2004 10:51 PM
DNS & resolv.conf robeb Linux - Networking 1 06-25-2002 09:15 PM > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 02:31 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration