Hi all....
I’ll have a test for the IT department in the company I work, the test is about UNIX administration and TCP/IP routing configuration, in the UNIX admin server I don’t have any problem, but routing is my pain.
To make it more difficult, I can not use companies infrastructure to... (1 Reply)
hi all, i am currently implementating project scope for a future enterprise solution provider in the storage area.
I was hoping if anyone could help me to answer questions regarding the Central Configurations Management System in the RedHat or other linux distro.
In the Unix env. , most of... (2 Replies)
Hello everbody:
I have a Sun V480 with Solaris9 on it, and IT is sending mails using smtpd to some mail server, and now we have to change the IP address of that mail server, Do you have any idea where should I change that IP address, can
Thanks alot (3 Replies)
Hi,
I'm using debian etch in my server and have a preconfigured LDAP server. I want to know which configuration can I use to configure libnss-ldap. My main questions is:
Does the LDAP database require login?
Special LDAP privileges for root?
Make the configuration file readable/writeable by... (1 Reply)
Hello All,
I was finaly was able to recover my root password, thanks to this board ;)
Now, I need to change the IP, well when I do netstat -rn the following displays:
192.168.0.77 127.0.0.1 UH 1 0 lo0
127.0.2.1 127.0.0.1 UH 1... (3 Replies)
Hi,
I am using Enterprise Linux Server release 5.2, now i am configuring Samba server, i want to access linux directories from Windows xp/2003 desktops. I installed and configured but i am unable to access them, could you please give me suggestion about configurations.
Thanks. (2 Replies)
Does anyone have experience with automating Raid configurations with Areca controllers? Or if this even possible. I'd like to setup a script to automate raiding of my machine over serial. Anyone have any experience, or anything similar to this?
Update: Perl::Expect is my friend. (0 Replies)
I need to upgrade the memory configuration on our T2000s to 24 Gb. I presently have 8x2Gb DIMMS in Rank 0 and 8x1Gb DIMMS in Rank 1, but the OS only recognizes 16Gb. How can I upgrade these T2000s to 24Gb? (2 Replies)
Hi All,
I have 22 CPU's associated with a pool, which was created with pooladm. But by mistake somebody made it with pool name - wps-16cpu (I want to rename it to wps-22cpu). Its pset name is wps-16cpu-pset (I want to rename it to wps-22cpu-pset). How do I change it ?
Also, can I associate... (3 Replies)
Dear experts
I've managed to configure Blind, Zone files and i can view the domain that i created via nslookup and ping the domain on the same server.
Server: 41.216.x.xx
Address: 41.216.4.175#53
Name: mail.eeee.co.zm
Address: 41.216.x.xx
However, when... (1 Reply)
Discussion started by: herberwz
1 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)