GithubHelp home page GithubHelp logo

Comments (7)

novakin avatar novakin commented on July 22, 2024

Hi Greg,

In your case, example.com and example2.com are hosted on the same server ?

from dns-failover-cloudflare-monit.

GMF-2016 avatar GMF-2016 commented on July 22, 2024

different servers, different IP addresses.

from dns-failover-cloudflare-monit.

novakin avatar novakin commented on July 22, 2024

Then it's a bad idea to add extra sites in cloudflare.conf.

Download the files twice and configure them for each of your sites

from dns-failover-cloudflare-monit.

GMF-2016 avatar GMF-2016 commented on July 22, 2024

thanks for that. Sorry to be a pain but is it possible to failover to a DNS entry instead of an IP in the tomain.sh and tobackup.sh config files?
Our failover server(Microsoft Azure) appears to use dynamic IP address for it's DNS

from dns-failover-cloudflare-monit.

novakin avatar novakin commented on July 22, 2024

Yes you can do that. It's not a big deal at all.

Make sure the record you want to update is a CNAME and not a A record on cloudflare website
then in tobackup.sh files configure the IP variable as a domain.

ip=example2.com

from dns-failover-cloudflare-monit.

GMF-2016 avatar GMF-2016 commented on July 22, 2024

cool, thanks.
so we need a cname for our backup site on running on Azure?

from dns-failover-cloudflare-monit.

novakin avatar novakin commented on July 22, 2024

Yes you need to properly configure your DNS

from dns-failover-cloudflare-monit.

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.