2

can I set same NTP server twice i.e one by using IPv4 address and other by using Ipv6 address of the same NTP server?

for example :

lets suppose we have a NTP server named as XXX. Now this XXX server will have both IPv4 and IPv6 address.. right?... now can i set a same server twice by using ipv4 address and ipv6 address at same time

7
  • 1
    What ist your definition for "set the same server twice", i.e. what are you hoping to accomplish?
    – M. Glatki
    May 2, 2016 at 9:57
  • lets suppose we have a NTP server named as XXX. Now this XXX server will have both IPv4 and IPv6 address.. right?... now can i set a same server twice by using ipv4 address and ipv6 address at same time
    – ajay
    May 2, 2016 at 10:02
  • 1
    It would depend on the OS, however if the v6 address is down, so is the v4 address (on Linux and windows at least) so there would be little benefit.
    – Jim B
    May 2, 2016 at 11:49
  • 1
    I still do not understand the point of this exercise. Put the name of the NTP server in, it will resolve one or the other. Pointing at the same clock twice doesn't make your timekeeping better. May 3, 2016 at 3:05
  • Indeed. Listing the same server twice will make your timekeeping less reliable. This is not a good idea. May 3, 2016 at 3:52

1 Answer 1

3

Yes you can do this with the ntp reference implementation. Use the -4 and -6 directives in your config:

server -4 XXX.example.com
server -6 XXX.example.com
server pool.ntp.org

# blah blah rest of config

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.