LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 07-02-2009, 04:14 AM   #1
joe262
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 )


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
 
Old 07-02-2009, 11:00 AM   #2
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 664

Rep: Reputation: 42
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
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,502

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


Reply


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


All times are GMT -5. The time now is 11:36 PM.

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