*dns-mode*

Variable

Package: socket

This variable can have the value :clib or :acldns or a list of one or both of those symbols. The initial value is the list (:acldns :clib).

The value of this variable controls whether the C library functions or Allegro CL DNS functionality are used for calls to lookup-hostname and ipaddr-to-hostname. Using Allegro CL DNS functionality means calls are made to dns-lookup-hostname and dns-ipaddr-to-hostname.

If the value of this variable is either :acldns or the list (:acldns) then lookup-hostname and ipaddr-to-hostname use Allegro CL DNS functionality.

If the value of this variable is either :clib or the list (:clib) then lookup-hostname and ipaddr-to-hostname use the C library functions to do the dns lookup.

If the value of this variable is a list containing both :clib and :acldns (in any order), then the Allegro CL DNS functionality is used first and then, if that fails, the C library functions are used.

Before calling an Allegro CL DNS function, a check is made to see if the Allegro CL DNS module has been configured. If it hasn't been, then (configure-dns :auto t) is done (see configure-dns). If this auto configuration fails to find any naneservers then *dns-mode* is set to :clib so that there will be no further attempts to use the Allegro CL DNS module.

See dns.htm for information on the domain naming system utility in ALlegro CL and see socket.htm for general information on sockets in Allegro CL.

The documentation is described in introduction.htm and the index is in index.htm.

Copyright (c) 1998-2000, Franz Inc. Berkeley, CA., USA. All rights reserved.

Created 2000.10.5.