05-06-2019 04:07 AM
I have configure a NTP server using a DNS name on a IOS router.
But when I boot the device and the DNS server is not available on config load, the IP address doesn't get resolved and never asks the NTP server.
Is there any way to force the router to lookup the NTP server and use it later.(without removing the NTP server and reapplying it)
Right now the router has been running for 2 days and hasn't update the NTP time yet.
05-06-2019 04:49 AM
NTP should keep check the updates, can you post your NTP config.
Also if you have DNS issue, you map the NTP DNS in to IP as below example :
config t
!
ip host ntpserver.com x.x.x.x
!
so if the dns Fails still it will use IP to sync.
make sense ?
05-06-2019 08:23 AM
05-06-2019 06:23 AM
Hello,
--> Right now the router has been running for 2 days and hasn't update the NTP time yet.
That sounds odd, how did you configure NTP ? And what (device) are you currently using as NTP server ?
05-06-2019 08:18 AM
03-08-2021 11:34 PM
Hi guys,
Indeed I have the same kind of issue on a Cat. 2960CX running IOS 15.2(4)E2. In the startup configuration file two DNS servers are configured using their hostname but since NDS resolution is not yet available when the NTP process starts the switch remains unsynchronized.
Does it mean the only way to configure a NTP server is to use its IP address ?
Regards, Vincent
03-09-2021 01:00 AM
Hello,
I am not sure what the original problem was, but:
ip host time.google.com 216.239.35.0
ntp server time.google.com
should work.
03-09-2021 12:08 AM
Hello
Try using split DNS RR so the dns list associated with the host will round robin to each server in the listing.
Example:
ip host view ntp.greennet.gl 8.8.8.8 8.8.4.4 etc..
ip dns view default
domain lookup
domain round-robin
03-09-2021 01:03 AM
Hi Paul,
Thanks for advice. I can unable DNS round robin but I cannot enter the below command :
ip dns view default
Can you please explain a little bit what is its purpose ? Please kindly note the problem is not with a particular DNS server but the fact that DNS resolution is not available at all when the NTP process startups.
Regards, Vincent
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: