From owner-freebsd-questions@FreeBSD.ORG Fri Apr 6 06:16:12 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 59A2016A40F for ; Fri, 6 Apr 2007 06:16:12 +0000 (UTC) (envelope-from amarendra.godbole@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.249]) by mx1.freebsd.org (Postfix) with ESMTP id 090D513C46E for ; Fri, 6 Apr 2007 06:16:11 +0000 (UTC) (envelope-from amarendra.godbole@gmail.com) Received: by an-out-0708.google.com with SMTP id c24so951160ana for ; Thu, 05 Apr 2007 23:16:11 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=btH13bwfuhc0vTEsRQgCfRXaxQbRgdCcJNaHNTf3cIGM/kbKumhr9Kg2hWxnWYHyWQ/NiKdjsMI1hDcfRvgUldAMrMUuSVY/qS4tL9SpsFe1PeKZjddpuEMYibRaWQAVJeT4vKWAerV3UABDgUsHTZZkY/pZssafEuBOjzlPssw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=ccUdUglnHfY4bRubeCxmUWS6ZgzLNVqGobZxbHXdRcRUBU3btF51KZDxqYQUM5sPP5MXCZtkZ4QU+FNPhbeS9M6p9Y3sALUS6bZpGBddkagv6Rey63C5mImvphnr7TJBR3JJRh+DMqMFfgQyVA420LRodYnMzbtdmRur8xAFaX4= Received: by 10.100.177.16 with SMTP id z16mr1872308ane.1175840170847; Thu, 05 Apr 2007 23:16:10 -0700 (PDT) Received: by 10.100.119.14 with HTTP; Thu, 5 Apr 2007 23:16:10 -0700 (PDT) Message-ID: <294439d20704052316s65cca52bk71307736766b3e8f@mail.gmail.com> Date: Fri, 6 Apr 2007 11:46:10 +0530 From: "Amarendra Godbole" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: 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 06:16:12 -0000 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