> (rc.firewall uses this to get network info:
>         onet=`ifconfig xl0 | grep "inet " | awk '{print $6}'`
>         oip=`ifconfig xl0 | grep "inet " | awk '{print $2}'` Meaning, 
> rc.firewall would also have to be re-ran if the IP is new).
> [also to make things more complicated, I think I need a rule in 
> rc.firewallto allow for DHCP clients to go out?  It gets blocked on 
> external interface when firewall comes up??]

Looks like you're using ipfw, in which case this works for me:
# /etc/rc.d/ipfw restart

> Also how do I override /etc/resolv.conf?  DHCP client configures it I 
> think and sets it up to point to my ISP DNS servers (which suck) and 
> would like to give it mine instead of there, but it keeps getting over 
> written on startup when it gets a DHCP lease?

In dhclient.conf, add your own DNS servers, plus your ISP's as backup:

Interface "xl0" {
prepend domain-name-servers xxx.xxx.xxx.xxx, yyy.yyy.yyy.yyy;
request subnet-mask, broadcast-address, routers, domain-name-servers;
}


Get new ip:
# dhclient xl0


Hope this helps

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to