Use dig to query DNS server 192.0.2.53 directly for the A record of app.example.test, bypassing the usual resolver choice.
Which command is appropriate?
dig @SERVER NAME TYPE overrides the resolver selected by the normal configuration and sends the query to the specified server.
Detailed explanation
dig app.example.test A 192.0.2.53Incorrect. A server address requires the leading @ syntax.
Incorrect. A server address requires the leading @ syntax.
dig @192.0.2.53 app.example.test ACorrect. It explicitly selects 192.0.2.53 as the DNS server.
Correct. It explicitly selects 192.0.2.53 as the DNS server.
dig -s 192.0.2.53 app.example.test AIncorrect. -s is not the standard dig syntax for selecting a DNS server.
Incorrect. -s is not the standard dig syntax for selecting a DNS server.
dig app.example.test @A 192.0.2.53Incorrect. The @ target and query type are in the wrong positions.
Incorrect. The @ target and query type are in the wrong positions.
Try it yourself
An example you can run in a temporary verification environment.
printf '%s
' '@192.0.2.53=DNS server' 'app.example.test=query name' 'A=query type'Expected result
@192.0.2.53=DNS server
app.example.test=query name
A=query typeKey points
- Use @server
- Specify the query name
- Specify the record type
Notes
- Environment: dig構文の分解表示のみ
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.