HOSTS file not working; DNS Client Event ID 1012

Discussion in 'Windows 7 Help and Support' started by Jawzper, Jun 8, 2012.

  1. Jawzper

    Jawzper Active Member

    Joined:
    Jun 8, 2012
    Messages:
    4
    Likes Received:
    0
    Hi there,

    For quite some time I've been using the mvps HOSTS file to block advertisements and similar with great success.

    However, after recently adding some additional entries to the list, the HOSTS file has completely stopped functioning (I now see advertisements everywhere - quite frustrating considering I am used to living without them entirely), and every time I start my computer I get several DNS Client event 1012 errors:

    My first guess was that something was wrong with the formatting of the new entries, so I double checked this and then did an ipconfig /release and renew to check if this had made a difference. Did nothing but generate more event viewer errors.

    Next I disabled the DNS Client service. Didn't help.

    I have checked the file permissions; SYSTEM, Administrators and my account all have full permissions. The file is, of course, located at "C:\Windows\System32\drivers\etc\HOSTS". I saved it with notepad using ANSI encoding, not Unicode.

    I then removed the new entries completely, leaving the file with only the mvps entries (as it was before I updated it). Still no change.

    Next I redownloaded the mvps HOSTS file and replaced my current one with that. No change.

    Just now I've deleted the entire HOSTS file and made a new one containing only:
    And yet I am still getting the same errors in event viewer. I've run out of ideas now, I have no clue what the reason for this is any more.

    I am running Windows 7 Enterprise, 64 bit.

    What else can I try to get my HOSTS file working again? If there's any more information I should provide, please let me know.

    Thanks in advance.
     
  2. rc09u23

    rc09u23 New Member

    Joined:
    Jul 19, 2012
    Messages:
    2
    Likes Received:
    0
    I really hope you get an answer because I have been having the exact same issue and this is the only relevant post I have been able to find about it.
     
  3. Jawzper

    Jawzper Active Member

    Joined:
    Jun 8, 2012
    Messages:
    4
    Likes Received:
    0
    Well, at least i'm not alone. I still have not been able to resolve this.
     
  4. niko48

    niko48 New Member

    Joined:
    Jan 6, 2013
    Messages:
    2
    Likes Received:
    0
    I am having the same issue. I do not have a 'hosts' file. Should I create one?
     

Share This Page

Loading...