Sponsored Content
Full Discussion: Simulate 'try again' case
Special Forums IP Networking Simulate 'try again' case Post 302114720 by srinivasan_85 on Wednesday 18th of April 2007 07:02:43 AM
Old 04-18-2007
Simulate 'try again' case

Hi,
I was searching thro the topic and could not find a thread which zeroes in on the case i'm trying to simulate. Basically I have a need to simulate DNS Try again cases, without bringing the dns_sever down (by manipulating the entries in /etc/resolv.conf under 'nameserver' tag). I am so specific about doing this simulation without manipulating resolv.conf, because i have a program which would send UDP requests to dns_server (obviously the return value will be success as i doesnt check whether dns_server exists). In this case, I want dns_server to up, and tell my program when it gets a try again.

So is there a method by which i can simulate 'Host not found, try again' case without terminating nameserver?

PS: If I'm correct, resolv.c contacts the dns server at port 53 (default) to the IP addresses specified under nameserver tag of resolv.conf?

Thanks,
Srini
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

lower case to upper case string conversion in shell script

How can convert a Lower case variable value to an upper case in the kron shell script. (3 Replies)
Discussion started by: dchalavadi
3 Replies

2. Shell Programming and Scripting

Script needed to select and delete lower case and mixed case records

HELLO ALL, URGENTLY NEEDED A SCRIPT TO SELECT AND DELETE LOWER AND MIXED CASE RECORDS FROM A COLUMN IN A TABLE. FOR EXAMPLE : Table name is EMPLOYEE and the column name is CITY and the CITY column records will be: Newyork washington ... (1 Reply)
Discussion started by: abhilash mn
1 Replies

3. Shell Programming and Scripting

data array needs to change upper case to lower case

Hi all, i have a data array as followes. ARRAY=DFSG345GGG ARRAY=234FDFG090 ARRAY=VDFVGBGHH so on.......... i need all english letters to be change to lower case. So i am expecting to see ARRAY=dfsg345ggg ARRAY=234fdfg090 ARRAY=vdfvgbghh so on........ If i have to copy this data in... (8 Replies)
Discussion started by: usustarr
8 Replies

4. Shell Programming and Scripting

sed ignoring case for search but respecting case for subtitute

Hi I want to make string substitution ignoring case for search but respecting case for subtitute. Ex changing all occurences of "original" in a file to "substitute": original becomes substitute Origninal becomes Substitute ORIGINAL becomes SUBSTITUTE I know this a little special but it's not... (1 Reply)
Discussion started by: kmchen
1 Replies

5. Shell Programming and Scripting

[Solved] Change Upper case to Lower case in C shell

Is there a command that can switch a character variable from UPPER case to lower case? like foreach AC ( ABC BCD PLL QIO) set ac `COMMAND($AC)` ... end Thanks a lot! (3 Replies)
Discussion started by: rockytodd
3 Replies

6. Programming

Tool to simulate non-sequential disk I/O (simulate db file sequential read) in C POSIX

Writing a Tool to simulate non-sequential disk I/O (simulate db file sequential read) in C POSIX I have over the years come across the same issue a couple of times, and it normally is that the read speed on SAN is absolutely atrocious when doing non-sequential I/O to the disks. Problem being of... (7 Replies)
Discussion started by: vrghost
7 Replies

7. Shell Programming and Scripting

Conversion from Upper Case to Lower Case Condition based

Hello Unix Gurus : It would be really appreciative if can find a solution for this . I have records in a file . I need to Capitalize the records based on condition . For Example i tried the following Command COMMAND --> fgrep "2000YUYU" /export/home/oracle/TST/data.dat | tr '' ''... (12 Replies)
Discussion started by: tsbiju
12 Replies

8. Red Hat

Simulate Storage

Hello, I wanted to simulate SAN on my VMware PLayer running RHEL. Is there any tool that can be used to simulate storage setup for learning/testing? THanks, (1 Reply)
Discussion started by: ikn3
1 Replies

9. Shell Programming and Scripting

Change first letter of a word from lower case to upper case

Hi all, I am trying to find a way to change first letter in a word from lower case to upper case. It should be done for each first word in text or in paragraph, and also for each word after punctuation like . ; : ! ?I found the following command sed -i 's/\s*./\U&\E/g' $@ filenamebut... (7 Replies)
Discussion started by: georgi58
7 Replies
FAUHDLI(1)							  [FIXME: manual]							FAUHDLI(1)

NAME
fauhdli - Interprete intermediate code that was generated from fauhdlc. SYNOPSIS
fauhdli [ --debug ] { --simulate top-entity } [ --output vcd-file ] [ --trace entity ...] { input-file } DESCRIPTION
fauhdli is an interpreter for the intermediate code files that result from the VHDL compiler fauhdlc. OPTIONS
These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. -d, --debug Enable debugging, which will print out line numbers for each intermediate code line that is processed. -s, --simulate top-entity Use top-entity as start of the simulation, e.g."work:test_bench". -o, --output vcd-file Output the signal changes into vcd-file. The result can be viewed with gtkwave. -t, --trace entity Trace all signals in entity. Use in conjunction with -o. May be specified more than once. SEE ALSO
fauhdlc(1) CONTACT
Please report all bugs to FAUmachine Team info@faumachine.org. FAUmachine/fauhdlc Homepage[1]. AUTHOR
FAUmachine Team COPYRIGHT
Copyright (C) 2009 FAUmachine Team Developed at Friedrich Alexander University Erlangen-Nuremberg. FAUhdlc comes with ABSOLUTELY NO WARRANTY. FAUhdlc is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. See COPYING for details. NOTES
1. FAUmachine/fauhdlc Homepage http://www.faumachine.org FAUmachine Team 08/12/2011 FAUHDLI(1)
All times are GMT -4. The time now is 01:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy