I am using 6.42.3 on a CCR1009
I have 2 different domain name with the same IP, I add both to the address list but only one of them will be resolve into IP, both of them are working if only just have one of them in the list
I had try recreate both of them but it still not working, is this a bug or I miss something?
Can you elaborate on what exactly is your problem?
If I add each of the two domain names resolving to the same IP address to a different list, the dynamic address list item is created for both:
[me@MyTik] > ip firewall address-list print
Flags: X - disabled, D - dynamic
# LIST ADDRESS CREATION-TIME TIMEOUT
0 list1 google.com may/27/2018 14:04:16
1 D ;;; google.com
list1 216.58.201.110 may/27/2018 14:04:16
2 list2 youtube.com may/27/2018 14:04:25
3 D ;;; youtube.com
list2 216.58.201.110 may/27/2018 14:04:25
If I add both to the same list, only a single dynamic item is created, but that’s logical as the IP address is identical for both domain names so a single item is enough.
[me@MyTik] > ip firewall address-list print
Flags: X - disabled, D - dynamic
# LIST ADDRESS CREATION-TIME TIMEOUT
0 list1 google.com may/27/2018 14:04:16
1 D ;;; google.com
list1 216.58.201.110 may/27/2018 14:04:16
2 list1 youtube.com may/27/2018 14:05:51
Thanks so much, my problem is exact as #2(both in a single list), I think only one of them being resolve as it only have one dynamic item.
So in fact both had being resolved and only one dynamic item will be on the list, is this correct?
I am new to routeros and I had misunderstand how it work.
So in fact both had being resolved and only one dynamic item will be on the list, is this correct?
Yes, correct. If you eventually move one of the domains to a new IP address in future, that IP address will appear as another dynamic item on the list, as the DNS resolution is repeated and the dynamic item is recreated each time the previous DNS response’s validity expires.