User Manual

Table Of Contents
10.3.6 Set DNS relay function static record
[Syntax]
dns-forwarding static-host host address [time]
no dns-forwarding static-host host address
[Parameter]
host : Host name
Single-byte alphanumeric characters, dot '.', and hyphen '-' (253 characters or less)
address : A.B.C.D
IPv4 address of host
time : <1-2147483647>
TTL (seconds) for static records (if omitted: 1800)
[Initial value]
none
[Input mode]
global configuration mode
[Description]
Sets the DNS relay function's static records.
When a DNS client requests a host name or address specified by this command, a response is returned using the setting value of
this command, without forwarding the packet to the server.
If this command is executed with the "no" syntax, the specified static record is deleted.
[Note]
Up to 16 instances of this command can be set.
If this command is specified, the "A" record and "PTR" record for the specified host name and address are statically maintained.
The length of the portion of the host name separated by dots (.) (the label) must be at least one character and no more than 63
characters.
If the first character of the host name is a dot (.) then this command produces an error.
[Example]
Set the DNS relay function's static records. Specify "swr.example.com" as "192.168.100.100".
SWX3220(config)#dns-forwarding static-host swr.example.com 192.168.100.100
10.3.7 Show status of DNS relay
[Syntax]
show dns-forwarding
[Input mode]
unprivileged EXEC mode, privileged EXEC mode
[Description]
Shows the status of the DNS relay.
The following items are shown.
DNS relay boot status
The interface on which the DNS relay has been started. Displays when the DNS relay has been started
DNS relay function enable/disable for the entire system
Forwarding address settings
Static record settings
[Example]
Shows the DNS relay status.
SWX3220#show dns-forwarding
DNS forwarding is running
462 | Command Reference | Application