File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / dnsmasq / contrib / reverse-dns / README
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Mar 17 00:56:46 2021 UTC (4 years ago) by misho
Branches: dnsmasq, MAIN
CVS tags: v8_2p1, v2_84, HEAD
dnsmasq 2.84

    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 addresses 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 dash installed) and on busybox.
   18: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>