10-02-2007
Quote:
Originally Posted by
porter
try
nslookup hello.world <target-ip>
nslookup hello <ip>
its doing nothinig, Had to press ^c
10 More Discussions You Might Find Interesting
1. Cybersecurity
Hello,
i have a problem with my sendmail, i want' to keep a user from sending mail, how can i process ?
My user is titi, and i don't want' that titi can't send mail via sendmail is it possible ?
thnak a lot (1 Reply)
Discussion started by: westside
1 Replies
2. UNIX for Dummies Questions & Answers
Hello: How would you send message to other unix users logged in into the system now.. what should i verify, before sending them a mail across that displays mesage on the terminal. Any man pages? Thanks, ST2000 (2 Replies)
Discussion started by: ST2000
2 Replies
3. Shell Programming and Scripting
Hai..I have one question in unix Shell script.Following is the script
System Configuration: lcpu=4 mem=8192MB
kthr memory page faults cpu
----- ----------- ------------------------ ------------ -----------
r b avm fre re pi po fr sr cy ... (1 Reply)
Discussion started by: sollin
1 Replies
4. UNIX for Dummies Questions & Answers
What is the best way to send message from Unix script to PC users connected to the box ?
I tried "smbclient -M <machine>" but doesn't work. I prefer not to use Samba.
Thanks. (3 Replies)
Discussion started by: mnagaya
3 Replies
5. Shell Programming and Scripting
Hi All,
I want to send a message through email.
I have written below code. But it is not worling. Anybody has idea, why it is not working?.
export $file1=$home1/pip1.$$
mailx -s "This Message from unix" abc@yahoo.com< $file1
thanks,Mary. (5 Replies)
Discussion started by: MARY76
5 Replies
6. UNIX for Advanced & Expert Users
How to send a message to another unix terminal along with the date specified (4 Replies)
Discussion started by: aajan
4 Replies
7. Solaris
how to login with ssh to remote system with out applying the remote root/user password
with rlogin we can ujse .rhosts file
but with ssh howits possible
plz guide (2 Replies)
Discussion started by: tv.praveenkumar
2 Replies
8. Post Here to Contact Site Administrators and Moderators
To be able to send PMs your post count must be 10 or greater.
You currently have 16 posts. If you have a question for the forum moderators and/or administrators, please post your question here.
...you might want to try searching the forums:
What am I doing wrong? (3 Replies)
Discussion started by: -=XrAy=-
3 Replies
9. UNIX for Dummies Questions & Answers
Greetings,
basically what I want to do is take the standard error from a cron file and store it on a file in a remote host (from Solaris to Linux). I want to create a cron file to do this everyday or put it on a script that will send it everyday to the other system (that doesnt matter). Any ideas... (2 Replies)
Discussion started by: picolin
2 Replies
10. AIX
hello friends I need to send a text message MSM by AIX with a function called CURL you have some example of how it is done so that you can help me please (4 Replies)
Discussion started by: tricampeon81
4 Replies
LEARN ABOUT DEBIAN
net::nslookup
Net::Nslookup(3pm) User Contributed Perl Documentation Net::Nslookup(3pm)
NAME
Net::Nslookup - Provide nslookup(1)-like capabilities
SYNOPSIS
use Net::Nslookup;
my @addrs = nslookup $host;
my @mx = nslookup(type => "MX", domain => "perl.org");
DESCRIPTION
"Net::Nslookup" provides the capabilities of the standard UNIX command line tool nslookup(1). "Net::DNS" is a wonderful and full featured
module, but quite often, all you need is `nslookup $host`. This module provides that functionality.
"Net::Nslookup" exports a single function, called "nslookup". "nslookup" can be used to retrieve A, PTR, CNAME, MX, NS, SOA, and TXT
records.
my $a = nslookup(host => "use.perl.org", type => "A");
my @mx = nslookup(domain => "perl.org", type => "MX");
my @ns = nslookup(domain => "perl.org", type => "NS");
my $name = nslookup(host => "206.33.105.41", type => "PTR");
"nslookup" takes a hash of options, one of which should be term, and performs a DNS lookup on that term. The type of lookup is determined
by the type argument. If server is specified (it should be an IP address, or a reference to an array of IP addresses), that server(s) will
be used for lookups.
If only a single argument is passed in, the type defaults to A, that is, a normal A record lookup.
If "nslookup" is called in a list context, and there is more than one address, an array is returned. If "nslookup" is called in a scalar
context, and there is more than one address, "nslookup" returns the first address. If there is only one address returned, then, naturally,
it will be the only one returned, regardless of the calling context.
domain and host are synonyms for term, and can be used to make client code more readable. For example, use domain when getting NS records,
and use host for A records; both do the same thing.
server should be a single IP address or a reference to an array of IP addresses:
my @a = nslookup(host => 'example.com', server => '4.2.2.1');
my @a = nslookup(host => 'example.com', server => [ '4.2.2.1', '128.103.1.1' ])
By default, when doing CNAME, MX, and NS lookups, "nslookup" returns names, not addresses. This is a change from versions prior to 2.0,
which always tried to resolve names to addresses. Pass the recurse => 1 flag to "nslookup" to have it follow CNAME, MX, and NS lookups.
Note that this usage of "recurse" is not consistent with the official DNS meaning of recurse.
# returns soemthing like ("mail.example.com")
my @mx = nslookup(domain => 'example.com', type => 'MX');
# returns soemthing like ("127.0.0.1")
my @mx = nslookup(domain => 'example.com', type => 'MX', recurse => 1);
SOA lookups return the SOA record in the same format as the `host` tool:
print nslookup(domain => 'example.com', type => 'SOA');
dns1.icann.org. hostmaster.icann.org. 2011061433 7200 3600 1209600 3600
TIMEOUTS
Lookups timeout after 15 seconds by default, but this can be configured by passing timeout => X to "nslookup".
DEBUGGING
Pass debug => 1 to "nslookup" to emit debugging messages to STDERR.
AUTHOR
darren chamberlain <darren@cpan.org>
perl v5.12.4 2011-08-15 Net::Nslookup(3pm)