From owner-freebsd-questions@FreeBSD.ORG Fri Apr 6 14:53:04 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6A49116A403 for ; Fri, 6 Apr 2007 14:53:04 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from betty.computinginnovations.com (dsl081-227-250.chi1.dsl.speakeasy.net [64.81.227.250]) by mx1.freebsd.org (Postfix) with ESMTP id 058EB13C455 for ; Fri, 6 Apr 2007 14:53:01 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from p28.computinginnovations.com (dhcp-10-20-30-100.computinginnovations.com [10.20.30.100]) (authenticated bits=0) by betty.computinginnovations.com (8.13.8/8.12.11) with ESMTP id l36EqMid029384; Fri, 6 Apr 2007 09:52:23 -0500 (CDT) Message-Id: <6.0.0.22.2.20070406094809.024dc848@mail.computinginnovations.com> X-Sender: derek@mail.computinginnovations.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Fri, 06 Apr 2007 09:51:59 -0500 To: "Amarendra Godbole" , freebsd-questions@freebsd.org From: Derek Ragona In-Reply-To: <294439d20704052316s65cca52bk71307736766b3e8f@mail.gmail.co m> References: <294439d20704052316s65cca52bk71307736766b3e8f@mail.gmail.com> Mime-Version: 1.0 X-ComputingInnovations-MailScanner-Information: Please contact the ISP for more information X-ComputingInnovations-MailScanner: Found to be clean X-ComputingInnovations-MailScanner-From: derek@computinginnovations.com X-Spam-Status: No Content-Type: text/plain; charset="us-ascii"; format=flowed X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: lpd refuses to print from a machine with a DHCP assigned IP address... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Apr 2007 14:53:04 -0000 At 01:16 AM 4/6/2007, Amarendra Godbole wrote: >Hi, > >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. My printcap is: > >------------ ># APS1_BEGIN:printer1 ># - don't delete start label for apsfilter printer1 ># - no other printer defines between BEGIN and END LABEL >lp|sym6fp1|PSgs;r=300x300;q=medium;c=full;p=a4;m=raw:\ > :lp=:\ > :rm=sym6fp1.vxindia.veritas.com:\ > :rp=sym6fp1:\ > :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\ > :sd=/var/spool/lpd/sym6fp1:\ > :lf=/var/spool/lpd/sym6fp1/log:\ > :af=/var/spool/lpd/sym6fp1/acct:\ > :mx#0:\ > :sh: ># 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! > >Best, >Amarendra 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. -Derek -- 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.