Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: MX records, and that code red stuff

From: holger:rebol at: 14-Aug-2001 10:06

On Sat, Aug 11, 2001 at 08:16:51AM +0100, Mat Bettinson wrote:
> Hi, > > I notice that DNS:// really only works for regular dns records.
A records and "PTR" records, yes.
> I > assume you'd have to go write your own stuff if you wanted to look up > MX records? I have a need to develop a good domain/e-mail > authentication routine and without the ability to look up MX it's > going to get ugly. So... would I have to do my own dialect or > something weird like that?
You would have to either implement parts of the DNS protocol on top of UDP, or use whatever OS-specific library you have on your machine to handle DNS, and access it from REBOL. On Unix this is typically, although some Unix versions have or other libraries. Windows may have something in wsock32.dll. On the Amiga you would have to access miami.library. Of corse you will need a version of REBOL that contains the "library" component. The reason why REBOL only supports "normal" DNS accesses is that these are the only ones that are provided by operating systems cross-platform without compatibility problems (gethostbyname(), gethostbyaddr()). Lower-level functions vary A LOT not just by OS version but also by resolver lib version, and using them in REBOL would make it impossible to ship REBOL binaries which are dynamically linked. -- Holger Kruse [holger--rebol--com]