getent hosts google.com
nc -vz 127.0.0.1 8080
iptables -F -t nat
SMTP
cat /etc/resolv.conf netstat -laputn nslookup debian.com # better than ping
route -n
dig -t txt example.com
host
whois
$ host www.facebook.com
www.facebook.com is an alias for star.c10r.facebook.com.
star.c10r.facebook.com has address 31.13.64.1
star.c10r.facebook.com has IPv6 address 2a03:2880:10:8f01:face:b00c::9
star.c10r.facebook.com mail is handled by 10 msgin.t.facebook.com.
$ whois -h whois.radb.net 31.13.64.1
route: 31.13.64.0/24
descr: Facebook, Inc.
origin: AS32934
mnt-by: MAINT-AS32934
changed: jj@fb.com 20111025
source: RADB
$ whois -h whois.radb.net '!gAS32934' | tr " " "\n" | sort -n -t . -k 1,1 -k 2,2 -k 3,3 -k 4,4
A939
C
31.13.24.0/21
31.13.64.0/18
...
watch -n1 iwconfig
ping somehostname.com -4 iptables -A INPUT -s IP-ADDRESS -j DROP iptables -A INPUT -s 65.55.44.100 -j DROP
I’ve found for Firefox that quitting and restarting works. The relevant settings in about:config are network.dnsCacheEntries and network.dnsCacheExpiration, which can be set to 0 in order to disable caching. Then delete cache in configs.
nmap -sP 192.168.2.1/24
nmap -sn 192.168.2.1/24
# oter protocol
sudo nmap -sP -PS22,3389 192.168.2.1/24
#custom TCP SYN scansudo nmap -sP -PU161 192.168.2.1/24
#custom UDP scannmap -A -T4 localhost
arp -vn
# resolves hostnames after having nmapped themarp -a -n
This lists all hosts which responded to an ARP query, even the ones which filter ICMP.sudo apt install openssh-server
sudo service ssh start
/etc/init.d/ssh start
ssh user@192.168.0.1
ip route | grep default
: get router ip