Annotation of embedaddon/dnsmasq/contrib/reverse-dns/README, revision 1.1.1.1
1.1 misho 1: The script reads stdin and replaces all IP addresses with names before
2: outputting it again. IPs from private networks are reverse looked up
3: via dns. Other IP adresses are searched for in the dnsmasq query log.
4: This gives names (CNAMEs if I understand DNS correctly) that are closer
5: to the name the client originally asked for then the names obtained by
6: reverse lookup. Just run
7:
8: netstat -n -4 | ./reverse_replace.sh
9:
10: to see what it does. It needs
11:
12: log-queries
13: log-facility=/var/log/dnsmasq.log
14:
15: in the dnsmasq configuration.
16:
17: The script runs on debian (with ash installed) and on busybox.
18:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>