LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 09-13-2004, 10:10 PM   #1
blackzone
Member
 
Registered: Jul 2004
Posts: 256

Rep: Reputation: 30
shell script for stress testing


need to write a script to stress test a dns server.

mainly just keep sending "dig @127.0.0.3 test.example.com" and see how many returned.

my question is not sure how to count it?

I'm thinking maybe send it to a file? dig @127.0.0.3 test.example.com>>file
and count how many returned. Can anyone help on this?
 
Old 09-13-2004, 11:14 PM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
What does the dig command return for the DNS server you're using?
 
Old 09-13-2004, 11:35 PM   #3
blackzone
Member
 
Registered: Jul 2004
Posts: 256

Original Poster
Rep: Reputation: 30
dig basically is like nslookup.

right now I just print out the date before and after query and check how many query I can do in a second
 
Old 09-14-2004, 01:00 AM   #4
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
I've thought of something better that what I was originally thinking of (I was originally going to grep a dump of all the outputs from the requests...):

do:
Code:
time for ((a=1; a <= 1000; a++)); do dig @127.0.0.3 test.example.com; done
That will tell you how long it took to do 1000 dig requests in a row.

Dave
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stress testing tools Risc91 AIX 7 10-10-2012 02:36 PM
Memory stress test command/script twantrd Solaris / OpenSolaris 5 11-02-2005 01:38 AM
Stress Testing my CPU drisay Slackware 4 10-01-2004 05:45 AM
Stress Testing E-mail Server Dewar Linux - Software 0 04-21-2004 07:17 PM
case airflow, and fan control, HD cable question, and stress testing help a NEWBIE zetsui Linux - Hardware 3 03-17-2004 04:36 AM


All times are GMT -5. The time now is 02:50 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration