9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] stupid question - expansion of $var in dial strings
@ 2002-12-18 14:35 steve.simon
  2002-12-29  5:34 ` Russ Cox
  0 siblings, 1 reply; 2+ messages in thread
From: steve.simon @ 2002-12-18 14:35 UTC (permalink / raw)
  To: 9fans

Hi,

The manual says that if I run timesync with -n it will use NTP and if I don't
supply a
server name it will use $ntp (udp!$ntp!ntp).

My /lib/ndb/local contains an entry for my machine (below) and it correctly sets
the machine name from the ether address so I assume it is happy.

and by my reckoning it should find the ntp server name, but it does not appear
to,
infact the call to dial() appears to hang - maybe it would fail eventually with
a
DNS timeout I dunno.

What have I missed?

database=
    file=/lib/ndb/local
    file=/lib/ndb/common

# DHCP at work
sys=savan ether=0020af8d6140 ntp=gb.public.ntp.get-time.net
    dom=swlocal

#dialup at home
sys=ntl telco=126308005190100
    dom=ntlworld.com
    dns=194.168.4.100 dns=194.168.8.100
    pop=pop.ntlworld.com
    smtp=smtp.ntlworld.com
    nntp=news.ntlworld.com
    ntp=gb.public.ntp.get-time.net

auth=sources.cs.bell-labs.com authdom=outside.plan9.bell-labs.com


-Steve




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [9fans] stupid question - expansion of $var in dial strings
  2002-12-18 14:35 [9fans] stupid question - expansion of $var in dial strings steve.simon
@ 2002-12-29  5:34 ` Russ Cox
  0 siblings, 0 replies; 2+ messages in thread
From: Russ Cox @ 2002-12-29  5:34 UTC (permalink / raw)
  To: 9fans

> What have I missed?

The lookup is done by IP address.  You could use

ipnet=the-world ip=0.0.0.0 ipmask=0.0.0.0
	ntp=gb.public.ntp.get-time.net

I think, or something a little more specific.

Russ



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-12-29  5:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-18 14:35 [9fans] stupid question - expansion of $var in dial strings steve.simon
2002-12-29  5:34 ` Russ Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).