Many thanks Riz, for the response.... :-)
At least you tried to help which I am very grateful for! This does seem a bit of an iffy way of doing things and a manual or hard override would be better in this case. In nsswitch.conf dhcp has managed to hi-jack these lines: #hosts: files # Commented out by DHCP hosts: files dns # Added by DHCP #ipnodes: files # Commented out by DHCP ipnodes: files dns # Added by DHCP so am wondering what the significance of setting them back to their original values would be??? I mean what does adding the dns value do within the sys config? Regards, Kaya On 02/01/10 18:30, Riz deV wrote: > Kaya, > ignore my other previous message as I didnt see this message. If you > cannot find a real solution, another thing to try is; > - create the /etc/resolv.conf-dummy > - run cron every time to copy it over to the current resolv.conf. > you can also setup a script to check the condition of the resolv.conf > file if has changed and just perform the copy over if it changed. > If you do figure out the answer, I would also like to know... > Thanks, > > --- On *Fri, 1/29/10, Kaya Saman /<SamanKaya at netscape.net>/* wrote: > > > From: Kaya Saman <SamanKaya at netscape.net> > Subject: [osol-help] Overriding DNS servers given by DHCP in > OpenSolaris?? > To: opensolaris-help at opensolaris.org > Date: Friday, January 29, 2010, 12:16 PM > > Hi guys, > > I Google'd this one but got absolutely no documentation on it what > so ever which means either my search string was poor or this is > poorly documented! > > Basically what I would like to do is exactly what I do currently > in Linux and that's to override the DNS server given by my > pathetic current ADSL router by editing the > /etc/dhcp3/dhclient.conf and changing this parameter: supersede > domain-name-servers > > I haven't managed to find anything similar in OpenSolaris so can > anyone help me?? > > The reason I need to do this is that I statically input my DNS > into /etc/resolv.conf which comes directly from my servers in the > UK since the ISP here blocks certain sites via redirecting DNS > queries a self contained root DNS resolver (which I also have in > my notebook) or an external DNS resolver will also work in this > situation. > > The router I have currently is a really crappy consumer grade > piece of garbage which I have tried to override the DNS servers > given in the DHCP config, however it somehow manages to give > itself (main gateway address) as the primary DNS server which is > totally unlike my Cisco in the remote network. > > I mean whenever the router sends a DHCP update I manage to loose > my whole DNS config and then the sites I want to access such as > YouTube etc... time out totally or redirect to the government site > which the main ISP DNS servers have redirects to. Anyhow political > BS aside I just need to figure out how to statically assign the > DNS server IP as it drives me crazy having to change it every 2 > seconds.... > > Can anyone assist?? > > Regards, > > Kaya > > _______________________________________________ > opensolaris-help mailing list > opensolaris-help at opensolaris.org > <http://us.mc639.mail.yahoo.com/mc/compose?to=opensolaris-help at > opensolaris.org> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/opensolaris-help/attachments/20100201/e6737ae1/attachment.html>
