Solved

cache dns on windows 7

Posted on 2014-04-21
5
140 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
One of the most often confused topics in the area DNS is the idea of GLUE records. Specifically, what they are, when they are needed, when they are provided, and how they are created. First, WHAT IS GLUE? To understand GLUE, you must first under…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now