mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
New version of contrib/reverse-dns
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user