dnsbl-expand

Synopsis

(resolve ipaddr)

Parameters

  • ipaddr

Description

This procedure expands the passed IP address for subsequent lookup in a DNS blacklist (after appending the desired blocklist qualifier). IPv4 and IPv6 is handled as specified, see the example below.

Side Effects

Return Value

The expanded representation is returned as a string including a trailing dot.

See Also

Example

> (dnsbl-expand 'fe80::20bc:d804:c84b:7618)
"8.1.6.7.b.4.8.c.4.0.8.d.c.b.0.2.0.0.0.0.0.0.0.0.0.0.0.0.0.8.e.f."
> (dnsbl-expand '127.0.0.2)
"2.0.0.127."
> (resolve (string-append (dnsbl-expand 'fe80::20bc:d804:c84b:7618) "bl.blocklist.de"))
()
> (resolve (string-append (dnsbl-expand '127.0.0.2) "bl.blocklist.de"))
(127.0.0.2)
>