Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 171
  • Last Modified:

cache dns on windows 7

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
ttrbrtsn
Asked:
ttrbrtsn
  • 3
  • 2
1 Solution
 
BigPapaGottiCommented:
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
 
ttrbrtsnAuthor Commented:
i want to avoid editing 600 host files. it must be something with windows 7.

i typed in ipconfig /displaydns
0
 
BigPapaGottiCommented:
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
 
ttrbrtsnAuthor Commented:
when i type in NSLOOKUP on my workstation, i only get one result. just shows me the DC
0
 
BigPapaGottiCommented:
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now