Hi,
When using DHCP, resolv.conf is updated with the router's IP for the
nameserver at binding time...
nameserver 192.168.1.1
Is there a way to have one or more static nameserver addresses to
resolv.conf added when this happens?
nameserver 195.238.2.22
nameserver 195.238.2.21
nameserver 192.168.1.1
I've read somewhere (http://blogs.sun.com/darren/entry/dhcp_eventhook)
that eventhooks can be used in Solaris 10 for this purpose.
Thanks,
Unix/Solaris newbie
|
|
0
|
|
|
|
Reply
|
Yves.Thorrez (2)
|
8/30/2007 11:56:53 AM |
|
Yves <Yves.Thorrez@gmail.com> writes:
> I've read somewhere (http://blogs.sun.com/darren/entry/dhcp_eventhook)
> that eventhooks can be used in Solaris 10 for this purpose.
Yes, that's currently what you have to do. Beware that there are also
system start-up scripts that rewhack /etc/resolv.conf at boot time,
and that these aren't driven directly by DHCP.
In particular, svc:/network/service:default will do this. To be safe,
you need to create a script that will run _after_ that one runs.
A better answer is to fix the DHCP server so that it gives out good
numbers, and to talk to the OpenSolaris NWAM project team to see what
they're doing in this area for the future.
--
James Carlson, Solaris Networking <james.d.carlson@sun.com>
Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677
|
|
0
|
|
|
|
Reply
|
James
|
8/30/2007 6:45:35 PM
|
|