You are not logged in.

#1 2010-04-03 21:07:13

Primoz
Member
From: Ljubljana-Slovena-EU
Registered: 2009-03-04
Posts: 688

[Solved] problems with ntp

OK I have no idea what's going on. I set ntp correctly, but when I do ntpq -p I get this:

Name or service not known

My ntp.conf:

# NOTES:
#  - you should only have to update the server line below
#  - if you start getting lines like 'restrict' and 'fudge'
#    and you didnt add them, AND you run dhcpcd on your
#    network interfaces, be sure to add '-Y -N' to the
#    dhcpcd_ethX variables in /etc/conf.d/net

# Name of the servers ntpd should sync with
# Please respect the access policy as stated by the responsible person.
#server         ntp.example.tld         iburst

#server 3.si.pool.ntp.org iburst
server ntp1.arnes.si iburst
server ntp2.arnes.si iburst

##
# A list of available servers can be found here:
# http://www.pool.ntp.org/
# http://www.pool.ntp.org/#use
# A good way to get servers for your machine is:
# netselect -s 3 pool.ntp.org
##

# you should not need to modify the following paths
driftfile       /var/lib/ntp/ntp.drift

#server ntplocal.example.com prefer
#server timeserver.example.org

# Warning: Using default NTP settings will leave your NTP
# server accessible to all hosts on the Internet.

# If you want to deny all machines (including your own)
# from accessing the NTP server, uncomment:
#restrict default ignore


# To deny other machines from changing the
# configuration but allow localhost:
restrict default kod notrap nomodify nopeer noquery
restrict 127.0.0.1


# To allow machines within your network to synchronize
# their clocks with your server, but ensure they are
# not allowed to configure the server or used as peers
# to synchronize against, uncomment this line.
#
#restrict 192.168.0.0 mask 255.255.255.0 nomodify nopeer notrap

Help? I don't know what's wrong...

Last edited by Primoz (2010-04-04 19:37:40)


Arch x86_64 ATI AMD APU KDE frameworks 5
---------------------------------
Whatever I do, I always end up with something horribly mis-configured.

Offline

#2 2010-04-04 02:45:43

TheCox
Member
From: Orlando, FL
Registered: 2010-02-23
Posts: 34

Re: [Solved] problems with ntp

Do you have localhost in your /etc/hosts?

Offline

#3 2010-04-04 07:40:07

thestinger
Package Maintainer (PM)
From: Toronto, Canada
Registered: 2010-01-23
Posts: 478

Re: [Solved] problems with ntp

is the daemon started properly? /var/log/daemon.log will contain the relevant info if something is failing

also make sure you have network/dns access before you start the ntp daemon

Offline

#4 2010-04-04 19:16:39

Primoz
Member
From: Ljubljana-Slovena-EU
Registered: 2009-03-04
Posts: 688

Re: [Solved] problems with ntp

I checked both, I do have my hostname in hosts, and daemons.log is empty...

I'm using networkmanager, I stoped it and started network and restarted ntpdate, but ti doesn't work.


Arch x86_64 ATI AMD APU KDE frameworks 5
---------------------------------
Whatever I do, I always end up with something horribly mis-configured.

Offline

#5 2010-04-04 19:43:20

Primoz
Member
From: Ljubljana-Slovena-EU
Registered: 2009-03-04
Posts: 688

Re: [Solved] problems with ntp

Solved by changeing to openntpd


Arch x86_64 ATI AMD APU KDE frameworks 5
---------------------------------
Whatever I do, I always end up with something horribly mis-configured.

Offline

#6 2010-04-04 21:33:32

thestinger
Package Maintainer (PM)
From: Toronto, Canada
Registered: 2010-01-23
Posts: 478

Re: [Solved] problems with ntp

I know you switched, but ntpd is the daemon, ntpdate is to set the time

anyway, both are pretty much just implementations of exactly the same thing, so go with what works tongue

Last edited by thestinger (2010-04-04 21:37:28)

Offline

Board footer

Powered by FluxBB