Hello @rk6171485,
By default, PuTTY is configured to use the DNS settings of your computer's operating system to resolve hostnames.
If the name switch are not part of DNS, you can modify your host file to manually associate the IP address of the switch with its hostname.
On Windows, the host file is typically located at C:\Windows\System32\drivers\etc\hosts
Best regards
******* If This Helps, Please Rate *******
Ben