How machines are accessible with domain name like scavenger.htb?

I am only able to access machines via their IP Address not with domain.

How can I access machines with domain like- - scavenger.htb - bankrobber.htb

You need to add it inside the hosts file (/etc/hosts on linux or C:\Windows\system32\drivers\etc\hosts on Windows) like this scavenger.htb bankrobber.htb

Thank you so much @njutn95

No problems! :slight_smile:

be careful on some machines though - for things like kerberos authentication you need to be using the machine’s actual name and domain name. If you just make one up and put it in your hosts file then try to access the machine with that, kerberos auth will fail.

Thanks @VbScrub .