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 RAA06109; Thu, 25 Sep 2003 17:51:28 +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 RAA11767 for ; Thu, 25 Sep 2003 17:51:27 +0200 (MET DST) Received: from aomori.annexia.org (annexia.force9.co.uk [212.56.101.183]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h8PFpQH25179 for ; Thu, 25 Sep 2003 17:51:26 +0200 (MET DST) Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 1A2YOl-0003fO-00; Thu, 25 Sep 2003 16:51:19 +0100 Date: Thu, 25 Sep 2003 16:51:19 +0100 To: Anastasia Gornostaeva Cc: caml-list@inria.fr Subject: Re: [Caml-list] dns client Message-ID: <20030925155119.GA14079@redhat.com> References: <20030925153529.GA36210@ermine.home> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030925153529.GA36210@ermine.home> User-Agent: Mutt/1.5.4i From: Richard Jones X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 0400,:01 pcre:01 wrappers:01 freshmeat:01 ltd:98 ocaml:01 ocaml:01 irrelevant:01 sep:01 simpler:01 unix:02 external:03 business:96 wrote:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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 *) However writing C wrappers couldn't really be much simpler with OCaml (compare it to Perl or Java some time!). Rich. -- Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj Merjis Ltd. http://www.merjis.com/ - all your business data are belong to you. All new technology is irrelevant until it is taken up by the public. ------------------- 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