NTP.conf ... was stimmt da nicht?

Warum Debian und/oder eine seiner Spielarten? Was muss ich vorher wissen? Wo geht es nach der Installation weiter?
Antworten
Gulliver03
Beiträge: 523
Registriert: 23.09.2003 21:18:23

NTP.conf ... was stimmt da nicht?

Beitrag von Gulliver03 » 21.03.2008 19:38:10

Hallo liebe Debian-Gemeinde,

jetzt habe ich mein Sarge auf Etch gehoben und damit ist auch eine Veränderung bei der Konfiguration von NTP einhergegangen. Bisher ist alles auf NTP-Server gelaufen, was jetzt nicht mehr so vorgesehen zu sein scheint. Ich habe folgendes Problem mit der Datei /etc/ntp.conf. Beim Abgleich der Uhrzeit über ntpdate <timeserver> (oder auch ntpdate-debian) erhalte ich für alle eingetragenen Server die folgende Meldung:

Error: Temporary Failure in Name Resolution
21 Mar 19:22:05 ntpdate[15904]: can't find host ptbtime1.ptb.de

Error: Temporary Failure in Name Resolution
21 Mar 19:22:05 ntpdate[15904]: can't find host ntptime2.ptb.de

Error: Temporary Failure in Name Resolution
21 Mar 19:22:05 ntpdate[15904]: can't find host 1.de.pool.ntp.org
...
21 Mar 19:22:05 ntpdate[15904]: no servers can be used, exiting

Was ist denn in der ntp.conf falsch, dass es zu diesen Meldungen kommt. Nachstehend der Inhalt der Datei ntp.conf

***********************************************************************
/etc/ntp.conf, configuration for ntpd

driftfile /var/lib/ntp/ntp.drift
statsdir /var/log/ntpstats/

statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable


# NTP-Server
server ntptime1.ptb.de
server ntptime2.ptb.de

# pool.ntp.org maps to more than 300 low-stratum NTP servers.
# Your server will pick a different set every time it starts up.
# *** Please consider joining the pool! ***
# *** <http://www.pool.ntp.org/join.html> ***

server ptbtime1.ptb.de iburst
server ptbtime2.ptb.de iburst
server 0.de.pool.ntp.org prefer iburst
server 1.de.pool.ntp.org iburst
server 2.de.pool.ntp.org iburst
server de.pool.ntp.org iburst

# Zugriff durch NTP-Server gestatten
restrict ptbtime1.ptb.de
restrict ptbtime2.ptb.de
restrict 0.de.pool.ntp.org prefer
restrict 1.de.pool.ntp.org prefer
restrict 2.de.pool.ntp.org prefer

# By default, exchange time with everybody, but don't allow configuration.
# See /usr/share/doc/ntp-doc/html/accopt.html for details.
# restrict -4 default kod notrap nomodify nopeer noquery
# restrict -6 default kod notrap nomodify nopeer noquery


# Zugriff vom Localhost gestatten
# Local users may interrogate the ntp server more closely.
restrict 127.0.0.1
# restrict ::1


# Zugriff aus dem internen Netz gestatten
restrict 192.168.1.0 mask 255.255.255.0
# Clients from this (example!) subnet have unlimited access,
# but only if cryptographically authenticated
#restrict 192.168.123.0 mask 255.255.255.0 notrust


# Allen anderen Rechnern Zugriff verwehren
#restrict default notrust nomodify nopeer noquery
restrict default ignore


# If you want to provide time to your local subnet, change the next line.
# (Again, the address is an example only.)
# broadcast 192.168.123.255
broadcast 127.127.1.0 # local clock


# If you want to listen to time broadcasts on your local subnet,
# de-comment the next lines. Please do this only if you trust everybody
# on the network!
#disable auth
#broadcastclient

# NTP als Zeitserver
server 127.127.1.0 # local clock
fudge 127.127.1.0 stratum 12
***********************************************************************

Und hier noch der Eintrag der Datei /etc/default/ntpdate:

***********************************************************************
# The settings in this file are used by the program ntpdate-debian, but not
# by the upstream program ntpdate.

# Set to "yes" to take the server list from /etc/ntp.conf, from package ntp,
# so you only have to keep it in one place.
NTPDATE_USE_NTP_CONF=yes

# List of NTP servers to use (Separate multiple servers with spaces.)
# Not used if NTPDATE_USE_NTP_CONF is yes.
NTPSERVERS="0.debian.pool.ntp.org 1.debian.pool.ntp.org 2.debian.pool.ntp.org 3.debian.pool.ntp.org"

# Additional options to pass to ntpdate
NTPOPTIONS=""
***********************************************************************

Kann mir da jemand helfen, woran das liegt .... ich habe schon mehrfach Anleitungen aus dem Netz probiert, stosse aber immer wieder auf das selbe Problem.

Allerbesten Dank für Support.

Gruß

G.[/code]

rendegast
Beiträge: 15041
Registriert: 27.02.2006 16:50:33
Lizenz eigener Beiträge: MIT Lizenz

Beitrag von rendegast » 22.03.2008 02:04:17

ntptime[1|2].ptb.de finde ich gar nicht

ptbtime[1|2].ptb.de scheint oK

ntp[1|2].ptb.de scheint noch oK

eher Probleme mit Deinem DNS?
Der DNS unseres bintec hat auch eine Macke > Router-Firmware upgraden?
mit 'host' getestet?
mfg rendegast
-----------------------
Viel Eifer, viel Irrtum; weniger Eifer, weniger Irrtum; kein Eifer, kein Irrtum.
(Lin Yutang "Moment in Peking")

Antworten