1 The script reads stdin and replaces all IP addresses with names before
\r
2 outputting it again. IPs from private networks are reverse looked up
\r
3 via dns. Other IP adresses are searched for in the dnsmasq query log.
\r
4 This gives names (CNAMEs if I understand DNS correctly) that are closer
\r
5 to the name the client originally asked for then the names obtained by
\r
6 reverse lookup. Just run
\r
8 netstat -n -4 | ./reverse_replace.sh
\r
10 to see what it does. It needs
\r
13 log-facility=/var/log/dnsmasq.log
\r
15 in the dnsmasq configuration.
\r
17 The script runs on debian (with ash installed) and on busybox.
\r