Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Cloudron Forum

Apps | Demo | Docs | Install

Automate DNS Re-Setup

Scheduled Pinned Locked Moved Solved Support
dynamic-dnsdns
10 Posts 5 Posters 84 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Jan MacenkaJ Offline
    Jan MacenkaJ Offline
    Jan Macenka
    wrote on last edited by girish
    #1

    Dear Cloudron-Team,

    I am operating my Cloudron instance on own hardware in a home-lab setup. Occasionally my ISPs connection "gets bad" and I need to re-connect the router. Theoretically I should have a static IPv4 but I was notified that my Email-Server was unreachable (and that is very troublesome to me!) especially after I had to do such a reboot.

    I figured out that if I go to the Email-Settings and perform the re-configure DNS Settings
    220dce88-5814-4c12-b91d-f9ce03b2ac35-image.png
    then go to the Domain&Certificate Section and do a re-sync of DNS Settings, I am reachable again
    e13c9f23-ba5c-4589-9861-4a2dd1b75124-image.png

    Now I automated the connection speed monitoring and can trigger a reboot of the router automatically through a Webhook and would like to know if there is a way to also trigger those two functions somehow though an API?

    2f90d835-4b4e-4194-a189-f10246002fcc-image.png

    Would be great to hear from you 🙂

    Thanks,
    Jan

    1 Reply Last reply
    0
  • nebulonN Offline
    nebulonN Offline
    nebulon Staff
    wrote on last edited by
    #2

    Not sure if I am following fully, but for home-server setup with potentially changing IPs we have a dyndns feature https://docs.cloudron.io/networking/#dynamic-dns

    That ensures the DNS records being in-sync every 5 minutes.

    1 Reply Last reply
    0
  • nebulonN nebulon marked this topic as a question on
  • Jan MacenkaJ Offline
    Jan MacenkaJ Offline
    Jan Macenka
    wrote on last edited by
    #3

    Hi @nebulon yes, the dyn-dns feature is active does this also contain the re-sync of the Email DNS config?

    1 Reply Last reply
    0
  • nebulonN Offline
    nebulonN Offline
    nebulon Staff
    wrote on last edited by
    #4

    There should be no need to re-sync mail related DNS records when the IP changes. We only use the domain in those records.

    1 Reply Last reply
    1
  • scookeS Offline
    scookeS Offline
    scooke
    wrote on last edited by
    #5

    @Jan-Macenka I feel your frustration, but you really should consider either moving your tech onto a VPS, or paying for email (like MXRoute, for example), particularly if not being reachable is troublesome. A 3rd option, if available, is to pay for a business-type internet connection. Depending on a consumer-level home internet connection always carries with it the exact frustrations you are experiencing. There are only so many things Cloudron can do - making sure a homelab setup is always accessible is not one of them (due to the 100+ variables that could be going wrong).

    A life lived in fear is a life half-lived

    Jan MacenkaJ 1 Reply Last reply
    0
  • girishG girish has marked this topic as solved on
  • necrevistonnezrN Offline
    necrevistonnezrN Offline
    necrevistonnezr
    wrote on last edited by
    #6

    I host at home, my ISP regularly changes my IP, but I never had problems with my mail server not being reachable?
    Why do you need to reboot your router on an IP change?

    Jan MacenkaJ 1 Reply Last reply
    0
  • Jan MacenkaJ Offline
    Jan MacenkaJ Offline
    Jan Macenka
    replied to necrevistonnezr on last edited by
    #7

    @necrevistonnezr the reboot is not necessary due to an IP change. Sometimes the ISP just gets "stuck" with low bandwith and almost no connectivity... Only thing that seems to help is either rebooting the Router or using its "Re-Connect" feature:

    ee1c1e28-73c1-4edd-b8df-2c1ef8c0c178-image.png

    In germany the ISP Vodafone is know for a rather variable service quality. But in my area they are the only provider serving via fiber-optic cable with 50 Mbps Up-Link which I want to have for runningn my services.

    necrevistonnezrN 1 Reply Last reply
    0
  • Jan MacenkaJ Offline
    Jan MacenkaJ Offline
    Jan Macenka
    replied to scooke on last edited by
    #8

    @scooke yes but everything else workes fine and I really like operating a self-hosted email-server. Also I noticed that once I manually click the "Re-Sync Email-DNS" button, Emails start to stream in again... So even putting this on a cron-job to be done each hour would be a workable solution for me in order to keep my setup 😛

    1 Reply Last reply
    0
  • necrevistonnezrN Offline
    necrevistonnezrN Offline
    necrevistonnezr
    replied to Jan Macenka on last edited by
    #9

    @Jan-Macenka
    Wouldn’t it be sufficient to announce you‘re current IP address via ddclient to your domain provider? That can be automated via cron.
    If you actually have a static IP (it never changes?), the re-syncing of DNS in Cloudron should have no effect, I believe….

    1 Reply Last reply
    0
  • girishG Offline
    girishG Offline
    girish Staff
    wrote on last edited by
    #10

    @Jan-Macenka The sync dns also syncs the mail related dns settings. There should also be an event in the eventlog indicating the dynamic dns updated your dns (or not). When things are going out of sync, can you check what it says in the event log?

    1 Reply Last reply
    0

  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Login

  • Don't have an account? Register

  • Login or register to search.