Static DNS in MT - Round Robin

Hi,

We use the DNS in the Mikrotik and we are building a clustered SAN. We need to RR a host so we had 3 time the host record with the three different IPs in the static entry. MT doesnt seem to RR the host. Is there a way to do it?

Martin

RR?..


/ip dns static
add address=0.0.0.1 disabled=no name=abc.def
add address=0.0.0.2 disabled=no name=abc.def
add address=0.0.0.3 disabled=no name=abc.def



C:\Documents and Settings\XxXxX>nslookup abc.def 192.168.0.250
Server:  router.lan
Address:  192.168.0.250

Non-authoritative answer:
Name:    abc.def
Addresses:  0.0.0.1, 0.0.0.2, 0.0.0.3

Thank for this quick reply,

Yes thats what I did, in terms of adding static host record

RR: Round Robin. So each time I interrogate the host name I would like to get the first IP, next time I would like to get the next IP, etc…

What would be the use of setting three IP for the same host name if I can not get a different one at each dns ip resolution?

Martin

all records should be handed back, however, it would be nice if RouterOS rotated thru them. Their DNS implementation is very primitive.

See below, it doesn’t rotate them on each query like BIND or other name servers do:

abc.def.
Server: [10.40.1.1]
Address: 10.40.1.1

Non-authoritative answer:
Name: abc.def
Addresses: 0.0.0.1, 0.0.0.2, 0.0.0.3

abc.def.
Server: [10.40.1.1]
Address: 10.40.1.1

Non-authoritative answer:
Name: abc.def
Addresses: 0.0.0.1, 0.0.0.2, 0.0.0.3

abc.def.
Server: [10.40.1.1]
Address: 10.40.1.1

Non-authoritative answer:
Name: abc.def
Addresses: 0.0.0.1, 0.0.0.2, 0.0.0.3

abc.def.
Server: [10.40.1.1]
Address: 10.40.1.1

Non-authoritative answer:
Name: abc.def
Addresses: 0.0.0.1, 0.0.0.2, 0.0.0.3

server 4.2.2.2
Default Server: [4.2.2.2]
Address: 4.2.2.2

ns2.changeip.com.
Server: [4.2.2.2]
Address: 4.2.2.2

Non-authoritative answer:
Name: ns2.changeip.com
Addresses: 68.15.4.40, 198.106.5.106, 204.16.175.11, 213.198.89.85

ns2.changeip.com.
Server: [4.2.2.2]
Address: 4.2.2.2

Non-authoritative answer:
Name: ns2.changeip.com
Addresses: 213.198.89.85, 68.15.4.40, 198.106.5.106, 204.16.175.11

ns2.changeip.com.
Server: [4.2.2.2]
Address: 4.2.2.2

Non-authoritative answer:
Name: ns2.changeip.com
Addresses: 204.16.175.11, 213.198.89.85, 68.15.4.40, 198.106.5.106

ns2.changeip.com.
Server: [4.2.2.2]
Address: 4.2.2.2

Non-authoritative answer:
Name: ns2.changeip.com
Addresses: 198.106.5.106, 204.16.175.11, 213.198.89.85, 68.15.4.40

Argh…

I tought I will get away using this little dns server, it would have been fine if it was going to round robin my clustered storage for my virtual host. I guess I would need to install two dns server just to accomodate my virtual hosts, yikes! I would have preffer my two RB1000. Mikrotik please consider this request.

Martin

please write your request to support@mikrotik.com