I have a simple cname "cname=xxx.com,yyy.com" entry in dnsmasc.conf where "yyy.com" - existing domain. Everything works fine, but after some time the router stops giving the IP address.
Server: 127.0.0.1
Address: 127.0.0.1#53
Name: xxx.com
xxx.com canonical name = yyy.com
Name: yyy.com
xxx.com canonical name = yyy.com
But if I execute the nslookup command to yyy.com from the router or even from PC, then the router immediately starts giving out the address. What could be the problem? Thanks.
dnsmasq.conf:
Because I can't open any link in xxx.com domain and nslookup to xxx.com not giving address. Only nslookup yyy.com help router to "recall" it. I think dns record wipe or expire somehow and dnsmasq does not request entry for cname alias.
Do you mean assign domain xxx.com ip address of domain yyy.com through hostname? I can't do that, because ip of yyy.com is dynamic. That's why i'm trying to use cname. Thanks.
Your dnsmasq is not authoritative for the domain you are trying to resolve via cname. The resolving works until the TTL expires. A workaround would be to periodically query the rutracker dot net so that the answer is cached.