Community discussions

MikroTik App
 
User avatar
hendry
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 75
Joined: Sat Jan 18, 2014 9:59 am
Location: Cornwall, UK
Contact:

why doesn't NTP client accept named domains?

Sat Jan 18, 2014 10:13 am

Image

I don't understand why WebFig calls this SNTP IIUC.

Also why can't I use 0.asia.pool.ntp.org instead of IPs? Or am I missing something?
 
plisken
Forum Guru
Forum Guru
Posts: 2509
Joined: Sun May 15, 2011 12:24 am
Location: Belgium
Contact:

Re: why doesn't NTP client accept named domains?

Tue Jan 21, 2014 6:41 pm

I have a suspicion that your router board is not connected to your ISP while you ran the configuration.
The router cannot perform DNS translations in itself
 
User avatar
hendry
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 75
Joined: Sat Jan 18, 2014 9:59 am
Location: Cornwall, UK
Contact:

Re: why doesn't NTP client accept named domains?

Wed Jan 22, 2014 5:22 am

Image

My router has DNS. It seems that it won't accept a domain name as an argument. Bit crap.
 
plisken
Forum Guru
Forum Guru
Posts: 2509
Joined: Sun May 15, 2011 12:24 am
Location: Belgium
Contact:

Re: why doesn't NTP client accept named domains?

Wed Jan 22, 2014 7:20 pm

Ping to 0.asia.pool.ntp.org and you know the IP-address
 
User avatar
honzam
Forum Guru
Forum Guru
Posts: 2395
Joined: Wed Feb 27, 2008 10:27 pm
Location: Czech Republic

Re: why doesn't NTP client accept named domains?

Wed Jan 22, 2014 8:54 pm

Ping to 0.asia.pool.ntp.org and you know the IP-address
It works, but this is workaround
 
Sob
Forum Guru
Forum Guru
Posts: 9121
Joined: Mon Apr 20, 2009 9:11 pm

Re: why doesn't NTP client accept named domains?

Thu Jan 23, 2014 8:04 pm

Don't lose hope. They only recently added this "advanced feature" to VPN clients, including OpenVPN they hate very much. For NTP, which AFAIK they don't hate, so that should be an advantage, it should eventually happen too. :)
 
User avatar
skot
Long time Member
Long time Member
Posts: 584
Joined: Wed Nov 30, 2011 3:05 am

Re: why doesn't NTP client accept named domains?

Fri Jan 24, 2014 12:11 am

Use the [:resolve] function to set NTP... like this:
/system ntp client set primary-ntp=[:resolve 0.asia.pool.ntp.org]
 
mgreant
just joined
Posts: 11
Joined: Sat May 31, 2014 2:25 pm

Re: why doesn't NTP client accept named domains?

Sun Jun 01, 2014 6:35 pm

I think this doesn't solve the problem in the long term.

The 0.asia.pool.nts.org link refers to a pool of IP's of NTS servers. This means if the IP of a NTS server goes offline, the domain (0.asia....) will automatically link to the IP address of another NTS server.
The IP of the domain is dynamic.

But I'm not sure...
 
User avatar
payday
Member Candidate
Member Candidate
Posts: 233
Joined: Thu Aug 16, 2012 11:05 pm

Re: why doesn't NTP client accept named domains?

Mon Jun 02, 2014 7:51 pm

Also why can't I use 0.asia.pool.ntp.org instead of IPs
Because programmers at MikroTik are lazy ;). This functionality is so simple to implement and was so many times requested that there is no other explanation for this. :)

Also: most RouterBoards don't have clocks build in, so SNTP client could be enabled by default with 0.pool.ntp.org and 1.pool.ntp.org set as default servers. So simple and practical. :)
 
User avatar
skot
Long time Member
Long time Member
Posts: 584
Joined: Wed Nov 30, 2011 3:05 am

Re: why doesn't NTP client accept named domains?

Tue Jun 03, 2014 9:00 pm

I think this doesn't solve the problem in the long term.

The 0.asia.pool.nts.org link refers to a pool of IP's of NTS servers. This means if the IP of a NTS server goes offline, the domain (0.asia....) will automatically link to the IP address of another NTS server.
The IP of the domain is dynamic.

But I'm not sure...
The easiest solution is to use the scheduler to update the NTP servers every X minutes. Something like this: http://forum.mikrotik.com/viewtopic.php ... 06#p415437
 
User avatar
payday
Member Candidate
Member Candidate
Posts: 233
Joined: Thu Aug 16, 2012 11:05 pm

Re: why doesn't NTP client accept named domains?

Mon Jun 16, 2014 11:20 pm

I just found that SNTP Client in Winbox accepts domain names and resolves them to IP addresses. I think it wasn't possible in v 6.8 (when I last tried that :) ).

Who is online

Users browsing this forum: Ahrefs [Bot] and 66 guests