For people still coming here, i found an even easier way to solve the problem then provided in my initial answer post above: Docker container DNS not working with pihole - Unix Stackexchange
Share and learn in the Docker community.
For people still coming here, i found an even easier way to solve the problem then provided in my initial answer post above: Docker container DNS not working with pihole - Unix Stackexchange