0%

DNS域名

网络相关命令

查看链路

1
traceroute -n www.baidu.com

域名解析

1
nslookup www.baidu.com

查看路由表

1
2
3
4
5
# linux
route -n

# mac
netstat -nr

探测某个IP开放的端口号

1
2
3
4
5
6
7
8
9
10
11
12
13
14
$ nmap 192.168.36.42
Starting Nmap 7.91 ( https://nmap.org ) at 2024-05-11 16:35 CST
Nmap scan report for 192.168.36.42
Host is up (0.00049s latency).
Not shown: 994 closed ports
PORT STATE SERVICE
80/tcp open http
3306/tcp open mysql
5000/tcp open upnp
7000/tcp open afs3-fileserver
9001/tcp open tor-orport
9002/tcp open dynamid

Nmap done: 1 IP address (1 host up) scanned in 16.73 seconds