8, specifying the -a switchcauses a suffix of your choice
to be appended to a successful match:
define(`confDEQUOTE_OPTS??, `-a.yes??)
In that case, the "A.B.C" example would become the following:
> /map dequote "A.B.C"
map_lookup: dequote ("A.B.C") returns A.B.C.yes (0)
In addition to removing quotes, the dequote type also tokenizes everything that is returned.
It does this because quotes are ordinarily used to mask the separation characters that
delimit tokens.
No debugging switch is available to watch the actions of the dequote type.
23.7.6 dns
Look up addresses using DNS V8.12 and later
The dns type is an internal database map available to perform DNS lookups. It is declared
like this:
Kdnslookup dns -Rlookup-type
The -R switch??”which specifies the DNS query to perform??”must always be included.
Table 23-11 shows the DNS queries that are supported.
-S ?§23.3.12 on page 890 Space replacement character.
-s Synonym for -S.
Table 23-11. The dns database-map type -R switch query values
-R Value Means
A Return IPv4 address records for the host (RFC1035).
AAAA Return IPv6 address records for the host (RFC1886).
AFSDB Return an AFS server resource record (RFC1183).
CNAME Return the canonical name for the host (RFC1035).
Table 23-10. The dequote database-map type K command switches (continued)
Switch ?§ Description
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc.
Pages:
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597