[comp.sys.apollo] Does lpd correctly use DNS ??

ianh@bhpmrl.oz.au (Ian Hoyle) (12/19/90)

I am having problems getting lpd to print to a remote machine when I have
DNS services turned on from my workstation. SR10.2 is running on both nodes.

On our DN10000 (zaphod) we have named running. This node acts as the print 
spooler and is running lpd.

On the other node (a 3500 called merlin) I have run nmconfig -h hostent_bind
so that name resolution uses BIND. Also, I have setup resolv.conf as

nameserver 134.18.1.5   <--- actually a VAX
nameserver 134.18.1.1   <--- zaphod
domain bhpmrl.oz.au

This appears to work since I can ping devices from merlin (IP address
134.18.2.2) that exist in the namesservers tables and that aren't present in 
the local /etc/hosts file. The relevant printer in the /etc/printcap entry 
looks like

lsr-mbg|Apple laserwriter IINTX (PostScript) - rb1 ground:\
        :lp=:\
        :rm=zaphod:\
        :rp=lsr-mbg:\
 etc etc

Here the remote machine is zaphod. Printing *did* work until I changed over to
try and use DNS via resolv.conf.

If I now print something and then look at the queue I get the following

% lpq
/usr/lib/lpd: : Host name for your address (134.18.2.2) unknown

merlin: waiting for queue to be enabled on zaphod
Rank   Owner      Job  Files                                 Total Size
1st    root       7    (standard input)                      3099 bytes
%
%
% hostname
merlin

lpd doesn't appear to understand who merlin is ?? However if I use nslookup
(from a SGI machine since nslookup isn't present on my Apollos) merlin
looks ok

ianh@morrigan-> nslookup - zaphod
Default Server:  zaphod.bhpmrl.oz.au
Address:  134.18.1.1

> set domain=bhpmrl.oz.au
> merlin
Server:  zaphod.bhpmrl.oz.au
Address:  134.18.1.1

Name:    merlin.bhpmrl.oz.au
Address:  134.18.2.2

Does anyone have any suggestions to point me in the right direction to cure
this ??

	ian
--
                Ian Hoyle
     /\/\       Image Processing & Data Analysis Group
    / / /\      BHP Research
   / / /  \     245 Wellington Rd, Mulgrave, 3170
  / / / /\ \    AUSTRALIA
  \ \/ / / /
   \  / / /     Phone   :  +61-3-560-7066
    \/\/\/      FAX     :  +61-3-561-6709
                E-mail  :  ianh@bhpmrl.oz.au

bergstr@HI-CSC.HONEYWELL.COM (-Darryl Bergstrom) (12/21/90)

---> I am having problems getting lpd to print to a remote machine when
I ---> have DNS services turned on from my workstation. SR10.2 is
running ---> on both nodes.

---> ianh@morrigan-> nslookup - zaphod
---> Default Server:  zaphod.bhpmrl.oz.au
---> Address:  134.18.1.1

---> > set domain=bhpmrl.oz.au
---> > merlin
---> Server:  zaphod.bhpmrl.oz.au
---> Address:  134.18.1.1

---> Name:    merlin.bhpmrl.oz.au
---> Address:  134.18.2.2

Your problem could be that lpd is using DNS and it is returning the full 
domain name for merlin.  I had a problem exactly like this since I am
changing our domain name.  The file /etc/hosts.equiv (or hosts.lpd
whichever you use) didnot have the full domain name in the file.  so
where we had merlin in our file lpd received a name of
merlin.ssdc.honeywell.com even though
a hostname on merlin returned merlin.

hope it helps....

-darryl 



	ian