ntp using ipv6 address instead of ipv4Properly configuring symmetric active NTP?Flow of ipv4 over ipv6 tunnelResolving IPv4 address from DNS using the IPv6 address of a host (bind9)NTP Servers not Sync with other machinesAdd IPv6 address to existing IPv4 interface not workingMapping IPv6 to IPv4 addressesChrony does not want to synchronizeNTP pool provide only IPv4 records?Change the listening address to IPv4 from IPv6Time drifting after NTP is configured

How do I create uniquely male characters?

Denied boarding due to overcrowding, Sparpreis ticket. What are my rights?

Is it legal to have the "// (c) 2019 John Smith" header in all files when there are hundreds of contributors?

Is "plugging out" electronic devices an American expression?

How is it possible for user's password to be changed after storage was encrypted? (on OS X, Android)

What are the advantages and disadvantages of running one shots compared to campaigns?

Is this food a bread or a loaf?

Pristine Bit Checking

What happens when a metallic dragon and a chromatic dragon mate?

Symmetry in quantum mechanics

Can I legally use front facing blue light in the UK?

Lied on resume at previous job

Crop image to path created in TikZ?

How to manage monthly salary

Why doesn't a const reference extend the life of a temporary object passed via a function?

Is there a way to make member function NOT callable from constructor?

Doomsday-clock for my fantasy planet

How would photo IDs work for shapeshifters?

Is Social Media Science Fiction?

Shall I use personal or official e-mail account when registering to external websites for work purpose?

What does 'script /dev/null' do?

Ideas for 3rd eye abilities

Should the British be getting ready for a no-deal Brexit?

Finding files for which a command fails



ntp using ipv6 address instead of ipv4


Properly configuring symmetric active NTP?Flow of ipv4 over ipv6 tunnelResolving IPv4 address from DNS using the IPv6 address of a host (bind9)NTP Servers not Sync with other machinesAdd IPv6 address to existing IPv4 interface not workingMapping IPv6 to IPv4 addressesChrony does not want to synchronizeNTP pool provide only IPv4 records?Change the listening address to IPv4 from IPv6Time drifting after NTP is configured






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















I have a laptop running a version of Linux ( 3.12 ). I have ntpd installed and configured to sync with time.google.com. The problem I am having is if I am plugged into a network that only provides an IPV4 address, ntp's dns is using the ipv6 address:



 root@Node00b01973d6cc:~# ntpq -pn 
remote refid st t when poll reach delay offset jitter
==============================================================================
127.127.1.0 .LOCL. 10 l 7 64 1 0.000 0.000 0.002
ff0e::101 .MCST. 16 M - 64 0 0.000 0.000 0.002
2001:4860:4806: .INIT. 16 u - 64 0 0.000 0.000 0.000


Now, if I force ntpd to use only ipv4 DNS with the -4 option, everything works fine



root@Node00b01973d6cc:~# ntpq -pn 172.16.17.111 
remote refid st t when poll reach delay offset jitter
==============================================================================
127.127.1.0 .LOCL. 10 l 60 64 1 0.000 0.000 0.002
216.239.35.12 .GOOG. 1 u 57 64 1 29.278 341.883 0.002


But I don't want to do this because if I go to a network that only gives ipv6 addresses this will fail. Is there a way to configure ntp to only use ipv4 ( or ipv6 ) if my interface actually has an ip address in that family?



The version of ntpd is 4.2.8p12. This is the ntp.conf file:



tinker panic 0 

driftfile /usr/local/etc/ntp.drift
disable auth

# Update the realtime clock and override its default
# stratum of 0.
server time.google.com prefer #Real Time Clock
server 127.127.1.0 #Real Time Clock
server 127.127.1.0 #Real Time Clock
fudge 127.127.1.0 stratum 10
broadcast ff0e::101 iburst ttl 7


I have figured out the root cause of why this started to happen. I recently disabled ipv6 forwarding on my system. Once I turn ipv6 forwarding back on, ntp starts using the ipv4 address as I would expect.



Why would turning on ipv6 forwarding do this?



By default the system boots with ipv6 forwarding disabled. To turn it on, in one of the boot scripts I have the line:



sysctl -w net.ipv6.conf.all.forwarding=1









share|improve this question
























  • I don't know. I notice on my Fedora 29 system that getent hosts time.google.com returns IPv6 only, even though I do not have ipv6 access, but getent ahosts time.google.com returns all results in the correct preference order. So I tried enabling ipv6 forwarding at runtime, both in conf.all and in conf.wlp2s0, but it did not change the result of getent hosts time.google.com

    – sourcejedi
    2 days ago












  • To gain a working configuration, I guess you could try an ugly hack with two separate server lines. server -4 time.google.com and server -6 time.google.com.

    – sourcejedi
    2 days ago


















1















I have a laptop running a version of Linux ( 3.12 ). I have ntpd installed and configured to sync with time.google.com. The problem I am having is if I am plugged into a network that only provides an IPV4 address, ntp's dns is using the ipv6 address:



 root@Node00b01973d6cc:~# ntpq -pn 
