You use the SHOW-DNS-ACCESS command to output information about the DNS Resolver and access to DNS data in BCAM and in particular restrictions relating to DNS access.
The SDF alias name SHDNA exists for SHOW-DNS-ACCESS.
BS2000 console | BS2000 SDF command | Command/SOF file | SNMP management | Parameter service |
x |
List of valid command sources
SHOW-DNS-ACCESS / SHDNA |
SELECT = *ALL / list-poss (8): *DNS-RESOLVER / *IP-ADDRESS-RANGE / *IPV6-ADDRESS-RANGE / *NAMES / *LIMITS / *OPTIONS ,OUTPUT = *SYSOUT / *SYSLST ,OUTPUT-FORMAT = * STD / *GENERATING-CMD |
SELECT=...
Selects the information that is to be output.
SELECT=*ALL
Displays the IP and IPv6 address ranges as well as the namespace which is to be permitted for access to DNS data.
SELECT=*DNS-RESOLVER
Displays which DNS Resolver is currently set to access DNS data.
SELECT=*IP-ADDRESS-RANGE
Displays the IP address ranges which are permitted for access to DNS data.
SELECT=*IPV6-ADDRESS-RANGE
Displays the IPv6 address ranges which are permitted for access to DNS data.
SELECT=*NAMES
Displays the namespace which is permitted for access to DNS data.
SELECT=*LIMITS
Displays the number of possible table entries.
SELECT=*OPTIONS
Displays the DNS options for access to DNS data.
OUTPUT=...
Specifies the output medium.
OUTPUT=*SYSOUT
The output is sent to SYSOUT.
OUTPUT=*SYSLST
The output is sent to SYSLST.
OUTPUT-FORMAT=...
Specifies the output format.
OUTPUT-FORMAT=*STD
The output format corresponds to the default.
OUTPUT-FORMAT=*GENERATING-CMD
The output corresponds to the generating commands.
Command logging
A description of the error messages that may be issued during command processing is provided in the table below.
Command return codes
(SC2) | Maincode | Meaning |
| CMD0001 | Command processed successfully |
| CMD0202 | Operand error |
| CMD0221 | System error |
| CMD0216 | Privilege not sufficient |
| BCA0203 | Interface (&00) returns RC (&01) |
Examples
Displays of access to DNS data in BCAM:
/SHOW-DNS-ACCESS SELECT=*ALL
/SHOW-DNS-ACCESS SELECT=*DNS-RESOLVER
/SHOW-DNS-ACCESS SELECT=*OPTIONS
/SHOW-DNS-ACCESS SELECT=*IP-ADDRESS-RANGE,OUTPUT=*SYSLST
/SHOW-DNS-ACCESS SELECT=*IPV6-ADDRESS-RANGE,OUTPUT=*SYSLST
/SHOW-DNS-ACCESS SELECT=*NAMES,OUTPUT=*SYSLST
S variables
The command’s SELECT operand specifies which S variables are to be assigned values. Possible values for SELECT are *ALL, *IP-ADDRESS-RANGE, *IPV6-ADDRESS-RANGE, *NAMES, *DNS-RESOLVER, *LIMITS and *OPTIONS.
Output information | Name of the S variable | Data type | Content | Condition |
Access to DNS data in BCAM | var(*LIST).OPTION.DNS-USAGE | string | *OFF | SEL= |
Number of permitted entries | var(*LIST).MAX-DNS-ACC-ENTR | integer | <integer 1..65535> | SEL= |
PORT number indicator | var(*LIST).DNS-RESOLVER.PORT-IND | string | *STD | SEL= |
PORT number which is set for the DNS Resolver | var(*LIST).DNS-RESOLVER.PORT-NUM | integer | <integer 1..65535> | SEL= |
IP address indicator | var(*LIST).DNS-RESOLVER-IND | string | *STD | SEL= |
IP address set for the DNS Resolver | var(*LIST).DNS-RESOLVER.IP-ADDR | string | <c-string 7..15> | SEL= |
IPv6 address indicator | var(*LIST).DNS-RESOLVER-IPV6-IND | string | *STD | SEL= |
IPv6 address which is set for the DNS Resolver | var(*LIST).DNS-RESOLVER.IPV6-ADDR | string | <c-string 3..45> | SEL= |
Permitted IP addresses for access to DNS data (all, none or address range) | var(*LIST).IP-ADDR.INDICATOR | string | *ALL | SEL= |
Start of range of permitted IP addresses for access to DNS data | var(*LIST).IP-ADDR.RANGE(*LIST).FROM | string | <c-string 7..15> | SEL= |
End of range of permitted IP addresses for access to DNS data | var(*LIST).IP-ADDR.RANGE(*LIST).TO | string | <c-string 7..15> | SEL= |
Permitted IPv6 addresses for access to DNS data (all, none or address range) | var(*LIST).IPV6-ADDR.INDICATOR | string | *ALL | SEL= |
Permitted IPv6 addresses for access to DNS data (specified via IPv6 prefix) | var(*LIST).IPV6-ADDR.IPV6-PREFIX(*LIST) | string | <c-string 9..49> | SEL= |
Permitted names for access to DNS data (all, none or namespace) | var(*LIST).NAMES.INDICATOR | string | *ALL | SEL= |
Namespace of processors which are permitted for access to DNS data | var(*LIST).NAMES.PROCESSOR-NAME(*LIST) | string | <c-string 1..8> | SEL= |
Generating commands | var(*LIST).GENERATING-CMD(*LIST) | string | <text 1..256> | SEL=<any> |