DHCP Client Script Examples

From Exterior Memory
Revision as of 21:22, 31 August 2014 by MacFreek (Talk | contribs) (Created page with "A DHCP client overrides <tt>/etc/resolv.conf</tt>. If this is undesired, this is the solution for FreeBSD: Create a file called <tt>/etc/dhclient-enter-hooks<tt> and add this...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

A DHCP client overrides /etc/resolv.conf. If this is undesired, this is the solution for FreeBSD:

Create a file called /etc/dhclient-enter-hooks<tt> and add this:

add_new_resolv_conf() {
    # We don't want /etc/resolv.conf changed
    # So this is an empty function
    return 0
}