After installing the "bind-dig" package, the script run successfully.
I see that the service starts successfully, but YouTube still doesn't work. Apparently, I need to experiment with the arguments in the configuration file. If anyone has any proven options, I would be very grateful.