Mikrotik - How to set routes -


i using mikrotik dns server , main router. have 2 dns records, x.x.x.1 , x.x.x.2 mail server mail.example.com , trying find solution when first server down , mikrotik can automatically route second server. me that.

you can use netwatch function: watch x.x.x.1, , when it's down, modify dns static record x.x.x.2. use small ttl values, 1 minute.

/tool netwatch add host=8.8.8.8 down-script="/ip dns static set [ find name=mail.xx.com ] address=x.x.x.2 ttl=30s "   up-script="/ip dns static set [ find name=mail.xx.com ] address=x.x.x.1 ttl=30s " 

Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -