Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

cache dns on windows 7

Posted on 2014-04-21
5
Medium Priority
?
169 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 2000 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

Fill in the form and get your FREE NFR key NOW!

Veeam® is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Question has a verified solution.

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

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…
BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (https://kb.isc.org/article/AA-01272), affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

705 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