All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
How to return DNS records according to the health of the server?
Hai,
So, I have half a dozen of NAT VPSes right now, and I would like to put them to some use other than running Tinc.
Currently, I run my Git server on a LHC SG machine, and since it has no dedicated IP, I am unable to have SSL, since port 443 isn't forwarded (very important especially when pushing from school).
Therefore, I have decided to use another server with a dedicated IP and a lot more bandwidth than it to run a nginx reverse proxy (with SSL) to the actual server, and for SSH access to the Git server, I used iptables to forward traffic.
However, if the server running the reverse proxy goes down, all the services that it reverse proxies would be unavailable for all the end-users.
Therefore, my question is, is there a way to do health checks of the servers (ping, http request) and serve the IP of the server that is up, to the end user, via DNS?
I'm thinking of using two servers with dedicated IP to do reverse proxy, and with this, I would be able to switch over to the other node when one of them goes down.
Any help would be greatly appreciated, if I shouldn't be doing this via DNS, do recommend me some alternatives!
(both open source and commercial products are welcome, if commercial hopefully it costs like < $2 month lol)
Thanks!
//ed
Comments
https://www.lowendtalk.com/discussion/31697/using-uptimerobot-s-webhook-with-cloudflare-to-achieve-ha-downtime-no-longer-than-6-minutes
Also this other one, also by @black: https://github.com/blackdotsh/StatusCake-CloudFlare
gdnsd will do this, if you want to self host your dns servers. It's very light weight and could run on the same two servers you run nqinx on.
Lots of roll-your-own options, basically any DNS service that has an API and a script on another box to monitor and trigger the change.
For commercial: Route53 with HealthCheck. $0.50/zone, $0.50/health check, $0.40 per 1M queries - so depending on query volume, it can be under $2/mo.
This! I forgot to add it to my post. Of course, you must monitor everything from an external VPS else the failover DNS record will never be set
Would a CloudFlare v4 to v6 proxy + their free SSL work?
Basically you'd run your web server IPv6-only, port 80 & 443 would be no issue. CloudFlare will give everyone else their v4 & v6 addresses, and proxy traffic back through only your IPv6.
Yes, but not applicable when websockets are needed. And when CloudFlare itself has problems sometimes and goes down entirely... I think in a year, my server's uptime is longer than theirs, actually.
Looks good! Am actually hoping to use something self-hosted this time, hope it has a decent web interface. Otherwise, I have to find alternatives or make a web interface
maybe you have to take a look over here also: https://www.lowendtalk.com/discussion/43437/setting-up-your-own-geolocated-dns-services
+1 as @FrankZ said
You could work with a floating ip for the proxy servers. Monitor the servers and change the attached node when things go down. Works like a charm. We also make use of a powerdns setup. The domain is set with a low TTL. As soon as our monitors pick up downtime on a node it automatically changes the ip in the DNS.