From 6e278800f50878c6c6b91ab1186827924a01462a Mon Sep 17 00:00:00 2001 From: Oleksandr Ivantsiv Date: Thu, 22 Jun 2023 17:35:05 +0000 Subject: [PATCH] Update command reference document with static DNS feature commands. --- doc/Command-Reference.md | 57 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 56 insertions(+), 1 deletion(-) diff --git a/doc/Command-Reference.md b/doc/Command-Reference.md index 03c61f1bd4..962651efaf 100644 --- a/doc/Command-Reference.md +++ b/doc/Command-Reference.md @@ -194,12 +194,15 @@ * [MACsec config command](#macsec-config-command) * [MACsec show command](#macsec-show-command) * [MACsec clear command](#macsec-clear-command) - +* [Static DNS Commands](#static-dns-commands) + * [Static DNS config command](#static-dns-config-command) + * [Static DNS show command](#static-dns-show-command) ## Document History | Version | Modification Date | Details | | --- | --- | --- | +| v7 | May-06-2021 | Add static DNS show and config commands | | v6 | May-06-2021 | Add SNMP show and config commands | | v5 | Nov-05-2020 | Add document for console commands | | v4 | Oct-17-2019 | Unify usage statements and other formatting; Replace tabs with spaces; Modify heading sizes; Fix spelling, grammar and other errors; Fix organization of new commands | @@ -12103,3 +12106,55 @@ Clear MACsec counters which is to reset all MACsec counters to ZERO. ``` Go Back To [Beginning of the document](#) or [Beginning of this section](#macsec-commands) + +# Static DNS Commands + +This sub-section explains the list of the configuration options available for static DNS feature. + +## Static DNS config command + +- Add static DNS nameserver entry + +``` +admin@sonic:~$ config dns nameserver add -h +Usage: config dns nameserver add [OPTIONS] + + Add static DNS nameserver entry + +Options: + -?, -h, --help Show this message and exit. +``` + +- Delete static DNS nameserver entry + +``` +admin@sonic:~$ config dns nameserver del -h +Usage: config dns nameserver del [OPTIONS] + + Delete static DNS nameserver entry + +Options: + -h, -?, --help Show this message and exit. +``` + +## Static DNS show command + +- Show static DNS configuration + +``` +admin@sonic:~$ show dns nameserver -h +Usage: show dns nameserver [OPTIONS] + + Show static DNS configuration + +Options: + -h, -?, --help Show this message and exit. +``` +``` +admin@sonic:~$ show dns nameserver + Nameserver +------------ + 1.1.1.1 + 8.8.8.8 + +```