lpd refuses to print from a machine with a DHCP assigned
derek at computinginnovations.com
Fri Apr 6 14:53:04 UTC 2007
At 01:16 AM 4/6/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: unable to get official name for local
>machine zimbu.vxindia.veritas.com: hostname nor servname provided, or
>Apr 6 11:00:03 zimbu lpd: 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. My printcap is:
># - don't delete start label for apsfilter printer1
># - no other printer defines between BEGIN and END LABEL
># APS1_END - don't delete this
>sym6fp1.vxindia.veritas.com is the printer host (actually the printer
>itself, not an host really).
>Hence, my question is: Is there some tweak either in printcap, or
>somewhere else that will tell lpd that my IP address is DHCP assigned?
>Or how do I get printing enabled, without adding such an entry in
>/etc/hosts.conf? Any help to fix this issue will be appreciated.
>Thanks in advance!
You don't say if your DHCP IP is a private LAN IP or a public IP.
If the IP is public and you don't require direct access to this IP from the
internet, put a router in place between your modem and the server and give
your server a static private IP.
If you do need a public IP on your server, ask your provider for a static
IP instead of a DHCP one.
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.
More information about the freebsd-questions