Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Is ntpdate only synchronize with domainname server
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
jufeng
n00b
n00b


Joined: 28 May 2007
Posts: 8

PostPosted: Thu Sep 06, 2007 2:44 am    Post subject: Is ntpdate only synchronize with domainname server Reply with quote

# ntpdate 218.59.75.203
6 Sep 10:38:41 ntpdate[5015]: no server suitable for synchronization found
# ntpdate 0.asia.pool.ntp.org
6 Sep 10:39:00 ntpdate[5016]: adjust time server 203.181.37.152 offset 0.079104 sec
#


Is ntpdate only synchronize with domainname server
Back to top
View user's profile Send private message
wuzzerd
Guru
Guru


Joined: 05 Jan 2005
Posts: 466
Location: New Mexico

PostPosted: Thu Sep 06, 2007 3:13 am    Post subject: Reply with quote

I synchronizes with a time server.

218.59.75.203 is an address on the on Shandong Provincial Network in Beijing. It apparently has no time server.

203.181.37.152 is one of the addresses returned by 0.asia.pool.ntp.org.

Code:
#dig 0.asia.pool.ntp.org
lists eight different addresses. All of them are name servers since that is what ntp.org does.
Back to top
View user's profile Send private message
jufeng
n00b
n00b


Joined: 28 May 2007
Posts: 8

PostPosted: Thu Sep 06, 2007 5:44 am    Post subject: Reply with quote

wuzzerd wrote:
I synchronizes with a time server.

218.59.75.203 is an address on the on Shandong Provincial Network in Beijing. It apparently has no time server.

203.181.37.152 is one of the addresses returned by 0.asia.pool.ntp.org.

Code:
#dig 0.asia.pool.ntp.org
lists eight different addresses. All of them are name servers since that is what ntp.org does.


Thank you very much.
I understood.

Thank you again.
Do you know this problem https://bugs.gentoo.org/show_bug.cgi?id=41827.
Back to top
View user's profile Send private message
snIP3r
l33t
l33t


Joined: 21 May 2004
Posts: 853
Location: germany

PostPosted: Thu Sep 06, 2007 7:01 am    Post subject: Reply with quote

jufeng wrote:
...
Thank you again.
Do you know this problem https://bugs.gentoo.org/show_bug.cgi?id=41827.


what problem do you exactly mean?? the last post from george?? if so, in my config i also have no opts. ntpd is started as root.

Code:

# /etc/conf.d/ntpd

# Options to pass to the ntpd process
# Most people should leave this line alone ...
# however, if you know what you're doing, feel free to tweak
NTPD_OPTS=""


i have installed 4.2.4_p0 on an amd machine.

HTH
snIP3r
_________________
Intel i3-4130T on ASUS P9D-X
Kernel 5.15.88-gentoo SMP
-----------------------------------------------
if your problem is fixed please add something like [solved] to the topic!
Back to top
View user's profile Send private message
jufeng
n00b
n00b


Joined: 28 May 2007
Posts: 8

PostPosted: Thu Sep 06, 2007 9:19 am    Post subject: Reply with quote

snIP3r wrote:


what problem do you exactly mean?? the last post from george?? if so, in my config i also have no opts. ntpd is started as root.

Code:

# /etc/conf.d/ntpd

# Options to pass to the ntpd process
# Most people should leave this line alone ...
# however, if you know what you're doing, feel free to tweak
NTPD_OPTS=""


i have installed 4.2.4_p0 on an amd machine.

HTH
snIP3r


Yes, I mean the last post from george. If I add NTPD_OPTS="-u ntp:ntp -s" in /etc/conf.d/ntpd, ntpd can't be start.

Anyone here have the same problem as george?


And anyone here know this error:
# /etc/init.d/ntpd start
* Starting ntpd ... [ ok ]
# ntpq -p
ntpq: read: Connection refused

/etc/ntp.conf:
server pool.ntp.org
logfile /var/log/ntpd.log
driftfile /var/lib/ntp/ntp.drift


Thank you kindly.


Last edited by jufeng on Thu Sep 06, 2007 9:27 am; edited 1 time in total
Back to top
View user's profile Send private message
snIP3r
l33t
l33t


Joined: 21 May 2004
Posts: 853
Location: germany

