I am a web developer and in my younger years I tried setting up a custom name server on my mac without really knowing what I was doing. I wanted to be able to visit my own website on adreses like 'sam.dev'.
I know that I succeeded at some point and threw the program, that helped me set it up, from my macbook because it was just a trial version.
Now, a couple of years later I notice that I cannot go to any website that has .dev or dev. in the url.
This means I cannot visit websites like nodejs.dev or web.dev
I have tried resetting my DNS but I can't get it to work again. How would I go about resetting this and what did I do wrong?
more info:
scutil --dns significant return values:
resolver #8
domain : test
nameserver[0] : 127.0.0.1
port : 20560
flags : Request A records, Request AAAA records
reach : 0x00030002 (Reachable,Local Address,Directly Reachable Address)
resolver #9
domain : dev
nameserver[0] : 127.0.0.1
port : 20560
flags : Request A records, Request AAAA records
reach : 0x00030002 (Reachable,Local Address,Directly Reachable Address)
contents of etc/hosts
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
# BEGIN section for OpenVPN Client SSL sites
127.94.0.1 client.openvpn.net
# END section for OpenVPN Client SSL sites
I fixed my problem for .dev domains like web.dev but I still have the problem for sites like dev.to
/etc/hostsand the output ofscutil --dnsto the question? – nohillside Mar 24 '20 at 08:15