Dan, James Thank you for such fast report. I have removed both ",6" and ",15" from /etc/default/dhcpagent and this is doesn't solve the problem. So i really need to write some kind of script which will hack my resolv.conf? If so, can you guide me?
Thanks -- Oleg James Carlson wrote: > 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. > > _______________________________________________ networking-discuss mailing list [email protected]
