# -t: all TCP
# -u: all UDP
# -l socket only
# -p: process id & name
# -n: 不进行dns轮询,仅显示ip
netstat -ntulp | grep 53
![](https://cdn.1024.ee/wp-content/uploads/2020/04/mini_-2020-04-29-at-15.24.33-1024x76.png)
或者通过
lsof -i:53
![](https://cdn.1024.ee/wp-content/uploads/2020/04/mini_-2020-04-29-at-15.25.19-1024x132.png)
然后就可以再用ps 来寻找相应的pid或者command了
# -t: all TCP
# -u: all UDP
# -l socket only
# -p: process id & name
# -n: 不进行dns轮询,仅显示ip
netstat -ntulp | grep 53
或者通过
lsof -i:53
然后就可以再用ps 来寻找相应的pid或者command了