Re: [Dnsmasq-discuss] Dynamic address config?

2022-11-25 Thread Petr Menšík
Did you know that dnsmasq registers all hosts by their name, if they send their own hostname when requesting DHCP from dnsmasq? Just use domain=mylab and have that host send hostname. It would make using names possible without any additional configuration. I do not get what is the advantage

Re: [Dnsmasq-discuss] [PATCH] Optimize speed on massive server=/.../... records

2022-11-25 Thread Petr Menšík
When looking what this change did, I have noticed mark_servers() cleanup of local_domains is using serv->next after it has freed serv. Use additional variable just like in cleanup_servers(). Patch attached. On 11/21/22 23:22, Simon Kelley wrote: Thanks for this. It was in my mind that vary

Re: [Dnsmasq-discuss] v2.88rc2 segmentation fault with config "local=//" [PATCH]

2022-11-25 Thread Petr Menšík
Hi! After reading those changes a bit, it seems there are too many variables used in a complex mess. It is very easy to get lost in them, especially when sdetails just points somewhere to local function other variables. I made attempt to reduce the complexity and amount of local variables.

[Dnsmasq-discuss] failed to read symlink-files added by `list addnhosts '/etc/safe-search/enabled'`

2022-11-25 Thread Gordon Shawn
On the newest openwrt I installed 'safe-search' which has a few files under /etc/safe-search/available/ and they're symlinked to /etc/safe-search/enable/ by choice. dnsmasq reports it failed to load those symlinks under enable/ if I remove the symlinks, and copy the real files over from