Update of /cvsroot/hcoop/domtool2/src/plugins In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv13966/src/plugins
Modified Files: bind.sml Log Message: TXT DNS records Index: bind.sml =================================================================== RCS file: /cvsroot/hcoop/domtool2/src/plugins/bind.sml,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** bind.sml 16 Dec 2007 14:55:04 -0000 1.16 --- bind.sml 23 Dec 2007 22:41:38 -0000 1.17 *************** *** 53,56 **** --- 53,57 ---- | AAAA of string * string | DefaultAAAA of string + | TXT of string * string val record = fn (EApp ((EApp ((EVar "dnsA", _), e1), _), e2), _) => *************** *** 76,79 **** --- 77,84 ---- | (EApp ((EVar "dnsDefaultAAAA", _), e), _) => Option.map DefaultAAAA (Env.string e) + | (EApp ((EApp ((EVar "dnsTXT", _), e1), _), e2), _) => + (case (Env.string e1, Env.string e2) of + (SOME v1, SOME v2) => SOME (TXT (v1, v2)) + | _ => NONE) | _ => NONE *************** *** 139,142 **** --- 144,155 ---- write to; write "\n") + | TXT (from, to) => (write from; + write "."; + writeDom (); + write ".\t"; + write (Int.toString ttl); + write "\tIN\tTXT\t\""; + write (String.translate (fn #"\"" => "\\\"" | ch => str ch) to); + write "\"\n") end ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ hcoop-cvs mailing list hcoop-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hcoop-cvs