DNS / UDP Priority ?

I got a gpon ONT, I got a Mikrotik (Hex S) on it which does the PPPoE client to the ISP.


When someone is using speedtest on the LAN to measure the line I’ve noticed that for those 3-4-5 seconds
DNS lookups don’t work.

Is there a way to prioritize DNS/UDP ?

Or should I use a Queue ? codel or something else and limit my line a few mbps under my limit ?

Yes.
Read about QoS.