Solved

cache dns on windows 7

Posted on 2014-04-21
5
147 Views
Last Modified: 2014-05-02
we have a program that loses connection with the sql server. when I do a display dns on the windows 7 machine, the dns record im looking for doesn't show up. when I disable the dns services, and I do a display, it shows up. how can I fix this issue so that I don't have to disable dns on the windows 7 machine.
0
Comment
Question by:ttrbrtsn
  • 3
  • 2
5 Comments
 
LVL 9

Expert Comment

by:BigPapaGotti
ID: 40012814
Do you have internal DNS servers setup and reachable on your internal network? Are the DNS Settings correct on all of the servers configured for use?

What are you doing to view the dns cache on the Windows 7 machine?

You can try and add a static entry in the "Hosts" file. This is located in c:\windows\system\32\drivers\etc"

You will need to open the hosts file with Notepad (ran as administrator) and then edit the file and then save your changes. What the hosts file will do is be checked first when trying to resolve hostname to IP address in a DNS lookup. If no result is found in the HOST file then the DNS Servers will be checked.

Hope this helps
0
 

Author Comment

by:ttrbrtsn
ID: 40012841
i want to avoid editing 600 host files. it must be something with windows 7.

i typed in ipconfig /displaydns
0
 
LVL 9

Expert Comment

by:BigPapaGotti
ID: 40012880
I don't blame you there. what happens when you do a NSLookup against all of your DNS Servers? Do they all provide you with the correct IP addresses?
0
 

Author Comment

by:ttrbrtsn
ID: 40020441
when i type in NSLOOKUP on my workstation, i only get one result. just shows me the DC
0
 
LVL 9

Accepted Solution

by:
BigPapaGotti earned 500 total points
ID: 40020595
You can specify different DNS  by typing the IP address after the name you want to lookup. Say for instance I want to lookup the "servername.domainname.com" on the DNS server with the IP Address of 192.168.1.1. The command below would do that:

nslookup servername.domainname.com 192.168.1.1

Do that for each DNS server you have in your environment. For example each DNS server for 192.168.1.1, 192.168.1.2, 192.168.1.3, 192.168.1.4

nslookup servername.domainname.com 192.168.1.1
nslookup servername.domainname.com 192.168.1.2
nslookup servername.domainname.com 192.168.1.3
nslookup servername.domainname.com 192.168.1.4

We want to make sure that they all return the same IP address
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is intended as an extension of a blog on Aging and Scavenging by the MS Enterprise Networking Team. In brief, Scavenging is used as follows: Each record in a zone which has been dynamically registered with an MS DNS Server will have…
Occasionally you run into the website or two that will not resolve properly using your own DNS servers.  Some people simply set up global forwarders for their DNS server.  I don’t recommend doing this because it can cause problems resolving addresse…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question