Skip to content

fstiewitz/libnss_log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libnss_log

A NSS-Library which logs all hosts requests to /tmp/nss-log-UID.log.

Usage

  1. Install libnss_log
  2. Add log to the hosts line in /etc/nsswitch.conf.

(Usually) the line should look like this:

hosts: files log ...

Example log output:

gethostbyname wpad
gethostbyname wpad
gethostbyname github.com
gethostbyname github.com
gethostbyname github.githubassets.com
gethostbyname github.githubassets.com
gethostbyname avatars1.githubusercontent.com
gethostbyname avatars1.githubusercontent.com
gethostbyname avatars2.githubusercontent.com
gethostbyname avatars2.githubusercontent.com
gethostbyname live.github.com
gethostbyname live.github.com
gethostbyname live.github.com
gethostbyname live.github.com
gethostbyname avatars0.githubusercontent.com
gethostbyname avatars0.githubusercontent.com

wpad is a name used by browsers to detect proxy settings (the more you know!).

Installation

Requires cmake.

mkdir build
cd build
cmake ..
make
sudo make install

About

Logging NSS hosts requests

Resources

License

Stars

Watchers

Forks

Packages

No packages published