Query the IPv6 address registered for app.example.test with dig.
Which command is appropriate?
AAAA records map names to IPv6 addresses. A records map names to IPv4 addresses.
Detailed explanation
dig app.example.test AIncorrect. A queries an IPv4 address record.
Incorrect. A queries an IPv4 address record.
dig app.example.test PTRIncorrect. PTR is for reverse lookup.
Incorrect. PTR is for reverse lookup.
dig app.example.test MXIncorrect. MX identifies mail exchangers.
Incorrect. MX identifies mail exchangers.
dig app.example.test AAAACorrect. AAAA requests the IPv6 address record.
Correct. AAAA requests the IPv6 address record.
Try it yourself
An example you can run in a temporary verification environment.
dig -h 2>&1 | sed -n '1,8p'Expected result
digのnameとtypeを含む使用方法Key points
- AAAA is IPv6
- A is IPv4
- Specify the query type
Notes
- Environment: BIND dig help / 外部問い合わせなし
- 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.