[syslog-ng]resolve IP addresses

Balazs Scheidler syslog-ng@lists.balabit.hu
Fri, 27 Jun 2003 14:52:08 +0200


On Fri, Jun 27, 2003 at 12:32:45PM +0400, Madhvi Gokool wrote:
> 
> 
> > Hello
> > Can syslog-ng resolve IP addresses using the /etc/hosts file? We do not
> have
> > an internal dns at the moment.  Currently , the filenames that are created
> > are the IP addresses of the routers that are pushing their syslog onto the
> > syslog server.

syslog-ng uses gethostbyaddr() to resolve names when use_dns() is enabled.
if your nsswitch.conf does not refer to the dns, then only /etc/hosts will
be used:

hosts:          files dns

(remove the dns tag here, and your resolver will not use DNS)

-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1