[GH-ISSUE #3293] server_addr 一旦使用域名就报错 #2639

Closed
opened 2026-05-05 13:42:12 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @82kg on GitHub (Feb 7, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3293

Bug Description

server_addr 一旦使用域名就报错。
提示 [service.go:132] login to server failed: dial tcp: lookup nas.tohot.top: i/o timeout

尝试在frpc的配置文件中添加 dns_server=8.8.8.8 没有效果。
查看了 /etc/resolv.conf 并没问题。

只有写上IP 才正常连接。 但是0.27.0旧版本没这个问题

frpc Version

0.45.0

frps Version

0.46.1

System Architecture

linux/amd64 openwrt & mips/mtk pavanda

Configurations

[common]
server_addr = nas.tohot.top
server_port = 7000
token = 12345
dns_server=8.8.8.8

Logs

[service.go:132] login to server failed: dial tcp: lookup nas.tohot.top: i/o timeout

Steps to reproduce

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @82kg on GitHub (Feb 7, 2023). Original GitHub issue: https://github.com/fatedier/frp/issues/3293 ### Bug Description server_addr 一旦使用域名就报错。 提示 [service.go:132] login to server failed: dial tcp: lookup nas.tohot.top: i/o timeout 尝试在frpc的配置文件中添加 dns_server=8.8.8.8 没有效果。 查看了 /etc/resolv.conf 并没问题。 只有写上IP 才正常连接。 但是0.27.0旧版本没这个问题 ### frpc Version 0.45.0 ### frps Version 0.46.1 ### System Architecture linux/amd64 openwrt & mips/mtk pavanda ### Configurations [common] server_addr = nas.tohot.top server_port = 7000 token = 12345 dns_server=8.8.8.8 ### Logs [service.go:132] login to server failed: dial tcp: lookup nas.tohot.top: i/o timeout ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [X] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [X] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@82kg commented on GitHub (Feb 7, 2023):

测试frpc 使用0.46.1 不会报错

<!-- gh-comment-id:1420342334 --> @82kg commented on GitHub (Feb 7, 2023): 测试frpc 使用0.46.1 不会报错
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#2639
No description provided.