Code Monkey home page Code Monkey logo

cloudflare-ddns-updater's Introduction

CloudFlareDDNS Updater Client

Dynamic DNS client for Windows, for use with CloudFlare. Written in C#, using Windows Forms.

Support Me

Donate Via Paypal

Requirements

OS Support

  • Client: Windows XP / Vista / 7 / 8 / 8.1
  • Server: 2008 / 2008R2 / 2012 / 2012R2

.NET Framework

.NET Framework 4.0 or above is required (already installed on Windows 8 / 8.1 / 2012 / 2012R2). https://www.microsoft.com/en-gb/download/details.aspx?id=17851

Building

Solution is known to build with Visual Studio 2013 (Community, Pro and Ultimate tested, Express should work), no additional dependencies are needed.
The project targets the full .NET 4.0 profile (not the client profile).

Installing

The executable can be run from anywhere, no install required. Settings will be saved in %userprofile%\AppData\Roaming\CloudFlareDDNS

The application makes use of the Windows Event Log to save messages. Run the application as an Administrator at least once (Right Click->Run as Administrator), this will automatically create the required registry keys for Event Log access.

Configuration

On first launch, enter your details in Tools->Options.

Domain: The root domain name you wish to update (example.com)
Email: The email address associated with your CloudFlare account
API Key: The API key given by CloudFlare at the bottom of your "My Account" page
Auto Fetch Time: The time in minutes an update will automatically occur
Use Windows Event Log: Enable / Disable writing logs to the Windows Event Log



Running as a service

Once you have verified the application is updating your records as intended, you may run it as a service.

To install as a service, run from an evevated (Administrator) command prompt:

CloudFlareDDNS.exe /install

The service will be named "CloudFlareDDNS", and will run automatically on boot. The service shares the configuration with the GUI, and both can be run at the same time.

To remove the service:

CloudFlareDDNS.exe /uninstall



External Resources

This application makes use of the FamFamFam Icon Pack ,available under the Creative Commons Attributions 2.5 license.

cloudflare-ddns-updater's People

Contributors

birkett avatar iamtheyammer avatar zfanta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cloudflare-ddns-updater's Issues

Crash when installing as service

Unfortunately program seems to crash when trying to install as administrator:

  1. Command prompt as Admin
  2. cloudflareddns.exe /install
  3. Tried blank credentials, , ./, etc.
  4. User has login as service rights
  5. Tried to use sc, but there must be an undocumented switch for running as a service?

Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: CloudFlareDDNS.exe
Problem Signature 02: 1.0.0.0
Problem Signature 03: 5515395a
Problem Signature 04: System.ServiceProcess
Problem Signature 05: 4.6.1055.0
Problem Signature 06: 563c0fe2
Problem Signature 07: c4
Problem Signature 08: 89
Problem Signature 09: System.InvalidOperationException
OS Version: 6.3.9600.2.0.0.272.7
Locale ID: 3081
Additional Information 1: c325
Additional Information 2: c3250ae9f7607e8f698dd4baad61a75b
Additional Information 3: 49fc
Additional Information 4: 49fca02a839dc55f1b37f804e1a53592

Service install not working

I'm trying to install this as a service on Windows Server 2012 R2. When I run it standalone it works fine and when I run /install from the terminal no errors are thrown. However no new service appears in the Windows service manager and the updater does not start on boot. Any idea's what could be wrong?

CloudFlare API 4

Is anyone planning to update to use the latest CloudFlare API v4 as it looks like they are retiring the original version currently used?

Run as a service

The app should be able to run as a Windows service. I have two thoughts on how to approach this:

  1. Have the current codebase act as a service when invoked with a switch. Present the UI when running normally.

-or-

  1. Split out the update / fetch logic, move this into a separate service executable. Then have the UI communicate with the service, passing a list of hosts to update.

last release crashes on win 8.1 pro 64 rus

run as admin. crashes afre some time.
event errors:

System.Net.WebException: Базовое соединение закрыто: Непредвиденная ошибка при приеме. ---> System.IO.IOException: Не удается прочитать данные из транспортного соединения: Удаленный хост принудительно разорвал существующее подключение. ---> System.Net.Sockets.SocketException: Удаленный хост принудительно разорвал существующее подключение
в System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
--- Конец трассировки внутреннего стека исключений ---
в System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
в System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)
в System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)
--- Конец трассировки внутреннего стека исключений ---
в System.Net.HttpWebRequest.GetResponse()
в CloudFlareDDNS.CloudFlareAPI.webRequest(Method MethodType, String szUrl, String szData)

System.Net.WebException: Время ожидания операции истекло
в System.Net.HttpWebRequest.GetResponse()
в CloudFlareDDNS.CloudFlareAPI.webRequest(Method MethodType, String szUrl, String szData)

IPv6 Support

It would be nice if it supports pushing IPv6 address to AAAA record!

ip not updating

I set this up about a month ago, and it was working perfectly. I tested by going into my cf dashboard and changing the ip on my two A recs (www and mydomain.com) and withing a few seconds they were changed back to the correct ips. But today my ip actually changed from my isp for the first time since installing this and it did not update. The service is still running, but doesn't seem to be working. Any way to troubleshoot?

win10 64 with nginx

Edit: latest logs show cfddns updater is running every 5 minutes... just not updating anything
screenshot 2017-06-02 at 11 57 12 am

Exception when trying to use as a service

I got this error thrown in the event log when I tried to run the program as a service.

System.Threading.ThreadAbortException: Thread was being aborted.
at System.Net.Connection.CompleteStartConnection(Boolean async, HttpWebRequest httpWebRequest)
at System.Net.Connection.CompleteStartRequest(Boolean onSubmitThread, HttpWebRequest request, TriState needReConnect)
at System.Net.Connection.SubmitRequest(HttpWebRequest request, Boolean forcedsubmit)
at System.Net.ServicePoint.SubmitRequest(HttpWebRequest request, String connName)
at System.Net.HttpWebRequest.SubmitRequest(ServicePoint servicePoint)
at System.Net.HttpWebRequest.GetResponse()
at CloudFlareDDNS.CloudFlareAPI.webRequest(Method MethodType, String szUrl, String szData)

It works fine if I run it manually just not as a service!

Multiple domains support

Hi there, i run 2 domains and would like to update both with this updater.
Can multi domain support be added to this at all?
For my use this is managed under one account/API key

Clearer, more granular configuration needed

I found this project as a possible replacement for FlareDNS, which recently seems to have stopped updating my Windows machines properly. It seemed like it would be a pretty simple drop-in, configure, and go, but that hasn't been my experience.

The documentation doesn't really say what putting in "your details" will do, but from reading the code it looks like the app updates every single A record in the zone you give it to the current machine's public IP. Thankfully I didn't configure it correctly, or most of my websites would have been knocked offline until I put the right IPs back in.

Am I missing a way to specify the zone (e.g. mydomain.name) and then specify only a single subdomain (e.g. windows1.mydomain.name) to be updated?

I hate to misuse the issue tracker like this, but since finding @birkett on Twitter didn't work out I needed to just get in touch however I could.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.