Avant d'écrire ce message j'ai bien entendu essayé tous les tutos 'Notepad en admin, désactiver ponctuellement defender, etc...)
Première curiosité lorsque j'ouvre le fichier hosts avec notepad je vois ceci:
Code : Tout sélectionner
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
127.0.0.1 localhost
Code : Tout sélectionner
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
127.0.0.1 localhost
127.0.0.1 cryptomator-vault
::1 localhost
Première question : Pourquoi je n'ai pas la même information ?
Question subsidiaire :
Je trouve également un fichier hosts protégé par TrustedInstaller dans le directory suivant:
C:\Windows\WinSxS\amd64_microsoft-windows-w..ucture-other-minwin_31bf3856ad364e35_10.0.19041.1_none_eb30aafa046f78ad
dont le contenu ne possède que des commentaires. Donc à priori inutile
Enfin quand je valide pour test une ligne comme;
127.0.0.1 www.facebook.com
127.0.0.1 facebook.com
Les modifications apparaissent parfaitement avec Notepad++ mais je peux toujours me connecter sur Facebook !!!
alors que en ouvrant avec Notepad je n'ai toujours que la ligne 127.0.0.1 localhost
Bref impossible de modifier le fichier Hosts et improbable résultat différent entre notepad et notepad++
Des idées ? :-)