[CrackMonkey] I Would Like to Subscribe to Your New Top-level Domain

Paul J Collins sneakums at sto-kerrig.org
Fri Nov 17 17:32:30 PST 2000


>>>>> "Paul" == Paul J Collins <sneakums at sto-kerrig.org> writes:

    Paul> And the following wrapped up into a CGI on an AnarchyNIC
    Paul> server:

[snip]

And here it is.  Change INPUT to suit.  Format the file as I outlined
in a previous post.  BIND 8 syntax only.  Read instructions carefully,
and follow dosage exactly.

  #!/bin/sh

  INPUT=/var/www/tld.txt

  echo -n -e "Content-Type: text/plain\r\n\r\n"

  forward_zone () {
      echo zone \"$1\" {
      shift
      echo "forward only; forwarders {"
      while [ $# -gt 0 ] ; do
          echo "$1;"
          shift
      done
      echo "}; };"
  }

  while read line ; do
      forward_zone $line
  done < $INPUT
  ## end anarchy.cgi

-- 
Paul Collins <sneakums at sto-kerrig.org> - - - [ A&P,a&f ]
 GPG: 0A49 49A9 2932 0EE5 89B2  9EE0 3B65 7154 8131 1BCD
"GNU *has* got an operating system.  It's called Emacs."





More information about the Crackmonkey mailing list