New version of contrib/reverse-dns

This commit is contained in:
Simon Kelley
2015-03-04 20:32:26 +00:00
parent 9003b50b13
commit 4c960fa90a
3 changed files with 125 additions and 57 deletions

View File

@@ -1,18 +1,18 @@
Hi.
The script reads stdin and replaces all IP addresses with names before
outputting it again. IPs from private networks are reverse looked up
via dns. Other IP adresses are searched for in the dnsmasq query log.
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
reverse lookup. Just run
To translate my routers netstat-nat output into names that actually talk
to me I have started writing to simple shell scripts. They require
netstat -n -4 | ./reverse_replace.sh
to see what it does. It needs
log-queries
log-facility=/var/log/dnsmasq.log
to be set. With
netstat-nat -n -4 | reverse_replace.sh
I get retranslated output.
Sincerely,
Joachim
in the dnsmasq configuration.
The script runs on debian (with ash installed) and on busybox.