AT-WR4500 Series - IEEE 802.11abgh Outdoor Wireless Routers

131

RouterOS v3 Configuration and User Guide

 

 

 

Description

The RouterOS has an embedded DNS server feature in DNS cache. It allows you to link the particular domain names with the respective IP addresses and advertize these links to the DNS clients using the router as their DNS server. This feature can also be used to provide fake DNS information to your network clients. For example, resolving any DNS request for a certain set of domains (or for the whole Internet) to your own page.

The server is capable of resolving DNS requests based on POSIX basic regular expressions, so that multiple requets can be matched with the same entry. In case an entry does not conform with DNS naming standards, it is considered a regular expression and marked with ‘R’ flag.

The list is ordered and is checked from top to bottom. Regular expressions are checked first, then the plain records.

Property Description

address (IP address) - IP address to resolve domain name with

name (text) - DNS name to be resolved to a given IP address. May be a regular expression ttl (time) - time-to-live of the DNS record

￿

Reverse DNS lookup (Address to Name) of the regular expression entries is not possible. You can, however, add an additional plain record with the same IP address and specify some name for it.Remember that the meaning of a dot (.) in regular expressions is any character, so the expression should be escaped properly. For example, if you need to match anything within example.com domain but not all the domains that just end with example.com, like www.another-example.com, use name=".*\\.example\\.com"Regular expression matching is significantly slower than of the plain entries, so it is advised to minimize the number of regular expression rules and optimize the expressions themselves.

Example

To add a static DNS entry for www.example.com to be resolved to 10.0.0.1 IP address:

[admin@AT-WR4562] ip dns static> add name www.example.com address=10.0.0.1

[admin@AT-WR4562] ip dns static> print

 

Flags: D - dynamic, X - disabled, R - regexp

 

#

NAME

ADDRESS

TTL

0

www.example.com

10.0.0.1

1d

[admin@AT-WR4562] ip dns static>

6.6Flushing DNS cache

Command name: /ip dns cache flush

Command Description

flush - clears internal DNS cache

Example

[admin@AT-WR4562] ip dns> cache flush

[admin@AT-WR4562] ip dns> print primary-dns: 159.148.60.2

secondary-dns: 0.0.0.0 allow-remote-requests: yes

cache-size: 2048 KiB cache-max-ttl: 1w

cache-used: 10 KiB

[admin@AT-WR4562] ip dns>

Page 131
Image 131
Allied Telesis AT-WR4500 manual 6Flushing DNS cache, Command name /ip dns cache flush, Flush clears internal DNS cache