owerdogan / whoami-project

Whoami provides enhanced privacy, anonymity for Debian and Arch based linux distributions
https://owerdogan.github.io/whoami-project
GNU General Public License v3.0
1.9k stars 158 forks source link

How restore original hostname? #33

Closed sharifulgeo closed 1 year ago

sharifulgeo commented 2 years ago

I just used this package to rename host name of my kali(in vmware) but the problem is when I change the hostname using kali-whoami then many of my commands do not execute since the original host name is changed. I get message like msf6 > sudo db_nmap -p1-300 10.23.13.10 -A -sV -O -oA db.nscan sudo: unable to resolve host macOS11: Name or service not known

Now how can I restore the original hostname?

WhiteHatCyberus commented 1 year ago

hostnamectl set-hostname

WhiteHatCyberus commented 1 year ago

if you perhaps encounter a hostname not configured error, type the following in your distro's terminal: cd /etc sudo nano hosts within the text file add the following line: 127.0.0.1