Changeset 276
- Timestamp:
- 03/15/12 16:44:53 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DNSDB.pm
r275 r276 39 39 &changeGroup 40 40 &loadConfig &connectDB &finish 41 &addDomain &delZone &domainName &revName &domainID & addRDNS41 &addDomain &delZone &domainName &revName &domainID &revID &addRDNS 42 42 &getZoneCount &getZoneList 43 43 &addGroup &delGroup &getChildren &groupName … … 61 61 &changeGroup 62 62 &loadConfig &connectDB &finish 63 &addDomain &delZone &domainName &revName &domainID & addRDNS63 &addDomain &delZone &domainName &revName &domainID &revID &addRDNS 64 64 &getZoneCount &getZoneList 65 65 &addGroup &delGroup &getChildren &groupName … … 1366 1366 return $domid if $domid; 1367 1367 } # end domainID() 1368 1369 1370 ## DNSDB::revID() 1371 # Takes a database handle and reverse zone name 1372 # Returns the rDNS ID number 1373 sub revID { 1374 $errstr = ''; 1375 my $dbh = shift; 1376 my $revzone = shift; 1377 my ($revid) = $dbh->selectrow_array("SELECT rdns_id FROM revzones WHERE revnet=?", undef, ($revzone) ); 1378 $errstr = $DBI::errstr if !$revid; 1379 return $revid if $revid; 1380 } # end revID() 1368 1381 1369 1382
Note:
See TracChangeset
for help on using the changeset viewer.