Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Sat Aug 19, 2017 2:43 am


Internet Protocol, Transport Control Protocol, Network protocols, Routing, Routers, IP aliases, Routes, Ethernet

Author Message
mandrei99
Post  Post subject: How to force NTP in Debian/Ubuntu to synchronize to IPv4 servers, not IPv6 (default \w both proto)  |  Posted: Wed Jun 18, 2014 11:04 am

Joined: Tue Aug 04, 2009 9:16 am
Posts: 245

Offline
 

How to force NTP in Debian/Ubuntu to synchronize to IPv4 servers, not IPv6 (default \w both proto)

How to force NTP in Debian/Ubuntu to synchronize to IPv4 servers, not IPv6 (default \w both proto)

After enabling IPv6 in the network, NTP daemon uses ipv6 DNS resolution to synchronize to ntp servers:
Code:
# ntpq -pn
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
2001:b31:5c02:1 .INIT.          16 u    -   64    0    0.000    0.000   0.000
2001:b31:5c02:1 .INIT.          16 u    -   64    0    0.000    0.000   0.000


If this is not required, edit the "/etc/default/ntp" file and add the "-4" startup option for ntpd so that it uses IPv4 dns resolution.

From "man ntpd":
Quote:
OPTIONS
-4, --ipv4 Force IPv4 DNS name resolution. This option must not appear
in combination with any of the following options: ipv6.

Force DNS resolution of following host names on the command
line to the IPv4 namespace.

-6, --ipv6 Force IPv6 DNS name resolution. This option must not appear
in combination with any of the following options: ipv4.

Force DNS resolution of following host names on the command
line to the IPv6 namespace.





Top
Display posts from previous:  Sort by  
E-mail friendPrint view

Topics related to - "How to force NTP in Debian/Ubuntu to synchronize to IPv4 servers, not IPv6 (default \w both proto)"
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. IPv6 tunnel - Debian Linux and tunnelbroker.net - IPv6 in IPv4 (ip protocol 41)

mandrei99

0

1629

Sun Feb 01, 2015 4:17 am

mandrei99 View the latest post

There are no new unread posts for this topic. Linux: How to list IPv6 neighbors

mandrei99

0

699

Thu Oct 09, 2014 3:11 am

mandrei99 View the latest post

There are no new unread posts for this topic. FreeBSD: How to list IPv6 neighbors

mandrei99

0

1929

Mon Oct 06, 2014 10:00 am

mandrei99 View the latest post

There are no new unread posts for this topic. How to accept IPv6 Router Advertisements on interface in FreeBSD

mandrei99

0

1082

Wed Apr 29, 2015 3:54 am

mandrei99 View the latest post

There are no new unread posts for this topic. How to add IP alias in Debian Linux to last after reboot

debuser

3

1437

Sat Jul 21, 2012 6:03 am

Harespok View the latest post

There are no new unread posts for this topic. Fatal error: Trying to set unexisting parameter 'gmysql-host' - PowerDNS error on Debian

mandrei99

0

3834

Tue Jan 13, 2015 12:03 pm

mandrei99 View the latest post

 

Who is online
Users browsing this forum: No registered users and 0 guests
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Jump to:  
News News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO