version 1.1, 2016/11/02 09:57:01
|
version 1.1.1.2, 2021/03/17 00:56:46
|
Line 1
|
Line 1
|
The script reads stdin and replaces all IP addresses with names before
|
The script reads stdin and replaces all IP addresses with names before
|
outputting it again. IPs from private networks are reverse looked up
|
outputting it again. IPs from private networks are reverse looked up
|
via dns. Other IP adresses are searched for in the dnsmasq query log.
| via dns. Other IP addresses are searched for in the dnsmasq query log.
|
This gives names (CNAMEs if I understand DNS correctly) that are closer
|
This gives names (CNAMEs if I understand DNS correctly) that are closer
|
to the name the client originally asked for then the names obtained by
|
to the name the client originally asked for then the names obtained by
|
reverse lookup. Just run
|
reverse lookup. Just run
|
Line 14 log-facility=/var/log/dnsmasq.log
|
Line 14 log-facility=/var/log/dnsmasq.log
|
|
|
in the dnsmasq configuration.
|
in the dnsmasq configuration.
|
|
|
The script runs on debian (with ash installed) and on busybox.
| The script runs on debian (with dash installed) and on busybox.
|
|
|