RE: problems with LPD

2003-11-01 Thread David Carter-Hitchin

 But before this I like to try the netgroup option, where can
 I begging to read?.

man yp

David

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: problems with LPD

2003-10-31 Thread MPAREDES

Hi Garance.

Thanks for your answer, I had tried with the IP only and
the name only in the /etc/hosts.lpd and the problem persist,
but when I add the entry in /etc/hosts the printings go fine
no matter what I had in /etc/hosts.lpd (the name or the IP),
so I can assure you that the problem is because LPD don't
resolve the IP to a name via DNS.

From windows I resolve the IP to as_nte.intranet.telmex.com

C:\ping -a -n 1 10.192.2.134

Haciendo ping a as_nte.intranet.telmex.com [10.192.2.134] con 32 bytes de datos:

Respuesta desde 10.192.2.134: bytes=32 tiempo=48ms TDV=58

Estadísticas de ping para 10.192.2.134:
Paquetes: enviados = 4, Recibidos = 4, perdidos = 0 (0% loss),
Tiempos aproximados de recorrido redondo en milisegundos:
mínimo = 37ms, máximo =  48ms, promedio =  40ms

I think that the solution to my dilemma, is modify the source
code of LPD.

But before this I like to try the netgroup option, where can
I begging to read?.

maps

-Mensaje original-
De: Garance A Drosihn [mailto:[EMAIL PROTECTED]
Enviado el: Jueves, 30 de Octubre de 2003 08:08 p.m.
Para: Paredes Sánchez Martín A.; [EMAIL PROTECTED]
Asunto: Re: problems with LPD


At 8:45 PM -0700 10/28/03, [EMAIL PROTECTED] wrote:

I have a printer configured in the BSD, is working fine, now
I need to enable that other systems print in this printer,
to do this I add 2 lines to the file /etc/hosts.lpd

10.192.2.134
as_nte.intranet.telmex.com.

but the remote system can't print, so I run lpd with -c flag
to enable all the connections error via syslog.

In the file /var/log/lpd-errs I have this message repeated

Oct 28 20:25:11 bsdsis lpd[10575]: Host name for remote host
(10.192.2.134) not known (8)

why doesn't print, if the ip is in the file hosts.lpd?

If I run the command host 10.192.2.134, it return me 3
names and one of them is as_nte.intranet.telmex.com

You should only need the real hostname in /etc/hosts.lpd.
You do not need to list the real IP address in addition
to the hostname.

To get the mapping between hosts and IP addresses to work,
you would have to put an entry in /etc/hosts:

10.192.2.134as_nte.intranet.telmex.com

and then put just the line:

as_nte.intranet.telmex.com

in /etc/hosts.lpd

Also, I like to enable the printers (all) in this server
to be accessible to any one in the net 10.

I saw your earlier question on this, and I believe the answer
is that there isn't any good way to do this.  You might be
able to set something up with a netgroup, although that is
not documented very well.

-- 
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: problems with LPD

2003-10-31 Thread Garance A Drosihn
At 8:55 PM -0700 10/31/03, [EMAIL PROTECTED] wrote:
Hi Garance.

Thanks for your answer, ...


I think that the solution to my dilemma, is modify
the source code of LPD.
But before this I like to try the netgroup option,
where can I begin to read?
Well, you can check:
  man hosts.lpd
which will tell you almost nothing.  Now it happens that
the hosts.lpd is actually processed by the same code that
handles hosts.equiv, although that is not documented.  So,
it happens to be true that:
  man hosts.equiv
will tell you some additional hints as to what is available.
However, you will notice that the man page for hosts.equiv
does little more than point you to the source code.  So,
that is not very helpful either.
There is also:
  man netgroup
which will tell you the format of the /etc/netgroup file.  I
should mention that I have never actually used netgroups, so
I am not sure that they will help you in this case.
I have skimmed through all of the above, and my guess is that
your original idea is probably the easiest one to do.  It
should be easier to change the source code in lpr/lpd/lpd.c
to make it behave the way you want it to behave.  Now that
I have read more about netgroups, I expect that they are not
very useful for what you really want to do.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: problems with LPD

2003-10-30 Thread Garance A Drosihn
At 8:45 PM -0700 10/28/03, [EMAIL PROTECTED] wrote:
I have a printer configured in the BSD, is working fine, now
I need to enable that other systems print in this printer,
to do this I add 2 lines to the file /etc/hosts.lpd
10.192.2.134
as_nte.intranet.telmex.com.
but the remote system can't print, so I run lpd with -c flag
to enable all the connections error via syslog.
In the file /var/log/lpd-errs I have this message repeated

Oct 28 20:25:11 bsdsis lpd[10575]: Host name for remote host
(10.192.2.134) not known (8)
why doesn't print, if the ip is in the file hosts.lpd?

If I run the command host 10.192.2.134, it return me 3
names and one of them is as_nte.intranet.telmex.com
You should only need the real hostname in /etc/hosts.lpd.
You do not need to list the real IP address in addition
to the hostname.
To get the mapping between hosts and IP addresses to work,
you would have to put an entry in /etc/hosts:
10.192.2.134	as_nte.intranet.telmex.com

and then put just the line:

as_nte.intranet.telmex.com

in /etc/hosts.lpd

Also, I like to enable the printers (all) in this server
to be accessible to any one in the net 10.
I saw your earlier question on this, and I believe the answer
is that there isn't any good way to do this.  You might be
able to set something up with a netgroup, although that is
not documented very well.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


problems with LPD

2003-10-28 Thread MPAREDES
Hi:

I have a printer configured in the BSD, is working fine, now
I need to enable that other systems print in this printer,
to do this I add 2 lines to the file /etc/hosts.lpd

10.192.2.134
as_nte.intranet.telmex.com.

but the remote system can't print, so I run lpd with -c flag
to enable all the connections error via syslog.

In the file /var/log/lpd-errs I have this message repeated

Oct 28 20:25:11 bsdsis lpd[10575]: Host name for remote host
(10.192.2.134) not known (8)

why doesn't print, if the ip is in the file hosts.lpd?

If I run the command host 10.192.2.134, it return me 3
names and one of them is as_nte.intranet.telmex.com

Also, I like to enable the printers (all) in this server
to be accessible to any one in the net 10.

maps

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]