DNS 101
Defining hosts and domains locally
To define a static host name to address mapping, use the following command:
For hosts that are accessed without a domain name at the end, (hostname.domain-name), you can define a default domain name or a list of domain names to be used, using one of the following commands:
Using a DNS Server
To define a DNS server and make the router work as a DNS client, use:
The local mappings will be used first, and if there is no match, the name-server will be queried.
For DNS lookups you can define:
By default, if there are multiple DNS servers defined, the first one will be used by default, while the other servers will only be used in case of failure of the previous servers. For one host a router can have multiple IP addresses that it is resolved to. By default, only the first one is used. You can use each IP address in a round-robin fashion if you enable
To see the current dns cache, use:
Of course, lookups can be disabled altogether, using:
Making the router a DNS Server
To configure the router as a server, use:
The router will respond to DNS requests with data from its statically configured hosts or from the responses cached from the other DNS servers.
DNS Spoofing is an option that is enabled only if the domain lookups are disabled, if no name servers are configured, or if there is no route to them. The router will respond to all DNS requests with the configured IP or with the interface IP:
Last updated