ntp.conf の "restrict" オプションで DNS ホスト名を使用することはできますか?
Issue
"restrict" オプションの DNS ホスト名が動作しません。
このオプションで DNS ホスト名を設定すると、サーバーへの時刻同期が確立されません。
以下は、該当する ntp.conf のサンプルとなります。
restrict default ignore
# Permit all access over the loopback interface.This could
# be tightened as well, but to do so would effect some of
# the administrative functions.
restrict 127.0.0.1
restrict -6 ::1
restrict 0.rhel.pool.ntp.org nomodify noquery
# Hosts on local network are less restricted.
#restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap
# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
server 0.rhel.pool.ntp.org
server 1.rhel.pool.ntp.org
server 2.rhel.pool.ntp.org
Environment
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
- ntp-4.2.7p23 より前の ntp
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.