hello,
i am trying to implement a redirection to a website that tells a customer that we have currently an outage. i do that successfully with NAT and the proxy to show a pre defined html page with the info needed. this only works as long as i have DNS (in my test i have DNS cause i have no real outage) because the browser needs to get an ip address first to know where to connect to. if i do have a real outage and need to inform customers about this it wont work. i am trying to find a way to make a DNS on ROS (JUST for that situation) respond to ALL queries with a pre defined ip address. is that somehow possible ?
thanks
Jan
Here’s an example of an entry you can add to your static DNS cache:
/ip dns static
add address=X.X.X.X comment=“” disabled=yes name=“.*.com$” ttl=30s
This was one I was playing around with to redirect any .com domains to a test page, you should be able to modify for you own usage (it’s using a basic regular expression).
I don’t have the time to test right now but I imagine doing either just “." or ".$” would work much the same way.
I checked it but doesn’t work for me
Update: be aware - using *.local or *.dev domains is not “easy”, because of specification of them.
The best would be to use some .localdev or .myname suffixes.
Works for me. For
*.local
hostnames
Using WebFig:
IP > DNS > Static > Add New