PostPosted: Thu Sep 06, 2007 9:24 am    Post subject: Reply with quote

hi!

look at the postings above:

Code:

...
error messages:
# /etc/init.d/ntpd start
 * Starting ntpd ...
/usr/sbin/ntpd: invalid option -- u
usage: ntpd [-dSs] [-f file]
 * Failed to start ntpd 
...


the -u option is no longer valid. so u only can add -s to your NTPD_OPTS.

HTH
snIP3r
_________________
Intel i3-4130T on ASUS P9D-X
Kernel 5.15.88-gentoo SMP
-----------------------------------------------
if your problem is fixed please add something like [solved] to the topic!
Back to top
View user's profile Send private message
jufeng
n00b
n00b


Joined: 28 May 2007
Posts: 8

PostPosted: Thu Sep 06, 2007 9:37 am    Post subject: Reply with quote

snIP3r wrote:
hi!

look at the postings above:

Code:

...
error messages:
# /etc/init.d/ntpd start
 * Starting ntpd ...
/usr/sbin/ntpd: invalid option -- u
usage: ntpd [-dSs] [-f file]
 * Failed to start ntpd 
...


the -u option is no longer valid. so u only can add -s to your NTPD_OPTS.

HTH
snIP3r



#man ntpd
-u string, --user=string
Run as userid (or userid:groupid).

Specify a user, and optionally a group, to switch to. This option is only
available if the OS supports to run the server without full root privileges.
Currently, this option is supported under NetBSD (configure with --enable-
clockctl ) and Linux (configure with --enable-linuxcaps ).

There is no invalid info?
If -u is invalid, do you know how to run on droproot?

thank you.
Back to top
View user's profile Send private message
snIP3r
l33t
l33t


Joined: 21 May 2004
Posts: 853
Location: germany

PostPosted: Thu Sep 06, 2007 10:09 am    Post subject: Reply with quote

hi jufeng!

please check these links:

http://gentoo-wiki.com/HOWTO_NTP

https://forums.gentoo.org/viewtopic-t-162583.html

and this older link:

https://forums.gentoo.org/viewtopic-t-343403.html

this might help you...

HTH
snIP3r
_________________
Intel i3-4130T on ASUS P9D-X
Kernel 5.15.88-gentoo SMP
-----------------------------------------------
if your problem is fixed please add something like [solved] to the topic!
Back to top
View user's profile Send private message
jufeng
n00b
n00b


Joined: 28 May 2007
Posts: 8

PostPosted: Thu Sep 13, 2007 10:48 am    Post subject: Reply with quote

Hi snIP3r


I find where's the problem.
In Geoge's setup: net-misc/ntp-4.2.4-r1 USE="caps openntpd ssl -debug -ipv6 -parse-clocks(-selinux)
There is oponntpd in use flags, so the ntpd is openntpd's ntpd not ntp's ntpd.
In openntpd there is no -u option and the config file should be ntpd.conf not ntp.conf.
Openntpd will spawn a process using ntp:ntp user.
So now I just use openntpd, comparing with ntp there are many advantages.

Thank you kindly.
Back to top
View user's profile Send private message
snIP3r
l33t
l33t


Joined: 21 May 2004
Posts: 853
Location: germany

PostPosted: Thu Sep 13, 2007 12:53 pm    Post subject: Reply with quote

jufeng wrote:
Hi snIP3r


I find where's the problem.
In Geoge's setup: net-misc/ntp-4.2.4-r1 USE="caps openntpd ssl -debug -ipv6 -parse-clocks(-selinux)
There is oponntpd in use flags, so the ntpd is openntpd's ntpd not ntp's ntpd.
In openntpd there is no -u option and the config file should be ntpd.conf not ntp.conf.
Openntpd will spawn a process using ntp:ntp user.
So now I just use openntpd, comparing with ntp there are many advantages.

Thank you kindly.


nop, you're welcome!
i use ntp's ntpd but had a vew errors last time. next time i get an error again i will use openntp's ntpd ;)

greets
snIP3r
_________________
Intel i3-4130T on ASUS P9D-X
Kernel 5.15.88-gentoo SMP
-----------------------------------------------
if your problem is fixed please add something like [solved] to the topic!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum