[W] [service.go:82] login to server failed: dial tcp:lookup xxxx.com on [::1]:53: read udp [::1]:33725->[::1]:53: read: connection refused
启动frp客户端时报错:
[centos@localhost frp_0.27.0_linux_amd64]$ sudo ./frpc -c frpc.ini
2020/04/17 16:30:52 [W] [service.go:82] login to server failed: dial tcp: lookup xxxx.com on [::1]:53: read udp [::1]:33725->[::1]:53: read: connection refused
dial tcp: lookup frp.ai.com on [::1]:53: read udp [::1]:33725->[::1]:53: read: connection refused
解决:将frpc.ini文件中的server_addr的域名,更改为实际的ip地址。
ubuntu@center-kitchen:/app/frp_0.27.0_linux_amd64$ cat frpc.ini
[common]
server_addr = xxxx.com #将域名更改为IP地址
server_port = xxxx
privilege_token = xxxxx
结束。