owerdogan / whoami-project

Whoami provides enhanced privacy, anonymity for Debian and Arch based linux distributions

Home Page:https://owerdogan.github.io/whoami-project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How restore original hostname?

sharifulgeo opened this issue · comments

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?

hostnamectl set-hostname <new_hostname>

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 <new_hostname>