How to configure NTP server on ASA using hostname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2009 12:09 PM - edited 02-21-2020 03:24 AM
Is this forum alive? I'd rather say all real network pros abandoned it.
Can someone please tell me how to configure the ASA with NTP server hostnames. I want to explicitly use hostnames as a particular NTP hostname is actually a pool of hosts with different IP addresses. One of them goes down the other one takes over.
ASA(config)# ntp server ?
configure mode commands/options:
Hostname or A.B.C.D IP address of peer
I'm trying to use Hostname and fail.
ASA(config)# ntp server 0.ca.pool.ntp.org
^
ERROR: % Invalid Hostname
DNS is enabled and I can resolve this hostname into the IP address:
ASA(config)# ping inside 0.ca.pool.ntp.org
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 216.194.70.2, timeout is 2 seconds:
- Labels:
-
Other Network Security Topics
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2009 01:13 PM
Unfortunately the lookup is done locally and not via DNS.
fw-1(config)# ntp server 0.ca.pool.ntp.org
^
ERROR: % Invalid Hostname
But once you add the hostname locally, it works. Also note that the hostname must start with a letter!
fw-1(config)# name 1.1.1.1 ca.pool.ntp.org
fw-1(config)# ntp server ca.pool.ntp.org
Hope that helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2009 01:17 PM
Thanks, Collin. It would work like a charm but the original idea was to use a hostname for a pool of NTP servers and this pool consists of a number of hosts that could be changed without a notice.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2018 06:19 AM
Is this still not possible in the newer versions of code?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2019 03:32 AM
Nope, this is still missing.
I could not even find an enhancement bug.
Sad.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2020 06:22 AM
So even if DNS servers are configured in the ASA you still cannot use hostnames in place of NTP servers?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2020 07:02 AM
Yes, that is the case.
Or at least it was a year ago. I have not tested since my comment.
