Community discussions

MikroTik App
chrgraf
刚刚加入了
Topic Author
Posts: 2
加入: Thu Jan 06, 2011 10:15 am

cannot update root of zone with "/tool dns-update"

Thu Jan 06, 2011 10:42 am

I use "/tool dns-update" to keep reachable from the net and use a script to check for WAN address changes. And it works well (RouterOS 4.13):
Code:Select all
/tool dns-update dns-server=x.x.x.x key-name=mydomain.ch. ttl=600 zone=mydomain.ch. address=y.y.y.y name=gw key="dz9..."/
Only drawback: "/tool dns-update" requires a "name=", which may not be empty or missing. As a result, I can easily update names like "gw.mydomain.ch", but I cannot find a way update the root of the zone "mydomain.ch".

Is there a way to achieve updates on the root of the zone?

Christoph
Top
blake
Member
Member
Posts: 426
加入: Mon May 31, 2010 10:46 pm
Location:Arizona

Re: cannot update root of zone with "/tool dns-update"

Fri Jan 07, 2011 12:49 am

You could just CNAME mydomain.ch to gw.mydomain.ch.
Top
changeip
Forum Guru
Forum Guru
Posts: 3828
加入: Fri May 28, 2004 5:22 pm

Re: cannot update root of zone with "/tool dns-update"

Fri Jan 07, 2011 3:50 am

You cant make the root record a CNAME, its against RFC.

Can you use name="@" ?
Top
chrgraf
刚刚加入了
Topic Author
Posts: 2
加入: Thu Jan 06, 2011 10:15 am

Re: cannot update root of zone with "/tool dns-update"

Fri Jan 07, 2011 10:05 am

You cant make the root record a CNAME, its against RFC.
Agreed: CNAME is in conflict with other information. Since NS records reside there, I cannot add a CNAME.
Can you use name="@" ?
I tested this, but get the message "refused", apparently from the DNS-server.
I guess there is no way around adding support for such updates in the "tool dns-update" interface.

Christoph
Top

Who is online

Users browsing this forum: No registered users and 2 guests