Ignore:
Timestamp:
04/06/06 15:47:21 (18 years ago)
Author:
Kris Deugau
Message:

/trunk

Refactor rWHOIS export for easier rWHOIS data access.
Update SQL tabledefs (customers table, alloctypes table) and

predefined alloctypes list with database changes.

Add rWHOIS configuration files and notes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/ipdb.psql

    r321 r324  
    1010        "city" character varying(30),
    1111        "province" character(2),
     12        "country" character(2),
    1213        "pocode" character varying(7),
    1314        "phone" character varying(15),
    14         "abuse" character varying(50),
     15        "tech_handle" character varying(50),
     16        "abuse_handle" character varying(50),
     17        "admin_handle" character varying(50),
    1518        "def_rdns" character varying(40),
    16         "description" text,
     19        "special" text,
    1720        Constraint "customers_pkey" Primary Key ("custid")
    1821);
     
    2326CREATE TABLE "masterblocks" (
    2427        "cidr" cidr DEFAULT '255.255.255.255/32' NOT NULL PRIMARY KEY,
    25         "ctime" timestamp DEFAULT now()
     28        "ctime" timestamp DEFAULT now(),
     29        "mtime" timestamp DEFAULT now()
    2630);
    2731
     
    106110        "dispname" character varying(40) DEFAULT '',
    107111        "listorder" integer DEFAULT 0,
    108         "def_custid" character varying(16) DEFAULT ''
     112        "def_custid" character varying(16) DEFAULT '',
     113        "arin_netname" character varying(20) DEFAILT 'ISP'
    109114);
    110115
     
    113118--
    114119
    115 COPY alloctypes ("type", listname, dispname, listorder, def_custid) FROM stdin;
    116 cn      Customer netblock       Customer netblock       0       
    117 si      Static IP - Server pool Server pool IP  20     
    118 ci      Static IP - Cable       Static cable IP 21     
    119 di      Static IP - DSL Static DSL IP   22     
    120 mi      Static IP - Dialup      Static dialup IP        23     
    121 wi      Static IP - Wireless    Static wireless IP      24     
    122 sd      Static Pool - Servers   Server pool     40      6750400
    123 cd      Static Pool - Cable     Cable pool      41      CBL-BUS
    124 dp      Static Pool - DSL       DSL pool        42      DSL-BUS
    125 mp      Static Pool - Dialup    Static dialup pool      43      DIAL-BUS
    126 wp      Static Pool - Wireless  Static wireless pool    44      WL-BUS
    127 en      End-use netblock        End-use netblock        100     6750400
    128 me      Dialup netblock Dialup netblock 101     DIAL-RES
    129 de      Dynamic DSL block       Dynamic DSL block       102     DSL-RES
    130 ce      Dynamic cable block     Dynamic cable block     103     CBL-RES
    131 we      Dynamic WiFi block      Dynamic WiFi block      104     WL-RES
    132 ve      Dynamic VoIP block      Dynamic VoIP block      105     DYN-VOIP
    133 li      Static IP - LAN/POP     Static LAN/POP IP       190     6750400
    134 ai      Static IP - Managment   Static management IP    192     6750400
    135 ad      Static Pool - Managment Management pool 196     6750400
    136 ld      Static Pool - LAN/POP   LAN pool        195     6750400
    137 wc      Reserve for CORE/WAN blocks     CORE/WAN blocks 200     6750400
    138 pc      Reserve for dynamic-route DSL netblocks Dynamic-route netblocks 201     6750400
    139 ac      Reserve for ATM ATM blocks      202     6750400
    140 wr      CORE/WAN block  CORE/WAN block  220     6750400
    141 pr      Dynamic-route DSL netblock      Dynamic-route DSL       221     
    142 ar      ATM block       ATM block       222     
    143 rm      Routing Routed netblock 500     6750400
    144 in      Internal netblock       Internal netblock       990     6750400
    145 mm      Master block    Master block    999     6750400
     120COPY "alloctypes" FROM stdin;
     121cn      Customer netblock       Customer netblock       0               ISPCUST
     122si      Static IP - Server pool Server pool IP  20      6750400 ISP
     123ci      Static IP - Cable       Static cable IP 21              ISP
     124di      Static IP - DSL Static DSL IP   22              ISP
     125mi      Static IP - Dialup      Static dialup IP        23              ISP
     126wi      Static IP - Wireless    Static wireless IP      24              ISP
     127sd      Static Pool - Servers   Server pool     40      6750400 ISP
     128cd      Static Pool - Cable     Cable pool      41      CBL-BUS ISP-STATIC-CABLE
     129dp      Static Pool - DSL       DSL pool        42      DSL-BUS ISP-STATIC-DSL
     130mp      Static Pool - Dialup    Static dialup pool      43      DIAL-BUS        ISP-STATIC-DIAL
     131wp      Static Pool - Wireless  Static wireless pool    44      WL-BUS  ISP-STATIC-WIFI
     132en      End-use netblock        End-use netblock        100     6750400 ISP
     133me      Dialup netblock Dialup netblock 101     DIAL-RES        ISP-DIAL
     134de      Dynamic DSL block       Dynamic DSL block       102     DSL-RES ISP-DSL
     135ce      Dynamic cable block     Dynamic cable block     103     CBL-RES ISP-CABLE
     136we      Dynamic WiFi block      Dynamic WiFi block      104     WL-RES  ISP-WIFI
     137ve      Dynamic VoIP block      Dynamic VoIP block      105     DYN-VOIP        ISP
     138li      Static IP - LAN/POP     Static LAN/POP IP       190     6750400 ISP
     139ld      Static Pool - LAN/POP   LAN pool        191     6750400 ISP
     140wc      Reserve for CORE/WAN blocks     CORE/WAN blocks 200     6750400 ISP
     141pc      Reserve for dynamic-route DSL netblocks Dynamic-route netblocks 201     6750400 ISP-STATIC-DSL
     142ac      Reserve for ATM ATM blocks      202     6750400 ISP
     143wr      CORE/WAN block  CORE/WAN block  220     6750400 ISP
     144pr      Dynamic-route DSL netblock      Dynamic-route DSL       221             ISP
     145ar      ATM block       ATM block       222             ISP
     146rm      Routing Routed netblock 500     6750400 ISP
     147in      Internal netblock       Internal netblock       990     6750400 ISP
     148mm      Master block    Master block    999     6750400 ISP
    146149\.
    147150
Note: See TracChangeset for help on using the changeset viewer.