cli: one ip name-server line carries up to six addresses, in typed order #2013
No reviewers
Labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jaylouisw/packetforge!2013
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "rev/1118-1731"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Question. How many addresses does one
ip name-serverline carry, and whose order wins?Verdict. All of them, space separated, in typed order, up to six on the line and six on the box - and the first address is the primary.
ip name-server 172.16.1.111 172.16.1.2used to store the first address, print a receipt that read like the whole line was taken, and silently drop the second (defect class of #2004).Evidence. Cisco IOS XE 17.x IP Addressing Configuration Guide (Configuring DNS) -
server-address1 [server-address2 ... server-address6], "up to six", worked example with two addresses; the IP Addressing Services Command Reference parameter table - "a maximum of six name servers"; the Aironet 15.3(3)JB guide - "Separate each server address with a space. The first server specified is the primary server."Change.
engine/cli.js: every word on the line is validated before anything is stored; addresses are appended in typed order; an address already configured is not counted twice; a line that would exceed six on the line or on the box is refused with nothing configured.test/ip-name-server-list.test.js(23 assertions) covers all of it plus the unchanged single-address, bare-command and bad-address paths.research/ip-name-server-list.mdrecords what is known, inferred and unresolved.docs/CLI.mdprinter/refusal rows updated.Gates.
node scripts/syntax-check.js420 files OK; fullnpm test346 suites, 12,005 assertions, 0 failed.Unresolved. The exact IOS sentence for a seventh address; whether a second line appends or replaces (Cisco Business 250/350 boxes say replace, IOS examples show accumulate); whether
show running-configgroups the list on one line (IOS XE guide) or one line per address (fundamentals guide sample); whetherno ip name-server <addr>removes one server or clears the list.ip name-serverline carries up to six addresses, in typed orderb509f2e7d13d98b8c44e3d98b8c44e8387d4845b