I want to connect to a WiFi network without disclosing my original Hostname(Computer Name) to the network.
i.e, I want to connect to WiFi networks with a different (fake) Hostname of my choice without altering my Computer Name.
Thank you.
I want to connect to a WiFi network without disclosing my original Hostname(Computer Name) to the network.
i.e, I want to connect to WiFi networks with a different (fake) Hostname of my choice without altering my Computer Name.
Thank you.
hostname newname
will temporarily change your host name till the next reboot. Its the closest thing to what you want, but definitely not what you need:
Things to note - your router may cache the old host name, so it might not help at all, depending on what you're really trying to do - but fabby's answer covers that in detail.
hostname newname
in a script and running it everytime computer boots.
– kashish
Dec 31 '15 at 03:27
I could just tell you to go look in /etc/network/if-up.d/
and add a script there to generate a random host name every time you connect to any WiFi network, and then change it back to the original using /etc/network/if-updown.d/
but will this help you?
Because that still divulges your IP address, and more importantly: MAC address which is an address uniquely identifying your machine, so you should spoof that too depending on your use case. (which isn't very elaborately documented in your question...)
Alternatively, buy this book which explains TCP/IP in detail and then you'll know as much as I know...