I try to setup automatic syncing time on Cisco Catalyst 2960-CG-8TC-L switch using following command.
ntp server 0.cz.pool.ntp.org
and it works and sync time but after switch reload it does not sync time. In netflow collector I see that switch do not produce any NTP request to the NTP server and only way to force switch manually sync time is to run following commands again after each reboot manually.
no ntp server 0.cz.pool.ntp.org ntp server 0.cz.pool.ntp.org
I think the cause is that switch tries to resolve "0.cz.pool.ntp.org" using DNS in time when ports are disabled and no communication with DNS server can occur. It prints over console follwoing message, stucks for aproximaltelly 10 seconds and then continues with initialization of interfaces, VLANS, SSH and so on.
Translating "0.cz.pool.ntp.org"...domain server (255.255.255.255)
sh ntp status prints after reboot the following
Clock is unsynchronized, stratum 16, no reference clock nominal freq is 190.7348 Hz, actual freq is 190.7348 Hz, precision is 2**20 ntp uptime is 22800 (1/100 of seconds), resolution is 5263 reference time is 00000000.00000000 (00:00:00.000 UTC Mon Jan 1 1900) clock offset is 0.0000 msec, root delay is 0.00 msec root dispersion is 3.25 msec, peer dispersion is 0.00 msec loopfilter state is 'FSET' (Drift set from file), drift is 0.000000000 s/s system poll interval is 8, never updated.
Is there any way how solve this issue and make switch syncing time after reboot?