Solved

cache dns on windows 7

Posted on 2014-04-21
5
156 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

This article explains how a domain name may be inadvertently appended to all DNS queries. This exhibits as described below. (CODE)And / Or: (CODE) Cause This issue can occur in either of these two scenarios. EITHER 1. A Primary DNS S…
I've written instructions for one router type, but this principle may be useful for others of the same brand and even other brands of router. Problem: I had an issue especially with mobile devices that refused to use DNS information supplied via…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

738 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