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.nscansudo: unable to resolve host macOS11: Name or service not known
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
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?