Broken NTP servers in sysinstall

Craig Rodrigues rodrigc at crodrigues.org
Sat Aug 20 01:14:18 GMT 2005


Hi,

I was looking at:

http://www.freebsd.org/cgi/query-pr.cgi?pr=75479

I wrote the attached script to do DNS lookups on
all the ntp servers listed in sysinstall,
and found the following ones could not be resolved.

Can anyone suggest replacements?  


Could not find following NTP servers in DNS:
===========================================
      { "Australia #5",		"time.esec.com.au",
      { "Indonesia",		"ntp.incaf.net",
      { "Mexico",		"ntp2a.audiotel.com.mx",
      { "Mexico #2",		"ntp2b.audiotel.com.mx",
      { "Mexico #3",		"ntp2c.audiotel.com.mx",
      { "Nigeria",		"ntp.supernet300.com",
      { "Portugal",		"bug.fe.up.pt",
      { "Russia #2",		"sign.chg.ru",
      { "Singapore",		"ntp.shim.org",
      { "Slovenia",		"calvus.rzs-hm.si",
      { "United Kingdom #9",	"tick.tanac.net",
      { "U.S. AR",	"sushi.compsci.lyon.edu",
      { "U.S. NY",	"clock.linuxshell.net",
      { "U.S. NY #2",	"ntp.ctr.columbia.edu",
      { "U.S. NY #4",	"ntp1.mpis.net",
      { "U.S. NY #5",	"ntp2.mpis.net",
      { "U.S. OK",	"constellation.ecn.uoknor.edu",
      { "U.S. TX",	"ntp.cox.smu.edu",
      { "U.S. WA",	"clock.tricity.wsu.edu",
      { "Venezuela",	"ntp.linux.org.ve",
===========================================

-- 
Craig Rodrigues        
rodrigc at crodrigues.org
-------------- next part --------------
#!/bin/sh

MENUS=/usr/src/usr.sbin/sysinstall/menus.c

NTP_LIST="$(cat $MENUS | grep ntpdate_flags= | sed -e s'/\"ntpdate_enable=YES,ntpdate_flags=//g' | sed -e 's/\".*//g')"

echo "Could not find following NTP servers in DNS:" 
echo "==========================================="
for NTP_SERVER in $NTP_LIST
do
   host $NTP_SERVER > /dev/null
   if [ $? -ne 0 ]
   then
      grep $NTP_SERVER $MENUS | grep -v ntpdate
   fi
done
echo "==========================================="


More information about the freebsd-current mailing list