I am new to bash scripting. I want write a script that reads from the first argument file and run nslookup, then prints out each nslookup. Something like below:
File name = ip
Bash shell script: nslookup.sh
I run the command ./nslookup.sh ip, but doesn't work.
Please let me know what I am doing wrong.
Thank you in advance.
Last edited by rbatte1; 08-16-2014 at 05:19 PM..
Reason: Added CODE and ICODE tags
hello
I am a student taking an intro to UNIX class.
I have an assignment I am having trouble completing.
The assignment is as follows.
i have a file called .addr_book that has various names and phone numbers in it.
I need to write a script called lookup that will run like this
I... (2 Replies)
Write a quick shell snippet to find all of the IPV4 IP addresses
in any and all of the files under /var/lib/output/*, ignoring
whatever else may be in those files. Perform a reverse lookup on
each, and format the output neatly, like "IP=192.168.0.1,
... (0 Replies)
Hi,
i need to replace the last octate in ipaddress with 0 using bash shell for one of my applicatiom.
googling i found the below link where they do the same thing but use long2 ip which i dont see in linux.
trim ip address octet - Stack Overflow
Plz can soemone guide how do i do this... (5 Replies)
Is there a command that can lookup ip address, subnet mask, gateway, and dns all at the same. I know ifconfig can lookup ip address and subnet mask. I know route -n can lookup gateway. Not sure about a dns command. So I hope there is a way to lookup ip address, subnet mask, gateway, and dns all at... (2 Replies)
Hi All,
I've had a look around the forum but cannot find any answers for what I want to do.
I have 2 files :
FILE 1
===============
ter049107
ter049048
2013-04-09 08:15:16
ter049056
ter049083
ter049112
2013-04-09 10:35:10
2013-04-09 10:29:47
2013-04-09 07:44:05
FILE 2 - note... (4 Replies)
Hi. I need assistance with the replacing of text into a specific file via a bash script.
My bash script, once run, currently provides a menu of computer names to choose.The script copies onto my system various files, depending what computer was selected in the menu.This is working OK.
Now, I... (1 Reply)
In the bash below the user selects the file to be used. The digits of each file are unique and used to automatically locate the next file to be used in the process. The problem I can not seem to fix is that the full path needs to be referenced in the second portion and it is not currently. Is... (7 Replies)
Hy every body,
Unfortunately and without success, i want to write a bash script who maps a known IP addess to a known MAC address using iptables and for the FORWARD chain.
Within the DHCP server, i have assigned a fixed IP address to all clients based on their MAC addresses of their... (11 Replies)
Hey everyone,
I am trying to extract column values from a column in a tab-delimited text file and overlay them in a 2nd tab-delimited text file using a V-lookup type script in Unix bash.
These are the 1st few rows of the 1st input file IN1:
rsid chromosome position allele1 ... (10 Replies)
How would I write a value to a physical memory address?
I was able to read a physical memory address (for example, 0x400) using this line:
dd if=/dev/mem count=4 bs=1 skip=$(( 0x400 ))
But I get an error:
dd: 'standard input': cannot skip to specified offset
when I try to write using... (1 Reply)
Discussion started by: rabrandt
1 Replies
LEARN ABOUT OSF1
rpc.nisd_resolv
rpc.nisd_resolv(1M) System Administration Commands rpc.nisd_resolv(1M)NAME
rpc.nisd_resolv, nisd_resolv - NIS+ service daemon
SYNOPSIS
rpc.nisd_resolv [-v | -V] [ -F [-C fd]] [-t xx] [-p yy]
DESCRIPTION
rpc.nisd_resolv is an auxiliary process which provides DNS forwarding service for NIS hosts requests to both ypserv and rpc.nisd that are
running in the NIS compatibility mode. It is generally started by invoking rpc.nisd(1M) with the -B option or ypserv(1M) with the -d
option. Although it is not recommended, rpc.nisd_resolv can also be started independently with the following options.
This command requires that the /etc/resolv.conf file be setup for communication with a DNS nameserver. The nslookup utility can be used to
verify communication with a DNS nameserver. See resolv.conf(4) and nslookup(1M).
OPTIONS -F Run in foreground.
-C fd Use fd for service xprt (from nisd).
-v Verbose. Send output to the syslog daemon.
-V Verbose. Send output to stdout.
-t xx Use transport xx.
-p yy Use transient program# yy.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWnisu |
+-----------------------------+-----------------------------+
SEE ALSO nslookup(1M), rpc.nisd(1M), resolv.conf(4), attributes(5)NOTES
NIS+ might not be supported in future releases of the SolarisTM Operating Environment. Tools to aid the migration from NIS+ to LDAP are
available in the Solaris 9 operating environment. For more information, visit http://www.sun.com/directory/nisplus/transition.html.
SunOS 5.10 12 Dec 2001 rpc.nisd_resolv(1M)