Giter Site home page Giter Site logo

Comments (8)

pheistman avatar pheistman commented on September 28, 2024 1

Thanks Nik, however, since I couldnt get it working i found another script which is currently functioning the way i want it to. Thanks again.

from ddns-on-cloudflare.

kamilmirza avatar kamilmirza commented on September 28, 2024

@pheistman
looks like you don't have pip installed
install pip and try again

from ddns-on-cloudflare.

pheistman avatar pheistman commented on September 28, 2024

Thanks for the response, i'll try it out

from ddns-on-cloudflare.

kamilmirza avatar kamilmirza commented on September 28, 2024

@pheistman
i apologize for my previous comment
it's called Origin Key, right below your API Key
starts with v1...

from ddns-on-cloudflare.

pheistman avatar pheistman commented on September 28, 2024

Thanks a lot for your assistance. I've installed pip and used the Origin Key which has got it working.
However, I've noticed that after the script creates an A Record of ddns in Cloudflare which points to my updated IP address, I now have 2 A records.
The first is ddns A record which points to the updated IP address and the second A record is my domain name pointing to my old IP address.
Is there a way to keep 1 A record which gets updated when the script runs?

Thanks in advance

from ddns-on-cloudflare.

kamilmirza avatar kamilmirza commented on September 28, 2024

Is there a way to keep 1 A record which gets updated when the script runs?

have you tried removing the second A record?
happens when you remove it?

from ddns-on-cloudflare.

pheistman avatar pheistman commented on September 28, 2024

Ok so 2 things happen.

  1. When i remove the newly created ddns A record, I still have my old A record which is my domain name pointing to the old IP address. After running the script, it only creates a new A record with name ddns which points to the updated IP address.

  2. When i remove the A record which has the name of my domain pointing to the old IP address, all i have left is the newly created ddns A record pointing to the updated IP address. It breaks my website making it unreachable. Cloudflare also puts up a warning that "An A, AAAA or CNAME record was not found pointing to the root domain. The domain will not resolve."

from ddns-on-cloudflare.

nikhiljohn10 avatar nikhiljohn10 commented on September 28, 2024

Thanks a lot for your assistance. I've installed pip and used the Origin Key which has got it working.
However, I've noticed that after the script creates an A Record of ddns in Cloudflare which points to my updated IP address, I now have 2 A records.
The first is ddns A record which points to the updated IP address and the second A record is my domain name pointing to my old IP address.
Is there a way to keep 1 A record which gets updated when the script runs?

Thanks in advance

Hi @pheistman, Sorry for the late reply. Idk if you figured it out. I understand the 2 A Records are example.com and ddns.example.com. These are not the same A Records. Your root domain is having your old IP and the program is set to create an sub domain to track your ddns ip.

You have 2 option:

  1. Reprogram the source code to take root domain instead of sub domain.
  2. Use your root domain for some other purpose like hosting something in git and use ddns sub domain for accessing your local ip.

from ddns-on-cloudflare.

Related Issues (4)

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.