This init.d script will keep Ubuntu WSL dns config in-sync with windows with a 15 sec lag-time.
Be warned: If this service is not running and the nameservers in windows userspace changed, then you may lose connectivity in WSL - make the daemon is running at all times
wget https://gist.githubusercontent.com/matthiassb/9c8162d2564777a70e3ae3cbee7d2e95/raw/56640fbb50ec870d2a2f62b1f188081c29d45337/dns-sync.sh -O /etc/init.d/dns-sync.s
chmod +x /etc/init.d/dns-sync.sh
unlink /etc/resolv.conf
service dns-sync.sh start
Note: WSL does not support service auto-start, when you boot your system you'll need to start the service manually