This seems much simpler...
[icmp-dn.git] / README
CommitLineData
388db563
DC
1ICMP host name utilities
2
3Since the Linux kernel does not support the ICMP host name facilities as
4described in RFC 1788, I wrote a simple implementation in user-space.
5It comprises three parts:
6
7 * icmpdnd – The ICMP Domain Name daemon, which listens to ICMP
8 domain name requests and replies to them.
9
10 * idnlookup – A user utility to query a host for its host name over
11 ICMP. Like ping and all other utilities that use ICMP, it needs to
12 be installed SUID root.
13
14 * libnss_icmp.so.2 – A glibc NSS module, which uses idnlookup to
15 perform queries for the gethostbyaddr function.
16
17General information
18
19The NSS module caches all requests (including failures) and honors the
20TTL value sent by the responding host. It uses a configuration file called
21/etc/nss-icmp.conf, which controls different aspects of its operation:
22
23 * timeout – Sets the timeout in milliseconds for ICMP host name
24 queries, by passing the -t option to idnlookup.
25 * nocache – Disables the cache.
26 * ttlnotfound – Sets the TTL for not-found cache entries is
27 seconds. The default is 5 minutes.
28
29Both icmpdnd and idnlookup need to run as root, due to the fact that
30they use ICMP. Thus, idnlookup needs be installed SUID root.
31