LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-13-2018, 10:25 AM   #1
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,340

Rep: Reputation: 224Reputation: 224Reputation: 224
sntp reports network unreachable but seems to work anyway


After years of using NIST's nistime I've switched to sntp. It returns:
Quote:
sntp[20355]: sntp 4.2.8p12@1.3728-o Thu Aug 16 17:20:15 UTC 2018 (1)
sntp[20355]: Send to [2610:20:6f96:96::4]:123 failed, Network is unreachable
sntp[20355]: 2018-09-13 06:23:23.293264 (+0700) +0.042290 +/- 0.028778 time.nist.gov 132.163.96.1 s1 no-leap
Has sntp fetched the time or not?
 
Old 09-14-2018, 10:56 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,820
Blog Entries: 15

Rep: Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664
The unreachable network appears to be IPv6. Is it possible it reached on IPv4 and that is why it is "working"?
 
1 members found this post helpful.
Old 09-15-2018, 11:15 AM   #3
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,340

Original Poster
Rep: Reputation: 224Reputation: 224Reputation: 224
Quote:
Originally Posted by MensaWater View Post
The unreachable network appears to be IPv6. Is it possible it reached on IPv4 and that is why it is "working"?
Bingo! Adding the -4 switch eliminated the error. Thanks.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sntp with cron daemon doesn't work roll.84 Linux - Software 1 10-01-2014 10:40 AM
Network is Unreachable/Unknown host/Destination Host Unreachable [Debian] denv Linux - Networking 4 03-27-2014 03:58 PM
Network is unreachable .. thiyagusham Linux - Newbie 5 03-28-2013 05:07 PM
Write a shell script that pings a list of hosts and reports the unreachable ones. Beverly Linux - Newbie 8 11-25-2012 08:59 PM
Network Unreachable for Destination Network other than Interface Jack10 Linux - Networking 3 08-17-2010 08:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration