Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!rice!rice!sun-spots-request From: schoch@trident.arc.nasa.gov (Steve Schoch) Newsgroups: comp.sys.sun Subject: syslog.conf and `LOGHOST' Keywords: Miscellaneous Message-ID: <1990Aug14.232431.16449@rice.edu> Date: 13 Aug 90 16:57:38 GMT Sender: sun-spots-request@rice.edu Organization: Sun-Spots Lines: 15 Approved: Sun-Spots@rice.edu Originator: spots@titan.rice.edu X-Sun-Spots-Digest: Volume 9, Issue 304, message 10 In the default syslog.conf file, there are several m4 ifdef statements that say "ifdef(`LOGHOST', file, @loghost)". Apparently, `LOGHOST' is an m4 variable that is supposed to get defined if syslogd is running on the loghost (server) and not defined if syslogd is running on a client. Looking through /usr/etc/syslogd with strings(1), I find the following string: "define(LOGHOST, 1)". I assume syslogd will pass this string along with syslog.conf to m4 if the current host is the file server. My question is: "How does syslogd find out whether the current host is the loghost or not?" It doesn't seem to work on our system. Does it use gethostbyname()? I have modified libc.so to use the nameserver instead of the host table. Steve