Which command creates a static DNS entry for hostname gateway pointing to 192.168.88.1?

Study for the MTCNA Foundation Exam. Prepare with flashcards and multiple choice questions, each question has hints and explanations. Get ready for your certification!

Multiple Choice

Which command creates a static DNS entry for hostname gateway pointing to 192.168.88.1?

Explanation:
To map a hostname to a fixed IP in RouterOS, you create a static DNS entry by specifying the hostname and the IP address you want it to resolve to. The command uses two fields: name, which is the hostname you want to resolve locally, and address, which is the IP that should be returned for that name. This ensures that queries for that hostname don’t go out to external DNS servers but are answered with the exact IP you configured. The best command shows the hostname gateway paired with the IP 192.168.88.1 using the standard form: /ip dns static add name=gateway address=192.168.88.1. This binds the name gateway to that IP in the router’s DNS static table, so devices using the router for DNS will resolve gateway to 192.168.88.1. Note that one alternative places the parameters in the reverse order, which some parsers may accept, but the conventional and clear form is to list the name first followed by the address. Using a different IP, like 192.168.0.1, would map gateway to a different device, which would not achieve the intended result.

To map a hostname to a fixed IP in RouterOS, you create a static DNS entry by specifying the hostname and the IP address you want it to resolve to. The command uses two fields: name, which is the hostname you want to resolve locally, and address, which is the IP that should be returned for that name. This ensures that queries for that hostname don’t go out to external DNS servers but are answered with the exact IP you configured.

The best command shows the hostname gateway paired with the IP 192.168.88.1 using the standard form: /ip dns static add name=gateway address=192.168.88.1. This binds the name gateway to that IP in the router’s DNS static table, so devices using the router for DNS will resolve gateway to 192.168.88.1.

Note that one alternative places the parameters in the reverse order, which some parsers may accept, but the conventional and clear form is to list the name first followed by the address. Using a different IP, like 192.168.0.1, would map gateway to a different device, which would not achieve the intended result.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy