PC Review


Reply
Thread Tools Rate Thread

dns cache and hosts file

 
 
Bilal Abbasi
Guest
Posts: n/a
 
      3rd Oct 2003
I found a hosts file in the Winnt directory that had entries for google.
These included all possible scenarios, i.e. www.google.com, google.com,
www.google.ie... etc etc. resolving to the a couple of ip address that were
obviously not google.

I kept trying to clear the dns cache by using the command line "ipconfig
/flushdns" and it would not clear the chache. My question is how does my
dns server know to look at the hosts file in the 'winnt\hosts' locations
instead of "winnt\system32\drivers\etc\hosts", if indeed it uses hosts file
to load into its cache.

Any help will be appreciated.

Bilal Abbasi.


 
Reply With Quote
 
 
 
 
Jonathan Maltz [MS-MVP]
Guest
Posts: n/a
 
      3rd Oct 2003
Hi,

Actually the hosts file comes before any DNS lookups. To remove those
domain/ips just delete the relevant lines, no reboot necessary

--
--Jonathan Maltz [Microsoft MVP - Windows Server]
http://www.imbored.biz - A Windows Server 2003 visual, step-by-step
tutorial site :-)
Only reply by newsgroup. If I see an email I didn't ask for, it will be
deleted without reading.


"Bilal Abbasi" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I found a hosts file in the Winnt directory that had entries for google.
> These included all possible scenarios, i.e. www.google.com, google.com,
> www.google.ie... etc etc. resolving to the a couple of ip address that

were
> obviously not google.
>
> I kept trying to clear the dns cache by using the command line "ipconfig
> /flushdns" and it would not clear the chache. My question is how does my
> dns server know to look at the hosts file in the 'winnt\hosts' locations
> instead of "winnt\system32\drivers\etc\hosts", if indeed it uses hosts

file
> to load into its cache.
>
> Any help will be appreciated.
>
> Bilal Abbasi.
>
>



 
Reply With Quote
 
Jonathan Maltz [MS-MVP]
Guest
Posts: n/a
 
      3rd Oct 2003
That, I don't know, but after deleting the lines and ipconfig /flushdns,
everything worked properly, right?

--
--Jonathan Maltz [Microsoft MVP - Windows Server]
http://www.imbored.biz - A Windows Server 2003 visual, step-by-step
tutorial site :-)
Only reply by newsgroup. If I see an email I didn't ask for, it will be
deleted without reading.


"Bilal Abbasi" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Johnathan,
>
> I did delete the entries. Would you know why the TTL for all those

records
> was 31534947 where it should be less than 1000?
>
> Thanks
> Bilal
>
>
> "Jonathan Maltz [MS-MVP]" <(E-Mail Removed)> wrote in message
> news:um%(E-Mail Removed)...
> > Hi,
> >
> > Actually the hosts file comes before any DNS lookups. To remove those
> > domain/ips just delete the relevant lines, no reboot necessary
> >
> > --
> > --Jonathan Maltz [Microsoft MVP - Windows Server]
> > http://www.imbored.biz - A Windows Server 2003 visual, step-by-step
> > tutorial site :-)
> > Only reply by newsgroup. If I see an email I didn't ask for, it will be
> > deleted without reading.
> >
> >
> > "Bilal Abbasi" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > I found a hosts file in the Winnt directory that had entries for

google.
> > > These included all possible scenarios, i.e. www.google.com,

google.com,
> > > www.google.ie... etc etc. resolving to the a couple of ip address that

> > were
> > > obviously not google.
> > >
> > > I kept trying to clear the dns cache by using the command line

"ipconfig
> > > /flushdns" and it would not clear the chache. My question is how does

> my
> > > dns server know to look at the hosts file in the 'winnt\hosts'

locations
> > > instead of "winnt\system32\drivers\etc\hosts", if indeed it uses hosts

> > file
> > > to load into its cache.
> > >
> > > Any help will be appreciated.
> > >
> > > Bilal Abbasi.
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Jonathan Maltz [MS-MVP]
Guest
Posts: n/a
 
      3rd Oct 2003
Bilal,

You said that the entries for sites like Google were much different?

I just came across this, see if it applies:
http://vil.nai.com/vil/content/v_100719.htm

--
--Jonathan Maltz [Microsoft MVP - Windows Server]
http://www.imbored.biz - A Windows Server 2003 visual, step-by-step
tutorial site :-)
Only reply by newsgroup. If I see an email I didn't ask for, it will be
deleted without reading.


"Jonathan Maltz [MS-MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> That, I don't know, but after deleting the lines and ipconfig /flushdns,
> everything worked properly, right?
>
> --
> --Jonathan Maltz [Microsoft MVP - Windows Server]
> http://www.imbored.biz - A Windows Server 2003 visual, step-by-step
> tutorial site :-)
> Only reply by newsgroup. If I see an email I didn't ask for, it will be
> deleted without reading.
>
>
> "Bilal Abbasi" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Johnathan,
> >
> > I did delete the entries. Would you know why the TTL for all those

