Browse thread
[Caml-list] dns client
-
Anastasia Gornostaeva
-
Richard Jones
- Anastasia Gornostaeva
- Eric C. Cooper
-
Richard Jones
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Anastasia Gornostaeva <ermine@e...> |
| Subject: | Re: [Caml-list] dns client |
On Thu, Sep 25, 2003 at 04:51:19PM +0100, Richard Jones wrote: > On Thu, Sep 25, 2003 at 07:35:29PM +0400, Anastasia Gornostaeva wrote: > > Hello. > > > > Is there any dns client written on Ocaml? At least i want to get records with > > specified types such as A, NS, MX, etc. > > I cannot write a wrapper to C library, i'm afraid about GC problems. > > If you really don't want to write a wrapper, how about using an > external program, eg: > > let chan = Unix.open_process_in "host -t mx ibm.com" > (* some code to parse the 7th field of the response - eg. using Pcre *) Well, it is an interesting solution. but what about portability? I saw, Erlang/OTP has more nice solution - a module inet_res that allows some kinda of my requests above. > However writing C wrappers couldn't really be much simpler with OCaml > (compare it to Perl or Java some time!). I know, I ask here for ready solutions :) ermine ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners