How to create a static entry in the DNS Cache

T

Tom Rossi

How do you add a static entry to the Win2000 DNS Cache? I don't see
an option to create a new record?

Thanks,
Tom
 
D

Deji Akomolafe

You don't. But if you MUST, then you can create a forward lokup zone and
create the record you want to get into your Cache. Then request that record.
It will then get into your cache. The problem, apart from being a silly way
to do things, is that this record will disappear as soon as you restart DNS
service or reboot the DNS server.

Example: say you want ThisRecord.Microsoft.com to get into your Cache.
Create a zone called Microsoft.com on your DNS. Then under that create an A
record (or whatever type) called ThisRecord. Then put in whatever you want
the IP to be. Now, restart DNS service (to clear your existing Cache). now,
request ThisRecord.Microsoft.com. Your DNS server will serve it up AND cache
it. You can (should) then delete the Microsoft.com zone you created,
otherwise you will NEVER be able to get to the REAL Microsoft.com.

--
Sincerely,

Dèjì Akómöláfé, MCSE MCSA MCP+I
www.akomolafe.com
www.iyaburo.com
Do you now realize that Today is the Tomorrow you were worried about
Yesterday? -anon
 
K

Kevin D. Goodknecht [MVP]

In
Tom Rossi said:
How do you add a static entry to the Win2000 DNS Cache? I don't see
an option to create a new record?

Thanks,
Tom

Don't put a static entry in cache, if this is a record you must have, create
a zone and record for the entry you want.
 
T

Tom Rossi

Kevin D. Goodknecht said:
In

Don't put a static entry in cache, if this is a record you must have, create
a zone and record for the entry you want.


--
Best regards,
Kevin D4 Dad Goodknecht Sr. [MVP]
Hope This Helps
============================
==========================================

Okay, let me be a little more clear. If I create a zone I have to
create all the records for the corresponding domain name. This is
what I am trying to avoid. The configuration is difficult to explain

Let me give you hypothetical scenario:
Lets say that you want to make it so that if someone on your network
goes to www.microsoft.com, you want to return a different IP Address
than what microsoft.com would provide. Now if I created a zone for
micorosft.com and put the one entry for www, I would ALSO have to put
all the other entries (other hosts, mx's, etc.). I was hoping to just
pre-load the cache with a record that would never time out for the one
address "www.microsoft.com". Is this possible?

Thanks,
Tom
 
K

Kevin D. Goodknecht [MVP]

In
Okay, let me be a little more clear. If I create a zone I have to
create all the records for the corresponding domain name. This is
what I am trying to avoid. The configuration is difficult to explain

Let me give you hypothetical scenario:
Lets say that you want to make it so that if someone on your network
goes to www.microsoft.com, you want to return a different IP Address
than what microsoft.com would provide. Now if I created a zone for
micorosft.com and put the one entry for www, I would ALSO have to put
all the other entries (other hosts, mx's, etc.). I was hoping to just
pre-load the cache with a record that would never time out for the one
address "www.microsoft.com". Is this possible?

Thanks,
Tom

Using your example, create a forward lookup zone named www.microsoft.com and
put a blank host in it for the IP you want is to resolve to. Now it won't
conflict with anything but www.microsoft.com.
So simple you wonder why you never thought of it! :)
 
T

Tom Rossi

Kevin D. Goodknecht said:
In

Using your example, create a forward lookup zone named www.microsoft.com and
put a blank host in it for the IP you want is to resolve to. Now it won't
conflict with anything but www.microsoft.com.
So simple you wonder why you never thought of it! :)

--
Best regards,
Kevin D4 Dad Goodknecht Sr. [MVP]
Hope This Helps
============================


Wow! That is too simple! :) Thanks very much!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

DNS cache corruption 4
DNS Cache broken? 2
DNS Problems 23
Windows Server 2003 - DNS Setting 3
DNS not updating 4
DNS and DHCP Server 4
DNS cache time 2
internal/external DNS resolution problem 9

Top