So I was trying to fix this reverse DNS issue:
$ dig HOSTNAME.DOMAIN.com 22.214.171.124 #example $ dig -x 126.96.36.199 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.