From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA09344; Thu, 25 Sep 2003 18:14:51 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id SAA06490 for ; Thu, 25 Sep 2003 18:14:50 +0200 (MET DST) Received: from home.mk.pp.ru (home.mk.pp.ru [217.10.34.95]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h8PGEnH27257 for ; Thu, 25 Sep 2003 18:14:49 +0200 (MET DST) Received: from ermine.home (ermine.home [192.168.2.2]) by home.mk.pp.ru (Postfix) with ESMTP id DD22020C54 for ; Thu, 25 Sep 2003 20:14:48 +0400 (MSD) Received: by ermine.home (Postfix, from userid 1001) id F2E7F3A9C21; Thu, 25 Sep 2003 20:17:08 +0400 (MSD) Date: Thu, 25 Sep 2003 20:17:08 +0400 From: Anastasia Gornostaeva To: caml-list@inria.fr Subject: Re: [Caml-list] dns client Message-ID: <20030925161708.GA36499@ermine.home> References: <20030925153529.GA36210@ermine.home> <20030925155119.GA14079@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <20030925155119.GA14079@redhat.com> User-Agent: Mutt/1.5.4i X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 0400,:01 pcre:01 erlang:01 otp:99 wrappers:01 ocaml:01 ocaml:01 sep:01 sep:01 simpler:01 unix:02 external:03 module:03 wrote:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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