I tried to change /etc/hosts to change a local DNS entry, so I can map any website name to any IP, but it isn't working. How can I debug it?
Check /etc/nsswitch.conf and make sure on the hosts line, files is the first option and not dns
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
1 year ago