Bug#2708: tcpd no longer logs hostnames
Ian Jackson wrote:
> Package: netbase
> Version: 2.01-1
> Ever since I upgraded to netbase 2.01-1 my daemon.log syslog file,
> which is where tcpd puts its `food[pid]: connect from ident@hostname'
> messages, has contained only IP addresses and not hostnames.
> Looking at the logfile shows that the hostnames are shown before the
> ctime on my /usr/sbin/tcpd and only IP addresses after it. (Yes, I
> know that a real dpkg log is required ...)
Hmmm... do you changed your /etc/hosts.{allow,deny} file? I
disabled the hostname lookup quite a long time ago to make it
possible to leave this decision up to the user. By default
netbase installs /etc/hosts.deny with the entry "ALL: PARANOID"
(for security reasons). In order to follow the PARANOID setting
tcpd does hostname lookups. You can get the same behaviour by
adding something like "ALL: I_REALLY_WANT_HOSTNAMES" to either
/etc/hosts.allow or /etc/hosts.deny. This way you can decide
yourself if you want to have hostnames or IP-addresses in your
logfile.
BTW: Being able to use IP-addresses is a feature that you requested
1-2 years ago :-).
Thanks,
Peter
--
Peter Tobias EMail:
Fachhochschule Ostfriesland tobias@et-inf.fho-emden.de
Fachbereich Elektrotechnik und Informatik tobias@debian.org
Constantiaplatz 4, 26723 Emden, Germany
Reply to: