Oleg Vazhnev writes:
> 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.
Not too surprising.
> So i really need to write some kind of script which will hack my
> resolv.conf?
> If so, can you guide me?
Sure; here's a possible example:
#!/bin/sh
if [ "$2" = BOUND -o "$2" = EXTEND ]; then
cat >/etc/resolv.conf <<EOF
domain yourdomain.com
nameserver 10.0.0.1
EOF
fi
Just put that in a file called /etc/dhcp/eventhook (and owned by
root), and make it executable ("chmod 755 /etc/dhcp/eventhook").
--
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]