#AskFedi: is there a script / way to automate the restart of dnsmasq every 24 hours… on a VPS that runs on Debian 12?

(Funny how this would have sounded like a foreign language to me a mere year ago) 😆

Update: THANK YOU for the cronjob recommendation. Now looking for a tutorial that’s easy to follow for a newbie like me 😅

I really appreciate all the advice, YOU’RE THE BEST 🏆

#MySoCalledSudoLife

@elena First of all, if you need to restart it every 24h, something else is probably wrong. Why do you want to restart it?

@rozie too many requests… I see them in the logs.

I’ve increased the max number (sorry if I can’t remember the exact language) from the default 150 to 300… and then 500.

It’s helping a bit but I still need to restart from time to time or else my PeerTube gets really slow.

I think it’s an issue of having an increasingly more popular GoToSocial account on the same VPS as PeerTube. Federation issues and whatnot…

@elena So, I guess we're talking about DNS, not DHCP. There's a cache-size parameter, default value is 150, but it can be safely increased. IIRC I used 2-3k.

But if you only need DNS server, not DHCP and "for real", I recommend unbound. Very fast, simple configuration.