Oleg Vazhnev writes:
> I want to use DHCP, but I still need to use static DNS.
> Unfortanly the resolv.conf file is recreated every time after reboot, because 
> DHCP returns not only the IP address, but DNS also.
> How can I use DHCP and at the same time static DNS?

The part that actually rewrites this file is the method script for
svc:/network/service:default, not DHCP itself.

Soon, policy of this sort will be part of NWAM.  You should certainly
contact that project team and make sure that they understand your
needs.

Here are some things you can do now, though:

  - Change the PARAM_REQUEST_LIST in /etc/default/dhcpagent to exclude
    options 6 and 15.  That just changes what the DHCP client
    (politely) requests from the server; the server is still free to
    supply unwanted data.

  - Create your own /etc/dhcp/eventhook script that rewrites your
    /etc/resolv.conf as needed.

-- 
James Carlson, Solaris Networking              <[EMAIL PROTECTED]>
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
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to