create_domains.pl
上传用户:xiao730204
上传日期:2007-01-04
资源大小:141k
文件大小:2k
- #!/usr/bin/perl
- @tlds = (
- "al",
- "am",
- "art",
- "arts",
- "at",
- "az",
- "ba",
- "bank",
- "be",
- "bg",
- "biz",
- "by",
- "ca",
- "can",
- "cc",
- "cdn",
- "ch",
- "cn",
- "com",
- "corp",
- "cx",
- "cy",
- "cz",
- "dds",
- "de",
- "dir",
- "dk",
- "dz",
- "edu",
- "ee",
- "eg",
- "es",
- "etc",
- "faq",
- "fi",
- "film",
- "fo",
- "fr",
- "fund",
- "gallery",
- "gb",
- "ge",
- "gmbh",
- "gov",
- "gr",
- "help",
- "hk",
- "hotel",
- "hr",
- "hu",
- "ie",
- "il",
- "is",
- "isp",
- "it",
- "jp",
- "k12",
- "kr",
- "li",
- "list",
- "llb",
- "lt",
- "lu",
- "lv",
- "ma",
- "md",
- "med",
- "mil",
- "mk",
- "mt",
- "mx",
- "music",
- "net",
- "nic",
- "nl",
- "no",
- "npo",
- "org",
- "php",
- "pl",
- "prices",
- "pt",
- "radio",
- "ro",
- "ru",
- "se",
- "sg",
- "si",
- "sk",
- "sky",
- "sm",
- "sql",
- "su",
- "tj",
- "tr",
- "tw",
- "ua",
- "uk",
- "us",
- "va",
- "video",
- "xxx",
- "y2k",
- "yu",
- "zine",
- "zoo",
- "666",
- "800",
- "888",
- "int",
- );
- #
- # Most people will propbably just want :
- #
- # @tlds = (
- # "com",
- # "net",
- # "org",
- # );
- #
- foreach $tld ( @tlds ) {
- $table_name = $tld . '_domains';
- print <<"TLD_TABLE";
- CREATE TABLE
- $table_name
- (
- sqlId BIGINT NOT NULL AUTO_INCREMENT,
- domain_name TEXT DEFAULT '' NOT NULL,
- serial_number BIGINT DEFAULT '0' NOT NULL,
- refresh BIGINT DEFAULT '0' NOT NULL,
- retry BIGINT DEFAULT '0' NOT NULL,
- expire BIGINT DEFAULT '0' NOT NULL,
- min_ttl BIGINT DEFAULT '0' NOT NULL,
- PRIMARY KEY( sqlId ),
- INDEX( sqlId )
- );
- TLD_TABLE
- }