Cache Monitoring; Static Dns Entries; Flushing Dns Cache - MikroTik RouterOS v2.9 Reference Manual

Reference manual
Table of Contents

Advertisement

secondary-dns: 0.0.0.0
allow-remote-requests: yes
cache-size: 2048KiB
cache-max-ttl: 1w
cache-used: 17KiB
[admin@MikroTik] ip dns>

Cache Monitoring

Home menu level: /ip dns cache
Property Description
address ( read-only: IP address ) - IP address of the host
name ( read-only: name ) - DNS name of the host
ttl ( read-only: time ) - remaining time-to-live for the record

Static DNS Entries

Home menu level: /ip dns static
Description
The MikroTik 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.
Property Description
address ( IP address ) - IP address to resolve domain name with
name ( text ) - DNS name to be resolved to a given IP address
ttl ( time ) - time-to-live of the DNS record
Example
To add a static DNS entry for www.example.com to be resolved to 10.0.0.1 IP address:
[admin@MikroTik] ip dns static> add name www.example.com address=10.0.0.1
[admin@MikroTik] ip dns static> print
# NAME
0 aaa.aaa.a
1 www.example.com
[admin@MikroTik] ip dns static>

Flushing DNS cache

Command name: /ip dns cache flush
Command Description
flush - clears internal DNS cache
Copyright 1999-2007, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA.
Other trademarks and registred trademarks mentioned herein are properties of their respective owners.
ADDRESS
TTL
123.123.123.123 1d
10.0.0.1
1d
Page 499 of 695

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RouterOS v2.9 and is the answer not in the manual?

Table of Contents

Save PDF