So I was trying to fix this reverse DNS issue:
$ dig HOSTNAME.DOMAIN.com 188.8.131.52 #example $ dig -x 184.108.40.206 OTHERHOSTNAME.OTHERDOMAIN.com
I was blindly following online instructions to fix it:
I changed the first line
127.0.0.1 HOSTNAME.DOMAIN.com localhost.localdomain localhost
then I did:
sudo /sbin/dhclient -r
I believe by then I realized I no longer had internet connection, even though I was still connected to WiFi. I reverted the edit to
/etc/hosts, without effect.
(I am posting from another computer, so first I would like to fix the internet connection on original computer).
Any ideas? Thanks
EDIT: @Alaa ali 's initial proposal didn't work for me, but he told me to restart my machine, which worked.