You can edit the hosts file with any text editor. There are a variety available, but both Windows 10 and 11 come with Notepad ...
If you see an error Windows cannot access the specified device, path, or file when trying to open the Printer properties, here is how you can fix the issue in Windows ...