Edit the hosts file
Map a domain name to an IP address locally, for example to test a website.
- Open Notepad as administrator (right-click → Run as administrator).
- File → Open, then paste this path and choose "All files":
C:\Windows\System32\drivers\etc\hosts
- Add one line per entry: the IP address, then the name.
127.0.0.1 exemple.test 192.168.1.20 nas.maison
- Save, then flush the DNS cache.
- DNS cache:
ipconfig /flushdns
⚠️ Never paste lists found on the Internet without reading them: one bad line can redirect a site to a fake.