To test the example in this section, perform the following steps:
- [edit system scripts op]
- file ex-hostname.xsl;
- [edit]
- user@host# op ex-hostname
- Name:
- this-router has address 10.168.71.246
When you issue the op ex-hostname dns hostname command, the DNS information is displayed for the specified router:
- [edit]
- user@host# op ex-hostname dns router1
- Name:
- router1 has address 10.168.71.249
When you issue the op ex-hostname dns address command, the DNS information is displayed for the specified address:
- [edit]
- user@host# op ex-hostname dns 10.168.71.249
- Name:
- 249.71.168.10.IN-ADDR.ARPA domain name pointer router1