> records
> > was 31534947 where it should be less than 1000?
> >
> > Thanks
> > Bilal
> >
> >
> > "Jonathan Maltz [MS-MVP]" <(E-Mail Removed)> wrote in message
> > news:um%(E-Mail Removed)...
> > > Hi,
> > >
> > > Actually the hosts file comes before any DNS lookups. To remove those
> > > domain/ips just delete the relevant lines, no reboot necessary
> > >
> > > --
> > > --Jonathan Maltz [Microsoft MVP - Windows Server]
> > > http://www.imbored.biz - A Windows Server 2003 visual, step-by-step
> > > tutorial site :-)
> > > Only reply by newsgroup. If I see an email I didn't ask for, it will

be
> > > deleted without reading.
> > >
> > >
> > > "Bilal Abbasi" <(E-Mail Removed)> wrote in message
> > > news:(E-Mail Removed)...
> > > > I found a hosts file in the Winnt directory that had entries for

> google.
> > > > These included all possible scenarios, i.e. www.google.com,

> google.com,
> > > > www.google.ie... etc etc. resolving to the a couple of ip address

that
> > > were
> > > > obviously not google.
> > > >
> > > > I kept trying to clear the dns cache by using the command line

> "ipconfig
> > > > /flushdns" and it would not clear the chache. My question is how

does
> > my
> > > > dns server know to look at the hosts file in the 'winnt\hosts'

> locations
> > > > instead of "winnt\system32\drivers\etc\hosts", if indeed it uses

hosts
> > > file
> > > > to load into its cache.
> > > >
> > > > Any help will be appreciated.
> > > >
> > > > Bilal Abbasi.
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Bilal Abbasi
Guest
Posts: n/a
 
      3rd Oct 2003
Bingo!!!!!!!

That is exactly what has happened.


"Jonathan Maltz [MS-MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Bilal,
>
> You said that the entries for sites like Google were much different?
>
> I just came across this, see if it applies:
> http://vil.nai.com/vil/content/v_100719.htm
>
> --
> --Jonathan Maltz [Microsoft MVP - Windows Server]
> http://www.imbored.biz - A Windows Server 2003 visual, step-by-step
> tutorial site :-)
> Only reply by newsgroup. If I see an email I didn't ask for, it will be
> deleted without reading.
>
>
> "Jonathan Maltz [MS-MVP]" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > That, I don't know, but after deleting the lines and ipconfig /flushdns,
> > everything worked properly, right?
> >
> > --
> > --Jonathan Maltz [Microsoft MVP - Windows Server]
> > http://www.imbored.biz - A Windows Server 2003 visual, step-by-step
> > tutorial site :-)
> > Only reply by newsgroup. If I see an email I didn't ask for, it will be
> > deleted without reading.
> >
> >
> > "Bilal Abbasi" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > Johnathan,
> > >
> > > I did delete the entries. Would you know why the TTL for all those

> > records
> > > was 31534947 where it should be less than 1000?
> > >
> > > Thanks
> > > Bilal
> > >
> > >
> > > "Jonathan Maltz [MS-MVP]" <(E-Mail Removed)> wrote in message
> > > news:um%(E-Mail Removed)...
> > > > Hi,
> > > >
> > > > Actually the hosts file comes before any DNS lookups. To remove

those
> > > > domain/ips just delete the relevant lines, no reboot necessary
> > > >
> > > > --
> > > > --Jonathan Maltz [Microsoft MVP - Windows Server]
> > > > http://www.imbored.biz - A Windows Server 2003 visual, step-by-step
> > > > tutorial site :-)
> > > > Only reply by newsgroup. If I see an email I didn't ask for, it

will
> be
> > > > deleted without reading.
> > > >
> > > >
> > > > "Bilal Abbasi" <(E-Mail Removed)> wrote in message
> > > > news:(E-Mail Removed)...
> > > > > I found a hosts file in the Winnt directory that had entries for

> > google.
> > > > > These included all possible scenarios, i.e. www.google.com,

> > google.com,
> > > > > www.google.ie... etc etc. resolving to the a couple of ip address

> that
> > > > were
> > > > > obviously not google.
> > > > >
> > > > > I kept trying to clear the dns cache by using the command line

> > "ipconfig
> > > > > /flushdns" and it would not clear the chache. My question is how

> does
> > > my
> > > > > dns server know to look at the hosts file in the 'winnt\hosts'

> > locations
> > > > > instead of "winnt\system32\drivers\etc\hosts", if indeed it uses

> hosts
> > > > file
> > > > > to load into its cache.
> > > > >
> > > > > Any help will be appreciated.
> > > > >
> > > > > Bilal Abbasi.
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
hosts file locked or deleted from dns cache? Dole Bludger Windows XP Networking 2 20th Feb 2009 09:01 PM
DNS cache and hosts file ignored =?Utf-8?B?Q2FsZWIgTHluZXNz?= Windows XP Networking 11 3rd Jun 2006 09:52 PM
Re: Hosts file doesn't work anymore, can't flush DNS cache Jonathan de Boyne Pollard Microsoft Windows 2000 DNS 0 10th Oct 2003 06:20 PM
Hosts file doesn't work anymore, can't flush DNS cache Mia Leckie Microsoft Windows 2000 DNS 0 10th Oct 2003 05:26 PM
RE: Hosts file doesn't work anymore, can't flush DNS cache Marc Reynolds [MSFT] Microsoft Windows 2000 DNS 0 10th Oct 2003 04:18 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:53 PM.