Read this about "Linux capabilities":
https://docs.pi-hole.net/ftldns/in-depth/#linux-capabilities
And I believe a solution is offered here: