John De Boskey wrote:
> Hi,
> 
>    When logging into a current 5.0 system via ssh, I see the following
> written to the system console (the 'xxx's are my whiteout):
> 
> ... kernel: Connection attempt to UDP xxx.58.184.35:53 from xxx.58.184.35:492
    53
> ... kernel: Connection attempt to UDP xxx.58.184.35:53 from xxx.58.184.35:492
    54
> ... kernel: Connection attempt to UDP xxx.58.184.35:53 from xxx.58.184.35:492
    55
> ... kernel: Connection attempt to UDP xxx.58.184.35:53 from xxx.58.184.35:492
    56
> 
>    Basically, it looks like it is trying to talk to a DNS on the
> localhost. However, I do not have DNS running. I do not have localhost listed
> in /etc/resolv.conf.  /etc/nsswitch.conf lists 'hosts: files dns' and putting
> my ssh origination id in /etc/hosts has no effect.
> 
>    It appears to be related to code in canohost.c. Before I start debugging,
> I thought I'd ask if anyone knew if there is a reason for this behaviour,
> or where it might be coming from (specifically).

Are you using privsep?  If so, I think this is expected.  The unpriviliged
side runs in a chroot under /var/empty.  This means, that it cannot see any
/etc/nsswitch.conf and cannot see any /etc/resolv.conf or /etc/hosts.

And the resolver client library defaults querying on the first interface,
and in your case it used localhost.

Cheers,
-Peter
--
Peter Wemm - [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
"All of this is for nothing if we don't go to the stars" - JMS/B5


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to