remote refid st t when poll reach delay offset jitter
==============================================================================
127.127.1.0 .LOCL. 10 l 7 64 1 0.000 0.000 0.002
ff0e::101 .MCST. 16 M - 64 0 0.000 0.000 0.002
2001:4860:4806: .INIT. 16 u - 64 0 0.000 0.000 0.000


Now, if I force ntpd to use only ipv4 DNS with the -4 option, everything works fine



root@Node00b01973d6cc:~# ntpq -pn 172.16.17.111 
remote refid st t when poll reach delay offset jitter
==============================================================================
127.127.1.0 .LOCL. 10 l 60 64 1 0.000 0.000 0.002
216.239.35.12 .GOOG. 1 u 57 64 1 29.278 341.883 0.002


But I don't want to do this because if I go to a network that only gives ipv6 addresses this will fail. Is there a way to configure ntp to only use ipv4 ( or ipv6 ) if my interface actually has an ip address in that family?



The version of ntpd is 4.2.8p12. This is the ntp.conf file:



tinker panic 0 

driftfile /usr/local/etc/ntp.drift
disable auth

# Update the realtime clock and override its default
# stratum of 0.
server time.google.com prefer #Real Time Clock
server 127.127.1.0 #Real Time Clock
server 127.127.1.0 #Real Time Clock
fudge 127.127.1.0 stratum 10
broadcast ff0e::101 iburst ttl 7


I have figured out the root cause of why this started to happen. I recently disabled ipv6 forwarding on my system. Once I turn ipv6 forwarding back on, ntp starts using the ipv4 address as I would expect.



Why would turning on ipv6 forwarding do this?



By default the system boots with ipv6 forwarding disabled. To turn it on, in one of the boot scripts I have the line:



sysctl -w net.ipv6.conf.all.forwarding=1









share|improve this question
























  • I don't know. I notice on my Fedora 29 system that getent hosts time.google.com returns IPv6 only, even though I do not have ipv6 access, but getent ahosts time.google.com returns all results in the correct preference order. So I tried enabling ipv6 forwarding at runtime, both in conf.all and in conf.wlp2s0, but it did not change the result of getent hosts time.google.com

    – sourcejedi
    2 days ago












  • To gain a working configuration, I guess you could try an ugly hack with two separate server lines. server -4 time.google.com and server -6 time.google.com.

    – sourcejedi
    2 days ago














1












1








1








I have a laptop running a version of Linux ( 3.12 ). I have ntpd installed and configured to sync with time.google.com. The problem I am having is if I am plugged into a network that only provides an IPV4 address, ntp's dns is using the ipv6 address:



 root@Node00b01973d6cc:~# ntpq -pn 
remote refid st t when poll reach delay offset jitter
==============================================================================
127.127.1.0 .LOCL. 10 l 7 64 1 0.000 0.000 0.002
ff0e::101 .MCST. 16 M - 64 0 0.000 0.000 0.002
2001:4860:4806: .INIT. 16 u - 64 0 0.000 0.000 0.000


Now, if I force ntpd to use only ipv4 DNS with the -4 option, everything works fine



root@Node00b01973d6cc:~# ntpq -pn 172.16.17.111 
remote refid st t when poll reach delay offset jitter
==============================================================================
127.127.1.0 .LOCL. 10 l 60 64 1 0.000 0.000 0.002
216.239.35.12 .GOOG. 1 u 57 64 1 29.278 341.883 0.002


But I don't want to do this because if I go to a network that only gives ipv6 addresses this will fail. Is there a way to configure ntp to only use ipv4 ( or ipv6 ) if my interface actually has an ip address in that family?



The version of ntpd is 4.2.8p12. This is the ntp.conf file:



tinker panic 0 

driftfile /usr/local/etc/ntp.drift
disable auth

# Update the realtime clock and override its default
# stratum of 0.
server time.google.com prefer #Real Time Clock
server 127.127.1.0 #Real Time Clock
server 127.127.1.0 #Real Time Clock
fudge 127.127.1.0 stratum 10
broadcast ff0e::101 iburst ttl 7


I have figured out the root cause of why this started to happen. I recently disabled ipv6 forwarding on my system. Once I turn ipv6 forwarding back on, ntp starts using the ipv4 address as I would expect.



Why would turning on ipv6 forwarding do this?



By default the system boots with ipv6 forwarding disabled. To turn it on, in one of the boot scripts I have the line:



sysctl -w net.ipv6.conf.all.forwarding=1









share|improve this question
















I have a laptop running a version of Linux ( 3.12 ). I have ntpd installed and configured to sync with time.google.com. The problem I am having is if I am plugged into a network that only provides an IPV4 address, ntp's dns is using the ipv6 address:



 root@Node00b01973d6cc:~# ntpq -pn 
remote refid st t when poll reach delay offset jitter
==============================================================================
127.127.1.0 .LOCL. 10 l 7 64 1 0.000 0.000 0.002
ff0e::101 .MCST. 16 M - 64 0 0.000 0.000 0.002
2001:4860:4806: .INIT. 16 u - 64 0 0.000 0.000 0.000


Now, if I force ntpd to use only ipv4 DNS with the -4 option, everything works fine



