[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: ocaml-dns
hi anastasia; On 18 Mar 2013, at 03:45, Anastasia Gornostaeva wrote: > It seems Dns does not provide any way to connect to DNS server and resolve > any queries. Am I wrong? > > I've found Dns_resolver for using with lwt, but it absents by default (even in > opam installation). Should I re-implement Dns_resolver for plain networking? we use Lwt for the networking here, so we never did one for "plain networking". when you say "absents by default", what do you mean? if you have the necessary libraries installed, do a "make distclean" and then "make" it should cause the oasis setup to run with --enable-tests and --enable-lwt which causes mldig to be built, giving a simple command line client. let me know if it doesn't work. (fwiw using 4.00.1 system compiler on osx, i had to "opam install cstruct re lwt cmdliner cryptokit uri" before i got a build working; but it did work once i installed those libs.) really, the thing to do would be to follow the pattern that's being taken with cohttp -- see eg., https://github.com/yallop/ocaml-cohttp. that is, create a client monad that abstracts over specific backends (Lwt, Core, etc) and can encapsulate the (somewhat complex) logic that a DNS client has to implement. this would go into the lib/ directory, and there would then be specific client instantiations client_lwt/ client_core/ and so on. -- Cheers, R. This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |