?
Solved

How to repeatedly test DNS lookup in a loop

Posted on 2014-04-14
2
Medium Priority
?
1,325 Views
Last Modified: 2014-04-14
I suspect an application is running slowly because its doing a DNS lookup repeatedly, and the hosts file may be in error

There are complications on why I can not quickly debug this

So my question is:  is there a simple test that would perform a DNS look up repeatedly (cant use ping, but can use host)

Could someone please post a quick script or something like taht

Thanks  

btw, running suse
0
Comment
Question by:Anthony Lucia
[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
2 Comments
 
LVL 10

Expert Comment

by:Rafael
ID: 40000288
Not sure of the servers you're looking up so here is something that I use to help me write quick scripts.

http://www.compileonline.com/execute_bash_online.php
0
 
LVL 38

Accepted Solution

by:
Gerwin Jansen, EE MVE earned 2000 total points
ID: 40000294
You mean just running nslookup's from a script?

Like this maybe:

num=0
while [ ${num} -lt 100 ]
do
  nslookup host
  sleep 1
done;

The above will do 100 host lookups.
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

Fine Tune your automatic Updates for Ubuntu / Debian
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month12 days, 3 hours left to enroll

752 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