Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Apr 2007 11:15:57 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        Amarendra Godbole <amarendra.godbole@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: lpd refuses to print from a machine with a DHCP assigned IP address...
Message-ID:  <20070407111328.U68971@wonkity.com>
In-Reply-To: <294439d20704052316s65cca52bk71307736766b3e8f@mail.gmail.com>
References:  <294439d20704052316s65cca52bk71307736766b3e8f@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 6 Apr 2007, Amarendra Godbole wrote:

> My FreeBSD box picks up its IP through DHCP. Now I configured a
> printer on this machine, using apsfilter. So far so good. Now when I
> try to print anything, I see the following error in the lpd-errs file:
> ------------
> Apr  6 11:00:03 zimbu lpd[1501]: unable to get official name for local
> machine zimbu.vxindia.veritas.com: hostname nor servname provided, or
> not known
> Apr  6 11:00:03 zimbu lpd[1501]: lp: no line printer device or host name
> ------------
>
> Now, if I add an entry for zimbu in /etc/hosts (with the currently
> assigned IP address), printing works fine.

This is not really an lpd question, but a DHCP and DNS question.

Depending on your DHCP server, the "send host-name" option of 
dhclient.conf might help.

-Warren Block * Rapid City, South Dakota USA



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