Skip to content

Latest commit

 

History

History
113 lines (60 loc) · 2.47 KB

nslookup_statistics.md

File metadata and controls

113 lines (60 loc) · 2.47 KB
layout title tags
manual
nslookup - Statistics of command combinations using pipe
statistic

Before

The commands before nslookup: Pipe the result of the given command to nslookup.

Command percentage
w 25%
name 25%
hostname 25%
host 25%

After

The commands after nslookup: Pipe the result of nslookup to the given command.

Command Percentage
grep 31%
dd 12%
ss 12%
sed 12%
name 12%
tail 6%
ip 6%
echo 6%

Related Scenarios

Below are the scenarios for all command combinations above.

The description in the table is referenced from and can be used to search the one-line-command or the scripts in the website of CommandLineFu.

Pipe w to nslookup

  • change your PS1 to look better :)

Pipe name to nslookup

  • change your PS1 to look better :)

Pipe hostname to nslookup

  • change your PS1 to look better :)

Pipe host to nslookup

  • change your PS1 to look better :)

Pipe nslookup to grep

  • change your PS1 to look better :)
  • get all Google ipv4 subnets for a iptables firewall for example
  • get all Google ipv4 subnets for a iptables firewall for example
  • add random color and external ip address to prompt (PS1)
  • Command to resolve name from Ip address, passing only the last field after seq (C Class for example)

Pipe nslookup to dd

  • change your PS1 to look better :)
  • add random color and external ip address to prompt (PS1)

Pipe nslookup to ss

  • change your PS1 to look better :)
  • add random color and external ip address to prompt (PS1)

Pipe nslookup to sed

  • Get fully qualified domain names (FQDNs) for IP address with failure and multiple detection
  • Get the ip registered to a domain on OpenWRT

Pipe nslookup to name

  • Get fully qualified domain names (FQDNs) for IP address with failure and multiple detection
  • Command to resolve name from Ip address, passing only the last field after seq (C Class for example)

Pipe nslookup to tail

  • Get IP address from domain

Pipe nslookup to ip

  • get all Google ipv4 subnets for a iptables firewall for example

Pipe nslookup to echo

  • Get fully qualified domain names (FQDNs) for IP address with failure and multiple detection