Date: Sat, 28 Apr 2007 09:59:01 -0700 (PDT) From: L Goodwin <xrayv19@yahoo.com> To: beech@alaskaparadise.com, freebsd-questions@freebsd.org Subject: Re: DHCP client configuration on FreeBSD Message-ID: <39066.55121.qm@web58113.mail.re3.yahoo.com> In-Reply-To: <200704271734.04091.beech@alaskaparadise.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--- Beech Rintoul <beech@alaskaparadise.com> wrote: > On Friday 27 April 2007, L Goodwin said: > > When I ran the DHCP client configuration tool on > > FreeBSD 6.2, it added a new hostname variable to > > /etc/rc.conf below existing the hostname var (it > > did not remove or comment-out the old hostname > > variable). > > The NEW hostname includes the ISP's domain name: > > hostname="dhcppc0.<ISP domain name here>" > > > > This hostname differs from the hostname listed in > > the router's DHCP table "dhcpp0" (no domain name). > > It also shows unique IP addresses and MAC addresses > > for all hosts on the LAN. > > > > I can ping the IP address assigned to the FreeBSD > > system, but ping and net lookup fail when its > > hostname is specified (both with and without the > > domain name). > > > > Questions: > > 1) Why did the hostname get changed (does not > > occur for Windows clients)? > > 2) Why does the hostname in /etc/rc.conf contain > > the DNS domain name? > > FreeBSD uses the FQDN (fully qualified domain name) > as the hostname. > Example: hostname= "yourmachine.yourdomain.com" > > > 3) How do I resolve this problem? > > Unless you provide your own DNS that resolves your > internal network and supersede dhclient with your > domain name, DHCP will use the domain and DNS from > your provider. Your windows boxes point to your > isp's nameservers which have no records of your > server or it's address. Therefore it can't resolve > your machine's hostname. > If you do provide your own internal name service you > will also need to edit /etc/dhclient.config (see man > dhclient.conf), and point your windows boxes to your > DNS instead of your isp's. You can use a fictitious > domain name internally, just make sure that the > domain doesn't actually exist on the net. > You can also use the FreeBSD IP address as a domain > name on your windows boxes to connect. Is there a way to a) make dhclient use hostname without a domain name appended, or b) make dhclient instruct the DHCP server to append the domain name to the hostname? > Running bind requires a fairly steep learning > curve, but there are simple nameservers in the ports > tree that would probably better suit your needs. Are you referring to the built-in command in bsh that lists/alters key bindings for the line editor? I don't understand what bind has to do with any of this. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39066.55121.qm>