|
Sujet auquel vous répondez | |
---|---|
Sujet : fichier Hosts qui ne "fonctionne" plus | |
JBM | La supprimer puis la recréer, pas d'autre solution apparemment |
Aperçu |
---|
Vue Rapide de la discussion |
---|
JBM | En fait, j'ai trouvé cette solution et l'explication du problème sur microsoft.public.windows.server.dns :
Excerpt of solution: I have just finished working with a total of five engineers at Microsoft for three days trying to fix this problem and I finally have a solution. From what I have been able to piece together, it really was MSN Messenger 7.5 that broke my hosts file. The final engineer found what the discrepancy was and from that discovery I have come up with an hypothesis to explain what occurred. Here's what I think caused my problem: (1) MSN Messenger erroneously determined that my connection to the Internet was not functioning and launched its troubleshooter. (2) The troubleshooter made a copy of my existing hosts file and called it hosts.msn. It then went through the data therein probably to sanitize it and made a new hosts file. (3) Next, it deleted my DataBasePath registry key and recreated it, presumably to ensure that no malware had compromised it. It is this step that corrupted the system. Registry entries have three parts to them: name, type, data. The specific key to which I am referring is found in \HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters and is called DataBasePath. For a default installation of Windows Server 2003, its type should be REG_EXPAND_SZ and its value should be %SystemRoot%\System32\drivers\etc. MSN Messenger goofed up and made the type REG_SZ and that is what killed the hosts file. I'm not a registry expert, but I do have a background in programming. My theory is that both registry key types allow for the storage of alphanumeric data, however the difference is that the REG_EXPAND_SZ type allows for substitutions while the REG_SZ type does not. I bet since the REG_SZ type doesn't allow substitutions, the %SystemRoot% section was interpreted literally instead of being substituted by C:\Windows. This is why the "ipconfig /flushdns" command was not caching the entries in the hosts file. It simply couldn't find it! All I had to do was change the type to REG_EXPAND_SZ and everything began to work again. -- Todd J Heron, MCSE Windows Server 2003/2000/NT; CCA |
firstorangutan | JBM, t'es trop fort :jap: |
shuai | bravo JBM ;) |
BanditFlo |
|
JBM | La supprimer puis la recréer, pas d'autre solution apparemment |
BanditFlo |
|
BanditFlo |
|
jlighty | en effet il peut aussi verifier si le contenu de la clé "DataBasePath" pointe sur son fichier hosts
http://www.mihaiu.name/2005/window [...] e-ignored/ |
JBM | Bonjour,
J'ai rencontré ce problème sur un poste récemment. Va dans la base de registre, dans \HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters et change le type de la clé "DataBasePath" de REG_SZ en REG_EXPAND_SZ En fait, il s'agit d'un bug de l'outil de dépannage de MSN Messenger qui réinitialise cette clé (mais avec un mauvais type) lorsqu'il n'arrive pas à se connecter. |
jlighty | dans ton fichier hosts, tu as bien :
? |
BanditFlo | "delai d'attente depassé" ... :( |
jlighty | une manip à essayer pour verifier si ça marche :
ping www.coolwwwsearch.com si l'adresse est 127.0.0.1 c'est bon sinon il y a un problème dans la config de ton hosts. |
firstorangutan |
|
BanditFlo | toujours pareil :(
merci de ton aide quand même :) |
BanditFlo | merci , j'essaye de suite ;) |
firstorangutan | Bon j'ai testé un peu ton truc et j'ai réussi à reproduire ton problème.
Je te propose un autre test: Copie ton hosts. Tout virer sauf 127.0.0.1 localhost et une adresse de ton choix type 127.0.0.1 www.coolwwwsearch.com Apres cette ligne, tu laisses un ligne blanche. Impératif aussi: Tu édites ton hosts avec le notepad "bloc-note" et pas autre chose. :) Apres: Il faut vider les cookies ET les fichiers temporaires ET fermer ton navigateur. Ensuite tu ouvres ton navigateur et la, tu essaies. Maintenant le truc se passe bien, tu n'as plus acces à www.coolwwwsearch.com En fait, j'ai fais la manip, en redémarrant ou non. Ca n'a rien changer. Par contre, dans le fichier hosts, surtout, tu ne mets pas http:// devant l'adresse et pas de "/" à la fin. Honnetement, j'ai pas essayer l'adresse "coolwwwsearch.com" de peur que cela soit une saloperie. J'ai fais le test avec http://www.crash-test.org Pour info, http://www.crash-test.org, tu ne risques rien. C'est un truc sur les crash test de voiture ;) Après et bien, place à quelqu'un d'autre si cela ne marche pas. Bon courage. |
BanditFlo | il n'y a qu'un utilisateur sur mon pc , l'admin donc .
merci pour ton aide :) |
firstorangutan | bon et bien si c'st bien dans system32/drivers/etc/
et non dans system32/drivers/ect/ ;) et bien il ne semble rien manquer. Pour le lmhost, je ne sais pas mais va voir du cote du site de microsoft, j'ai lu un truc du genre: "Par défaut, le fichier Lmhosts n'existe pas. Il existe un exemple de fichier Lmhosts.sam que vous pouvez utiliser comme base pour la création d'un fichier Lmhosts." Ceci dit il est vrai que cela ne semble pas correspondre à ton problème. Après reste les permissions; Je ne sais pas si cela peut jouer, Est-ce que le fichier appartient bien a Administrateur et donc au système. Sinon je ne vois plus! :sweat: Pour l'instant je dois aller me coucher. Je regarderais demain comment réagit ma machine si j'ai deux secondes. |
BanditFlo |
|
firstorangutan | Non non, ça change rien en effet si tu n'as fait que cela.
Mais est-ce que ça a déjà marché sur cette machine. Est-ce que tu as bien effacé les cokies et les fichiers temporaires de ton navigateur internet? Essaye avec une seule adresse dans ton fichier "hosts". Est-ce que ca marche? Fait une copie de ton fichier, essayer d'ajouter une seule adresse du style http://www.crash-test.org/ Est-ce que tu peux après redemarrage avoir accès à http://www.crash-test.org/ après cette manip. Si oui, c'est que ton hosts n'est pas au bonne endroit ou que le lmhost a été désactivé. |
BanditFlo | comprend rien :'(
mais pourtant j'ai rien touché à ça (lmhosts) , j'ai juste refait un copier coller de la nouvelle liste du lien plus haut, ce qui ne peut pas changer des paramètres , si ? |
firstorangutan | Bne j'ai cherché désactivation lmhosts sur google et j'ai trouvé cela si cela peut aider à vérifier pour ton cas, perso, je n'ai jamais eu à me palucher se genre de probleme.
http://www.microsoft.com/windows20 [...] ration.htm |
BanditFlo |
|
BanditFlo | lmhosts , on le reactive comment ? :) |
firstorangutan | On réessaye. http://forum.hardware.fr/hardwaref [...] 4210-1.htm |
BanditFlo | merci , mais ton lien ne fonctionne pas [:le kneu] |
firstorangutan | Apparement il n'y a pas d'erreur mais bon, c'est énorme le truc ;)
Place l'adresse que tu veux filtrer a la première ligne de ton fichier et regarde ce qui se passe. En général, les fichier host sont lu du haut en bas, donc: Si il n'a pas d'extention '.txt' ou autre; Attention a l'option explorer qui dit de ne pas n'affiche les extentions Si il est dans le bon repertoire au niveau de ton système car suivant les windows, ça change. Ca devrait marché si lmhosts n'est pas désactivé: confert com21 au niveau du post suivant qui est très instructif. http://forum.hardware.fr/hardwaref [...] 4210-1.htm |
BanditFlo | c'est possible que ce soit un bug ou probleme quelconque de leure liste ?
fait chier , comme un couillon j'ai effacé mon ancienne liste qui fonctionnait parfaitement bien :'( |
jlighty | il te reste plus qu'à tester morceau par morceau ton fichier host pour verifier si une erreur de syntaxe ne s'est pas glissée dans le fichier. |
BanditFlo |
|
BanditFlo |
|
jlighty | tu as bien redémarré le PC après la modification du fichier hosts ? |
3Phach4 | ok. bizarre comme méthode... et vu la taille de la liste si y a un probleme dedans c'est pas moi qui vais m'amuser a farfouiller. regénère là ou trouve en une a jour... ca traine sur le net. c'est ce qu'il y a de mieux a faire. |
BanditFlo | je ne veut PAS voir les sites justement , mais j'arrive à aller dessus :heink: |
3Phach4 |
|
BanditFlo | up :'( |
BanditFlo | Bonjour, ma liste host ne fonctionne plus , c-à-d que je peut aller sur les site malgré qu'ils soient dans cette liste :heink:
il y a un problème dans cette liste ou quoi ? la voila: http://banditflo.free.fr/hosts.txt merci :jap: |