version 1.1.1.1, 2016/11/02 09:57:01
|
version 1.1.1.2, 2021/03/17 00:56:46
|
Line 1
|
Line 1
|
#!/bin/ash | #!/bin/dash |
# $Id$ |
# $Id$ |
# |
# |
# Usage e.g.: netstat -n -4 | reverse_replace.sh |
# Usage e.g.: netstat -n -4 | reverse_replace.sh |
# Parses stdin for IP4 addresses and replaces them |
# Parses stdin for IP4 addresses and replaces them |
# with names retrieved by parsing the dnsmasq log. |
# with names retrieved by parsing the dnsmasq log. |
# This currently only gives CNAMEs. But these |
# This currently only gives CNAMEs. But these |
# usually tell ou more than the mones from reverse | # usually tell you more than the ones from reverse |
# lookups. |
# lookups. |
# |
# |
# This has been tested on debian and asuswrt. Plese | # This has been tested on debian and asuswrt. Please |
# report successful tests on other platforms. |
# report successful tests on other platforms. |
# |
# |
# Author: Joachim Zobel <jz-2014@heute-morgen.de> |
# Author: Joachim Zobel <jz-2014@heute-morgen.de> |