Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How restore original hostname? #33

Closed
sharifulgeo opened this issue Aug 9, 2022 · 2 comments
Closed

How restore original hostname? #33

sharifulgeo opened this issue Aug 9, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@sharifulgeo
Copy link

sharifulgeo commented Aug 9, 2022

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?

@sharifulgeo sharifulgeo added the bug Something isn't working label Aug 9, 2022
@WhiteHatCyberus
Copy link

hostnamectl set-hostname <new_hostname>

@WhiteHatCyberus
Copy link

WhiteHatCyberus commented Dec 6, 2022

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants