Skip to content
Smarter by Design.Simpler for Business

DNS & IP Calculation ​

The DNS & IP Calculation group gathers the two commands that test name resolution and one address calculator. Verifying which address GTM returns for a name, seeing a TXT record added for certificate validation, or calculating which subnet a VIP falls into is the job of this group.

Which Command When? ​

QuestionCommandExample
Which address does GTM return for this name?digsys-cmd dig @<gtm-dns-address> app.example.com A +short
Where does the whole chain of name resolution pass through?digsys-cmd dig app.example.com A +trace
Is a name resolved quickly?nslookupsys-cmd nslookup app.example.com
What is the reverse record of this IP address?dig · nslookupsys-cmd dig -x 10.0.7.20 +short
Which network do this address and mask fall into, and how many addresses are there?ipcalcsys-cmd ipcalc 10.20.0.0/22

Common Behavior ​

SubjectBehavior
WritingAll three are tools with free parameters: everything written after the command name is passed to the tool as it is.
Contextdig and nslookup send the query from within the selected v-device and route table. ipcalc does not send packets to the network; it is not affected by the context.
The query serverIf a server is not written, the default resolver on the device is used. In order to make certain which server the result came from, the server is written explicitly: dig @<server>, nslookup <name> <server>.
PipeThe output can be filtered with | or written to a file with to-file.
RecordingEvery run is written to the user logs.

All of the writing rules and the restrictions: System Commands.