Task 6—Managing IP Addresses by Using DNS

About Managing IP Addresses

Step 2 Understand how the CGI scripts function.

There are two scripts that work together to return an NSLOOKUP list query (ls) for a specified zone in a CGI link.

dnszone.pl—Runs the CGI process. In the subnet column in Figure 24, the entry 172.21.10.0/24 is an active link that calls the dnszone.pl script.

The active link is coded as:

<td><a href="/cgi-lwt/dnszone.pl?zone=10.21.172.in-addr.arpa.">172.21.10.0/24</a></td> Once invoked, dnszone.pl calls the second script, dnszone_dump.

dnszone_dump—An expect script that steps through the NSLOOKUP interactive mode and returns the output of a “ls [ZONE]” command to the dnszone.pl script. The zone list, returned to the requesting web-based management browser, appears:

ls 10.21.172.in-addr.arpa.

[www.the.net]

 

 

0

host =

broadcast-0.the.net

1

host =

unused-1.the.net

2

host =

unused-2.the.net

3

host =

unused-3.the.net

4

host =

unused-4.the.net

5

host =

doc-core-01.the.net

6

host =

doc-core-02.the.net

7

host =

doc-core-03.the.net

8

host =

doc-ls1010-01.the.net

9

host =

doc-switch-01.the.net

10

host =

doc-pix-01.the.net

10.21.172.in-addr.arpa.

server = onionring.the.net

11

host = doc-AS5850-01.the.net

12

host = doc-oob-03.the.net

13

host = doc-2610-01.the.net

14

host = doc-3810a-01.the.net

15

host = doc-3810d-01.the.net

16

host = doc-ubr7246-01.the.net

17

host = doc-switch-02.the.net

Step 3 Download the source code for the scripts and customize them for your environment.

Go to http://www.cisco.com/univercd/cc/td/doc/cisintwk/intsolns/dialnms/dnszone.txt

Basic Dial NMS Implementation Guide

'&

Page 98
Image 98
Cisco Systems Dial NMS manual Host = doc-oob-03.the.net