I have a problem with my self-developed DNS Proxy. I’m learning Golang and I’ve coded a self-DNS for studying purposes. My self DNS proxy works fine with many domains. However, when I access YouTube, I cannot see any videos loading. Instead, I get the message “Check your internet connection”. Although I can access and watch videos on other sites.
My code is very simple, I use package github.com/miekg/dns
to handle DNS queries from client then check with Public DNS such as: Google, CloudFlare,.. then return the DNS answer!
Are there any notices with Youtube that I have not known? How can I resolve them? Thanks!
Explain my mistake or give me any special thing of Youtube
My code is similar with: https://gist.github.com/walm/0d67b4fb2d5daf3edd4fad3e13b162cb