Sponsored Content
Full Discussion: UNIX for Dummies Test
Special Forums News, Links, Events and Announcements UNIX for Dummies Test Post 33802 by minazk on Monday 20th of January 2003 09:57:18 AM
Old 01-20-2003
MySQL

I got 9/10...but just for info purpose...


Q.7's answer was /etc/passwd ???? or not
& Q.2's ans was it "df" ??

I'd like to know where i went wrong
i'm a bit confused..
Smilie
minazk
 

8 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

Unix for Dummies FAQ

I have created a small FAQ for the "Unix for Dummies" forum. Hopefully this will be useful, as there are questions which are asked (and answered) repeatedly. <A HREF="http://www.droflet.net/unix_dot_com_faq.html">http://www.droflet.net/unix_dot_com_faq.html (0 Replies)
Discussion started by: PxT
0 Replies

2. UNIX for Dummies Questions & Answers

scripts for dummies

í have no idea how to write a script. can someone help? how would i write a script that will do the following commands mkdir temp cp * temp cd temp ls i want to be able to do a set of commands by typing in only one command. i´m a windows user that is trying to learn unix, finally :P so... (6 Replies)
Discussion started by: eeldivady
6 Replies

3. Shell Programming and Scripting

Perl for Dummies

Hi all. iam new to this and i want to learn perl Any good website out there ?? anything will do thanks :( (1 Reply)
Discussion started by: perleo
1 Replies

4. UNIX for Dummies Questions & Answers

Unix Test

Hi, I just started studying AI at the university of amsterdam and I heard there is some basic UNIX test which is available online. Well, if any of you knows a link to that test I would truely appreciate it. Thanks a lot, L (1 Reply)
Discussion started by: L.A. BOSS
1 Replies

5. Solaris

Solaris for dummies

Is there one command that will display all system information on a Solaris host running Solaris 8? System information such as model, memory, CPU, disk space etc. etc. (2 Replies)
Discussion started by: mita
2 Replies

6. Shell Programming and Scripting

Test on string containing spacewhile test 1 -eq 1 do read a $a if test $a = quitC then break fi d

This is the code: while test 1 -eq 1 do read a $a if test $a = stop then break fi done I read a command on every loop an execute it. I check if the string equals the word stop to end the loop,but it say that I gave too many arguments to test. For example echo hello. Now the... (1 Reply)
Discussion started by: Max89
1 Replies

7. Shell Programming and Scripting

How to check weather a string is like test* or test* ot *test* in if condition

How to check weather a string is like test* or test* ot *test* in if condition (5 Replies)
Discussion started by: johnjerome
5 Replies

8. UNIX for Dummies Questions & Answers

dummies question

Please help to answer some highlighted question below. 1. How to create more than 1 partition in a single hard disk? 2. How to format the created partition to be viewable like in windows C: or D: ? 3. How to use pen drive in unix environment? 4. How to find a file starting with... (8 Replies)
Discussion started by: jimmyysk
8 Replies
Net::DNS::Nameserver(3) 				User Contributed Perl Documentation				   Net::DNS::Nameserver(3)

NAME
Net::DNS::Nameserver - DNS server class SYNOPSIS
"use Net::DNS::Nameserver;" DESCRIPTION
Instances of the "Net::DNS::Nameserver" class represent simple DNS server objects. See "EXAMPLE" for an example. METHODS
new my $ns = Net::DNS::Nameserver->new( LocalAddr => "10.1.2.3", LocalPort => "5353", ReplyHandler => &reply_handler, Verbose => 1 ); Creates a nameserver object. Attributes are: LocalAddr IP address on which to listen. Defaults to INADDR_ANY. LocalPort Port on which to listen. Defaults to 53. ReplyHandler Reference to reply-handling subroutine. Required. Verbose Print info about received queries. Defaults to 0 (off). The ReplyHandler subroutine is passed the query name, query class, and query type. It must return the response code and references to the answer, authority, and additional sections of the response. Common response codes are: NOERROR No error FORMERR Format error SERVFAIL Server failure NXDOMAIN Non-existent domain (name doesn't exist) NOTIMP Not implemented REFUSED Query refused See RFC 1035 and the IANA dns-parameters file for more information: ftp://ftp.rfc-editor.org/in-notes/rfc1035.txt http://www.isi.edu/in-notes/iana/assignments/dns-parameters The nameserver will listen for both UDP and TCP connections. On Unix-like systems, the program will probably have to run as root to listen on the default port, 53. A non-privileged user should be able to listen on ports 1024 and higher. Returns a Net::DNS::Nameserver object, or undef if the object couldn't be created. See "EXAMPLE" for an example. main_loop $ns->main_loop; Start accepting queries. EXAMPLE
The following example will listen on port 5353 and respond to all queries for A records with the IP address 10.1.2.3. All other queries will be answered with NXDOMAIN. Authority and additional sections are left empty. #!/usr/bin/perl -Tw use Net::DNS; use strict; sub reply_handler { my ($qname, $qclass, $qtype) = @_; my ($rcode, @ans, @auth, @add); if ($qtype eq "A") { my ($ttl, $rdata) = (3600, "10.1.2.3"); push @ans, Net::DNS::RR->new("$qname $ttl $qclass $qtype $rdata"); $rcode = "NOERROR"; } else { $rcode = "NXDOMAIN"; } return ($rcode, @ans, @auth, @add); } my $ns = Net::DNS::Nameserver->new( LocalPort => 5353, ReplyHandler => &reply_handler, Verbose => 1 ); if ($ns) { $ns->main_loop; } else { die "couldn't create nameserver object "; } BUGS
Net::DNS::Nameserver objects can handle only one query at a time. COPYRIGHT
Copyright (c) 2000-2002 Michael Fuhr. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSO
perl(1), Net::DNS, Net::DNS::Resolver, Net::DNS::Packet, Net::DNS::Update, Net::DNS::Header, Net::DNS::Question, Net::DNS::RR, RFC 1035 perl v5.8.0 2002-05-31 Net::DNS::Nameserver(3)
All times are GMT -4. The time now is 11:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy