Redirect DNS requests (URL) to Home Assistant

I’ve got some TechLife cheap bulbs that I want to integrate in HA. There’s sort of recipe to do it here but I need to redirect DNS requests for one chinesse server (cloud.qh-tek.com) to my HA (192,168,1,x).

Somebody got it work redirecting on a router with dnsmasq like this:

address=/cloud.qh-tek.com/192.168.1.x
address=/cloud.hq-tek.com/192.168.1.x

Since I don’t have this kind of router, I think I can use an access point to my HA server (a laptop with Lubuntu, and HA on Docker), that I created with a USB wifi dongle, and then, on my Laptop, redirect the MQTT to HA insthead the chinesse server.

If this idea works… how can I configure it to make it work?

There’s a lot of info on the internet, and I’ve tried may things, but nothing works, since iptables, /etc/hotst/, dnsmasq running on Lubuntu, dnsmasq running on docker as a container…

Any ideas?

You can follow this to redirect the code in firmware to your bulb. Just make sure you are providing the correct local ip. Once you have done that, your bulb will connect only to local MQTT broker directly without any need for the dns masking
https://community.openhab.org/t/hacking-techlife-pro-bulbs/85940/25