[GH-ISSUE #3988] [Feature Request] DDNS IP更新后掉线 #3165

Closed
opened 2026-05-05 14:02:52 -06:00 by gitea-mirror · 7 comments
Owner

Originally created by @SingletC on GitHub (Feb 12, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/3988

Describe the feature request

当服务端使用ddns ip变动后 client需要重启服务才能正常通信

Describe alternatives you've considered

使用定时重启可以解决但是会有断线时间

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @SingletC on GitHub (Feb 12, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/3988 ### Describe the feature request 当服务端使用ddns ip变动后 client需要重启服务才能正常通信 ### Describe alternatives you've considered 使用定时重启可以解决但是会有断线时间 ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [X] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 14:02:52 -06:00
Author
Owner

@MANKUD commented on GitHub (Feb 14, 2024):

Hello @SingletC

Assuming that you FRP client is a windows machine I have written a powershell script for you which you can run as a batch file by saving it as a batch file with any name.

Run the batch scipt at regular intervals say every 5 min using windows task scheduler to automatically restart service if the IP address pointing to you DDNS changes and as a additional feature I have added automatically update DNS servers for current network adapter to cloudflare dns that is 1.1.1.1 & 1.0.0.1 and flush dns both are automatically done when the DDNS current IP address changes.

<!-- gh-comment-id:1943841347 --> @MANKUD commented on GitHub (Feb 14, 2024): Hello @SingletC Assuming that you FRP client is a windows machine I have written a powershell script for you which you can run as a batch file by saving it as a batch file with any name. Run the batch scipt at regular intervals say every 5 min using windows task scheduler to automatically restart service if the IP address pointing to you DDNS changes and as a additional feature I have added automatically update DNS servers for current network adapter to cloudflare dns that is 1.1.1.1 & 1.0.0.1 and flush dns both are automatically done when the DDNS current IP address changes.
Author
Owner

@SingletC commented on GitHub (Feb 14, 2024):

Hello @SingletC

Assuming that you FRP client is a windows machine I have written a powershell script for you which you can run as a batch file by saving it as a batch file with any name.

Run the batch scipt at regular intervals say every 5 min using windows task scheduler to automatically restart service if the IP address pointing to you DDNS changes and as a additional feature I have added automatically update DNS servers for current network adapter to cloudflare dns that is 1.1.1.1 & 1.0.0.1 and flush dns both are automatically done when the DDNS current IP address changes.

I much appreciate your help; I did not test the above code. But I assume it will work.
It will be easy to let the client query the IP address of a domain instead of caching it. You can close the thread if this feature seems unnecessary.

<!-- gh-comment-id:1943870860 --> @SingletC commented on GitHub (Feb 14, 2024): > Hello @SingletC > > Assuming that you FRP client is a windows machine I have written a powershell script for you which you can run as a batch file by saving it as a batch file with any name. > > Run the batch scipt at regular intervals say every 5 min using windows task scheduler to automatically restart service if the IP address pointing to you DDNS changes and as a additional feature I have added automatically update DNS servers for current network adapter to cloudflare dns that is 1.1.1.1 & 1.0.0.1 and flush dns both are automatically done when the DDNS current IP address changes. I much appreciate your help; I did not test the above code. But I assume it will work. It will be easy to let the client query the IP address of a domain instead of caching it. You can close the thread if this feature seems unnecessary.
Author
Owner

@MANKUD commented on GitHub (Feb 14, 2024):

@SingletC I am having issues sharing the code here give me some time I will post it here.

<!-- gh-comment-id:1943872951 --> @MANKUD commented on GitHub (Feb 14, 2024): @SingletC I am having issues sharing the code here give me some time I will post it here.
Author
Owner

@MANKUD commented on GitHub (Feb 14, 2024):

@SingletC Here you go a link to downlod my batch script.

https://www.zippyshare.day/ZnzuZ715lWYguC5/file

<!-- gh-comment-id:1943876407 --> @MANKUD commented on GitHub (Feb 14, 2024): @SingletC Here you go a link to downlod my batch script. https://www.zippyshare.day/ZnzuZ715lWYguC5/file
Author
Owner

@MANKUD commented on GitHub (Feb 14, 2024):

let me know if this works for you. @SingletC

<!-- gh-comment-id:1943879111 --> @MANKUD commented on GitHub (Feb 14, 2024): let me know if this works for you. @SingletC
Author
Owner

@superzjg commented on GitHub (Feb 17, 2024):

我有一台frps(arm64)公网ip被运营商更新时,动态域名更新可能不及时,我的另外2台frpc(一台arm,一台arm64),通常会断线几分钟到十几分钟,然后自动重新连上,并不需要重启。

<!-- gh-comment-id:1950216077 --> @superzjg commented on GitHub (Feb 17, 2024): 我有一台frps(arm64)公网ip被运营商更新时,动态域名更新可能不及时,我的另外2台frpc(一台arm,一台arm64),通常会断线几分钟到十几分钟,然后自动重新连上,并不需要重启。
Author
Owner

@github-actions[bot] commented on GitHub (Mar 10, 2024):

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

<!-- gh-comment-id:1987024574 --> @github-actions[bot] commented on GitHub (Mar 10, 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#3165
No description provided.