My PC has a running dnsmasq so my nameserver is 127.0.0.1. So your code will create a dns loop.