Glad you could solve it.
Just a remark:
You do not mention whether you run that command on the NAS host system or from within your Pi-hole container.
If you applied that command inside the container, that will solve your problems only temporarily.
Any changes supplied to your Pi-hole container internals will not survive a container restart, let alone a host machine reboot.