root@Node00b01973d6cc:~# ntpq -pn 172.16.17.111 
remote refid st t when poll reach delay offset jitter
==============================================================================
127.127.1.0 .LOCL. 10 l 60 64 1 0.000 0.000 0.002
216.239.35.12 .GOOG. 1 u 57 64 1 29.278 341.883 0.002


But I don't want to do this because if I go to a network that only gives ipv6 addresses this will fail. Is there a way to configure ntp to only use ipv4 ( or ipv6 ) if my interface actually has an ip address in that family?



The version of ntpd is 4.2.8p12. This is the ntp.conf file:



tinker panic 0 

driftfile /usr/local/etc/ntp.drift
disable auth

# Update the realtime clock and override its default
# stratum of 0.
server time.google.com prefer #Real Time Clock
server 127.127.1.0 #Real Time Clock
server 127.127.1.0 #Real Time Clock
fudge 127.127.1.0 stratum 10
broadcast ff0e::101 iburst ttl 7


I have figured out the root cause of why this started to happen. I recently disabled ipv6 forwarding on my system. Once I turn ipv6 forwarding back on, ntp starts using the ipv4 address as I would expect.



Why would turning on ipv6 forwarding do this?



By default the system boots with ipv6 forwarding disabled. To turn it on, in one of the boot scripts I have the line:



sysctl -w net.ipv6.conf.all.forwarding=1






dns ipv6 ntp ipv4






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 30 at 15:05







tpotter01

















asked Mar 28 at 12:25









tpotter01tpotter01

62




62












  • I don't know. I notice on my Fedora 29 system that getent hosts time.google.com returns IPv6 only, even though I do not have ipv6 access, but getent ahosts time.google.com returns all results in the correct preference order. So I tried enabling ipv6 forwarding at runtime, both in conf.all and in conf.wlp2s0, but it did not change the result of getent hosts time.google.com

    – sourcejedi
    2 days ago












  • To gain a working configuration, I guess you could try an ugly hack with two separate server lines. server -4 time.google.com and server -6 time.google.com.

    – sourcejedi
    2 days ago


















  • I don't know. I notice on my Fedora 29 system that getent hosts time.google.com returns IPv6 only, even though I do not have ipv6 access, but getent ahosts time.google.com returns all results in the correct preference order. So I tried enabling ipv6 forwarding at runtime, both in conf.all and in conf.wlp2s0, but it did not change the result of getent hosts time.google.com

    – sourcejedi
    2 days ago












  • To gain a working configuration, I guess you could try an ugly hack with two separate server lines. server -4 time.google.com and server -6 time.google.com.

    – sourcejedi
    2 days ago

















I don't know. I notice on my Fedora 29 system that getent hosts time.google.com returns IPv6 only, even though I do not have ipv6 access, but getent ahosts time.google.com returns all results in the correct preference order. So I tried enabling ipv6 forwarding at runtime, both in conf.all and in conf.wlp2s0, but it did not change the result of getent hosts time.google.com

– sourcejedi
2 days ago






I don't know. I notice on my Fedora 29 system that getent hosts time.google.com returns IPv6 only, even though I do not have ipv6 access, but getent ahosts time.google.com returns all results in the correct preference order. So I tried enabling ipv6 forwarding at runtime, both in conf.all and in conf.wlp2s0, but it did not change the result of getent hosts time.google.com

– sourcejedi
2 days ago














To gain a working configuration, I guess you could try an ugly hack with two separate server lines. server -4 time.google.com and server -6 time.google.com.

– sourcejedi
2 days ago






To gain a working configuration, I guess you could try an ugly hack with two separate server lines. server -4 time.google.com and server -6 time.google.com.

– sourcejedi
2 days ago











0






active

oldest

votes












Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f509203%2fntp-using-ipv6-address-instead-of-ipv4%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f509203%2fntp-using-ipv6-address-instead-of-ipv4%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







-dns, ipv4, ipv6, ntp

Popular posts from this blog

Creating 100m^2 grid automatically using QGIS?Creating grid constrained within polygon in QGIS?Createing polygon layer from point data using QGIS?Creating vector grid using QGIS?Creating grid polygons from coordinates using R or PythonCreating grid from spatio temporal point data?Creating fields in attributes table using other layers using QGISCreate .shp vector grid in QGISQGIS Creating 4km point grid within polygonsCreate a vector grid over a raster layerVector Grid Creates just one grid

Nikolai Prilezhaev Bibliography References External links Navigation menuEarly Russian Organic Chemists and Their Legacy092774english translationRussian Biography

How to link a C library to an Assembly library on Mac with clangHow do you set, clear, and toggle a single bit?Find (and kill) process locking port 3000 on MacWho is listening on a given TCP port on Mac OS X?How to start PostgreSQL server on Mac OS X?Compile assembler in nasm on mac osHow do I install pip on macOS or OS X?AFNetworking 2.0 “_NSURLSessionTransferSizeUnknown” linking error on Mac OS X 10.8C++ code for testing the Collatz conjecture faster than hand-written assembly - why?How to link a NASM code and GCC in Mac OS X?How to run x86 .asm on macOS Sierra