[GH-ISSUE #3931] 服务器必须使用IPV4地址吗,怎么才能使用二级域名做为服务器地址呢? #3119

Closed
opened 2026-05-05 14:01:10 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @a7858250 on GitHub (Jan 12, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/3931

Describe the feature request

服务器必须使用IPV4地址吗,怎么才能使用二级域名做为服务器地址呢?
因为我们的网络基本上很少有固定的IPV4公网地址,都是动态的IPV4地址,每次重启ADSL后就会获得一个新的IPV4地址,如果可以用二级域名作为服务器地址的话就好很多了,

在openwrt中的frp客户端中
当我用二级域名作为服务器地址的时候,控制台上就会显示客户端离线

Describe alternatives you've considered

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @a7858250 on GitHub (Jan 12, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/3931 ### Describe the feature request 服务器必须使用IPV4地址吗,怎么才能使用二级域名做为服务器地址呢? 因为我们的网络基本上很少有固定的IPV4公网地址,都是动态的IPV4地址,每次重启ADSL后就会获得一个新的IPV4地址,如果可以用二级域名作为服务器地址的话就好很多了, 在openwrt中的frp客户端中 当我用二级域名作为服务器地址的时候,控制台上就会显示客户端离线 ### Describe alternatives you've considered _No response_ ### Affected area - [ ] Docs - [ ] Installation - [X] Performance and Scalability - [ ] Security - [X] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 14:01:10 -06:00
Author
Owner

@superzjg commented on GitHub (Jan 13, 2024):

域名正确解析后使用

<!-- gh-comment-id:1890233101 --> @superzjg commented on GitHub (Jan 13, 2024): 域名正确解析后使用
Author
Owner

@a7858250 commented on GitHub (Jan 13, 2024):

2024/01/13 00:00:59 [W] [service.go:134] login to server failed: dial tcp: lookup frps.worktool.com on [::1]:53: server misbehaving
域名解析是正确的 因为我用域名访问仪表盘是没问题了,只是仪表盘中的tcp协议下 容器是离线。上面是openwrt中的frp内网穿透日志
如果将域名更换为IP的话就可以使用,但是如果用域名的就就是不行的

<!-- gh-comment-id:1890262086 --> @a7858250 commented on GitHub (Jan 13, 2024): 2024/01/13 00:00:59 [W] [service.go:134] login to server failed: dial tcp: lookup frps.worktool.com on [::1]:53: server misbehaving 域名解析是正确的 因为我用域名访问仪表盘是没问题了,只是仪表盘中的tcp协议下 容器是离线。上面是openwrt中的frp内网穿透日志 如果将域名更换为IP的话就可以使用,但是如果用域名的就就是不行的
Author
Owner

@xqzr commented on GitHub (Jan 13, 2024):

[::1]:53 解析结果不正确

<!-- gh-comment-id:1890637856 --> @xqzr commented on GitHub (Jan 13, 2024): `[::1]:53` 解析结果不正确
Author
Owner

@github-actions[bot] commented on GitHub (Feb 4, 2024):

Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.

<!-- gh-comment-id:1925501913 --> @github-actions[bot] commented on GitHub (Feb 4, 2024): Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
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#3119
No description provided.