Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Jan 2001 19:52:14 -0500
From:      "Will Mitayai Keeso Rowe" <mit@mitayai.net>
To:        "Jon Hamilton" <hamilton@pobox.com>, "Steve Price" <sprice@hiwaay.net>
Cc:        "Dennis Jun" <dennisjun@home.com>, <freebsd-questions@FreeBSD.ORG>, <chat@gtabug.org>
Subject:   RE: gtabug - Re: DNS caching, DHCP, /etc/resolv.conf 
Message-ID:  <NEBBIEGPMLMKDBMMICFNAENGEAAA.mit@mitayai.net>
In-Reply-To: <20010115002847.87D6C177@woodstock.monkey.net>

next in thread | previous in thread | raw e-mail | index | archive | help
yeah, i use the same for Roger@Home in Toronto, Canada...

we need to send the "client identifier" code (hostname) they give us to
receive an IP

interface "ed0" {
        supersede domain-name "home.domain.com";
        prepend domain-name-servers 127.0.0.1;
        supersede host-name "gateway";
        send dhcp-client-identifier "crXXXXXX-a";
}

:-----Original Message-----
:From: owner-chat@gtabug.org [mailto:owner-chat@gtabug.org]On Behalf Of
:Jon Hamilton
:Sent: January 14, 2001 19:29 PM
:To: Steve Price
:Cc: Dennis Jun; freebsd-questions@FreeBSD.ORG; chat@gtabug.org
:Subject: gtabug - Re: DNS caching, DHCP, /etc/resolv.conf
:
:
:
:In message <20010114175337.E65118@bonsai.knology.net>, Steve Price wrote:
:} On Sun, Jan 14, 2001 at 06:41:22PM -0500, Dennis Jun wrote:
:} # Hello all!
:} #
:} # I recently setup a DNS caching server with named. I followed the
:} # instructions in Lehey's "The Complete FreeBSD." However I'm on
:@home and I
:} # my ip settings via dhcp. Thus it resets my /etc/resolv.conf
:all the time,
:} # that is, it removes my first line of nameserver 127.0.0.1
:I'm wondering
:} # how can prevert/remedy this? I guess most people would suggest a simple
:} # script cronned, but is there another solution?
:}
:} The following manpage should have all the info you need.  Essentially
:} you'll have to teach this script to add 127.0.0.1 back to resolv.conf
:} when your box renegotiates its IP address.
:}
:}         man 8 dhclient-script
:
:That's doing it the hard way.
:
:Put something similar to the following in /etc/dhclient.conf (adjust the
:interface name to whatever is appropriate for your system):
:
:       interface "dc0" {
:           prepend domain-name-servers 127.0.0.1;
:       }
:
:You can prepend some stuff to the domain name search order (and lots of
:other stuff, if you need to); see the man page for dhclient.conf for
:details.
:
:--
:   Jon Hamilton
:   hamilton@pobox.com
:
:
:To subscribe or unsubscribe, send mail to majordomo@gtabug.org
:with the text
:"subscribe chat" or "unsubscribe chat" in the body.
:



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NEBBIEGPMLMKDBMMICFNAENGEAAA.mit>