Quantcast
Results 1 to 4 of 4

HOSTS file not working; DNS Client Event ID 1012

  1. #1
    Jawzper is offline Junior Member
    Enjoys Windows 7 Forums
     
    Join Date
    Jun 2012
    Posts
    2
    Windows 7/Server 2008 R2 Firefox 13.0

    HOSTS file not working; DNS Client Event ID 1012

    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:

    Log Name: System
    Source: Microsoft-Windows-DNS-Client
    Date: 08/06/12 6:16:24 PM
    Event ID: 1012
    Task Category: None
    Level: Error
    Keywords:
    User: NETWORK SERVICE
    Computer: qcore7
    Description:
    There was an error while attempting to read the local hosts file.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    <System>
    <Provider Name="Microsoft-Windows-DNS-Client" Guid="{1C95126E-7EEA-49A9-A3FE-A378B03DDB4D}" />
    <EventID>1012</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x4000000000000000</Keywords>
    <TimeCreated SystemTime="2012-06-08T08:16:24.424228100Z" />
    <EventRecordID>99726</EventRecordID>
    <Correlation />
    <Execution ProcessID="1552" ThreadID="3300" />
    <Channel>System</Channel>
    <Computer>qcore7</Computer>
    <Security UserID="S-1-5-20" />
    </System>
    <EventData>
    <Data Name="ErrorCode">3221225485</Data>
    <Data Name="Location">0</Data>
    <Data Name="Context">0</Data>
    </EventData>
    </Event>
    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:
    127.0.0.1 localhost
    ::1 localhost
    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.

    Reply With Quote Reply With Quote

  2. #2
    rc09u23 is offline Junior Member
    Enjoys Windows 7 Forums
     
    Join Date
    Jul 2012
    Posts
    1
    Windows 7/Server 2008 R2 Chrome 17.0.963.78

    Re: HOSTS file not working; DNS Client Event ID 1012

    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.

    Reply With Quote Reply With Quote

  3. #3
    Jawzper is offline Junior Member Thread Starter Thread Starter
    Enjoys Windows 7 Forums
     
    Join Date
    Jun 2012
    Posts
    2
    Windows 7/Server 2008 R2 Firefox 13.0.1

    Re: HOSTS file not working; DNS Client Event ID 1012

    Quote Originally Posted by rc09u23 View Post
    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.
    Well, at least i'm not alone. I still have not been able to resolve this.

    Reply With Quote Reply With Quote

  4. #4
    niko48 is offline Junior Member
    Enjoys Windows 7 Forums
     
    Join Date
    Jan 2013
    Posts
    1
    Windows 7/Server 2008 R2 Firefox 17.0

    Re: HOSTS file not working; DNS Client Event ID 1012

    Quote Originally Posted by Jawzper View Post
    Well, at least i'm not alone. I still have not been able to resolve this.
    I am having the same issue. I do not have a 'hosts' file. Should I create one?

    Reply With Quote Reply With Quote

Similar Threads

  1. How can I change hosts file ? It won't let me
    By d8000 in forum Windows 7 Support
    Replies: 6
    Last Post: 04-01-2011, 04:51 PM
  2. hosts file tampered with
    By zaven in forum Windows 7 Support
    Replies: 7
    Last Post: 07-08-2010, 03:18 AM
  3. Windows 7 x64 Hosts File
    By kevvyb in forum Windows 7 Support
    Replies: 5
    Last Post: 02-01-2010, 05:35 PM
  4. hosts file
    By dyrer in forum Windows 7 Networking
    Replies: 3
    Last Post: 07-11-2009, 07:44 PM
  5. Removing localhost from hosts file
    By squillman in forum Windows 7 Support
    Replies: 0
    Last Post: 05-16-2009, 10:36 PM

Visitors found this page by searching for:

there was an error while attempting to read the local hosts file

dns client events 1012

event id 1012 dns

event id 1012 windows 7

event id 1012 windows 8error 1012 there was an error while attempting to read the local hosts filedns client events 1012 windows 7dns client 3221225485there was an error while attempting to read the local hosts file event id 1012windows 7 error 1012код события 1012 win7 dnsSystem log there was an error while attempting to read local hostsevent id 1012 dns client viewerdns client events 1012 shut downevent id 1012 microsoft-windows-dns client eventsthere was an error while attempting to read the local hosts file windows 2008dns 1012 eventevent id 1012 dns client events on server2008error code 3221225485 host filethere was an error while attempting to read the local host file event id 1012 windows server 2008windows 8 There was an error while attempting to read the local hosts fileWindows error and event 1012dns client event error 1012event id 1012 error attempting to read local hosts filemicrosoft-windows-dns-client there was an error while attempting to read the local hosts

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •