[GH-ISSUE #4870] [Feature Request] 通过环境变量指定DNS #3840

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

Originally created by @donmor on GitHub (Jul 4, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4870

Describe the feature request

之前的#700在添加dns_server到ini后关闭了,其实还可以从环境变量读取(比如DNS_SERVER=8.8.8.8 frpc ...),可以做到动态获取系统dns并在启动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 @donmor on GitHub (Jul 4, 2025). Original GitHub issue: https://github.com/fatedier/frp/issues/4870 ### Describe the feature request 之前的#700在添加dns_server到ini后关闭了,其实还可以从环境变量读取(比如`DNS_SERVER=8.8.8.8 frpc ...`),可以做到动态获取系统dns并在启动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:27:20 -06:00
Author
Owner

@donmor commented on GitHub (Jul 4, 2025):

另外可以加一个断连之后自动退出的配置,可以靠脚本或app做监视,自动更新dns并重连

<!-- gh-comment-id:3036845107 --> @donmor commented on GitHub (Jul 4, 2025): 另外可以加一个断连之后自动退出的配置,可以靠脚本或app做监视,自动更新dns并重连
Author
Owner

@github-actions[bot] commented on GitHub (Jul 19, 2025):

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

<!-- gh-comment-id:3091315225 --> @github-actions[bot] commented on GitHub (Jul 19, 2025): Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.
Author
Owner

@donmor commented on GitHub (Jul 21, 2025):

还有人看吗😂

<!-- gh-comment-id:3095099655 --> @donmor commented on GitHub (Jul 21, 2025): 还有人看吗😂
Author
Owner

@github-actions[bot] commented on GitHub (Aug 5, 2025):

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

<!-- gh-comment-id:3152898831 --> @github-actions[bot] commented on GitHub (Aug 5, 2025): Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d 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#3840
No description provided.