shadowsocks / ChinaDNS

Protect yourself against DNS poisoning in China.
GNU General Public License v3.0
3.6k stars 1.29k forks source link

问下这个c:554 bind消息是什么意思 #131

Open jaoyina opened 7 years ago

jaoyina commented 7 years ago

按照步骤,先下载在 ./configure && make src/chinadns -m -c chnroute.txt

然后就出现这个消息,不过那个txt倒是出来了,有影响吗?

Thu Mar 16 10:51:39 2017 chinadns.c:554 bind: Address already in use Thu Mar 16 10:51:39 2017 Can't bind address 0.0.0.0:53

sanjusss commented 7 years ago

我这里是ubuntu自带dnsmasq服务,占用了53端口,禁了就好。 你可以查找占用53端口的服务,关了它。

wow-meow-ai commented 6 years ago

check port 53

sudo lsof -nP -iTCP:53 | grep LISTEN

which shows this port is occupied by dnsmasq service. So we disable it:

sudo sed -i 's/^dns=dnsmasq/#&/' /etc/NetworkManager/NetworkManager.conf
sudo service network-manager restart
sudo service networking restart
sudo killall dnsmasq