# -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了
# -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了