Return same IP for all DNS queries.

Can the Mikrotik DNS server be set in a way to return same IP for all DNS queries?

Why on earth would you want to do that?
What’s your use case.

My objective to route all traffic to a website for given network. (Deliquent users) I have looked at the Proxy solution but found that you cannot redirect HTTPS traffic, so I thought what about a DNS solution, return a single IP (our website) for all queries ≈ for given network. Would this method work, I don’t know, just trying ideas.

Possible but takes a special skill set to do this work..

#In case, your mikrotikdevice is officially supported by openwrt,
#flash openwrt to your mikrotik, log into the router, i.e. via ssh or putty, and then it is just a one-liner:

echo ‘address=/#/ONLYIP’ >> /etc/dnsmasq.conf
#i.e. echo ‘address=/#/192.168.1.1’ >> /etc/dnsmasq.conf
#reboot

#This will force all domains, resolved by dnsmasq, the well known, and well documented tiny
#DNS-resolver/dhcp-server to ONLYIP.

Thank you for another real-world comparison of ROS and openwrt functionality.

Welcome.

/ip dns static
add address=10.10.9.1 disabled=no regexp=.* ttl=1d
add address=::1 disabled=no regexp=.* ttl=1d type=AAAA

This works, thanks, but it won’t display web pages with out getting a security error since the majority of pages have certs. Maybe the Hotspot can be used to capture delinquent users.

This isn’t a proper solution, because we are in 2023.
I was just pointing out that you can also do this in RouterOS, not just with dnsmasq as our lovely user above posted.

I agree, just trying different ideas. We want to give a subnet to users that only get access to our customer portal.