Display advert, one static page for virtualAP and exit, no internet needed.

I just want to make that mikrotik will display one static html page immediatelly after connecting user to virtualAP.
There is no need to login, to alow it to have internet, only locally hosted on mikrotik page.

But there are problems with https etc.
Is it possible to have custom DNS on mikrotik, so every request will be resolved locally to 10.5.1.1 ?

/ip dns static
add address=10.5.1.1 regexp=.+

But remember that router itself also uses it, so it won’t be able to properly resolve anything. And there will still be problems with https.