9front - general discussion about 9front
 help / color / mirror / Atom feed
* Re: [9front] non-9front dhcp server -> /lib/ndb/local ignored?
@ 2015-12-29  1:09 sl
  2015-12-29  2:31 ` Steve Simon
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: sl @ 2015-12-29  1:09 UTC (permalink / raw)
  To: 9front, sl

> I have cpu server and auth server which I want to use from both home and internet.
> those names are:
> (1) hebe (or hebe.local) in home and hebe.nyx.link from internet
> (2) grid (or grid.local) in home and grid.nyx.link form internet
> 
> I have plan9 terminal on virtualbox on macbook.
> that is, I use the terminal in two types of environment.
> (a) local wifi in my home with plan9 based DHCP and DNS.
> (b) mobile router wifi with mobile ISP based DHCP and DNS.
> 
> of course we need fqdn in accessing from internet.

My setup is similar but slightly different.

In my (b) environment, I boot the 9front.iso livecd off of an image on
a USB stick and then bind my customizations (including /lib/ndb/local)
over the running system before launching my network configuration. My
9front terminal then gets an IP address from the free wifi access point
here in the building. I don't have any control over which address or what
settings my 9front terminal receives from that DHCP server. Once I've
received my DHCP lease my terminal *can* resolve values from ndb but
*cannot* operate on them:

	; ndb/query sys mars2
	sys=mars2 dom=mars2.inri.net ether=525400099935 ip=216.126.196.35 ipmask=255.255.255.224 ipgw=216.126.196.33 auth=mars2.inri.net authdom=mars2 dns=208.67.222.222 dns=208.67.220.220 mx=mars2.inri.net pref=5 txtrr=v=spf1 mx -all 
	; ip/ping -n 3 mars2
	ip/ping: couldn't dial icmp!mars2!1: cs: can't translate address: dns: resource does not exist; negrcode
	;

Similarly, auth= authdom= entries in /lib/ndb/local are ignored, but
work fine when I add them manually to /net/ndb.

I'd point out again that my terminal here at work is using the exact
same /lib/ndb/local file as my machines at home, all of which can
successfully perform the ip/ping -n 3 mars2 operation, and recognize
auth servers, without needing to edit /net/ndb manually.

Maybe I'm just doing something wrong, but the only real difference
I am aware of is that all of my machines at home are completely
controlled by Plan 9, while my terminal here at work gets its IP
address from a non-Plan 9 DHCP server.


> 	ns=hebe.loca

Is this a typo?

About your setup:

Doesn't your virtualbox terminal always see itself as being on its own
local network? Correct me if I'm wrong, but if I understand you correctly,
your host OS gets its IP from the "mobile router wifi with mobile ISP based
DHCP and DNS," while your virtualbox terminal gets its IP from virtualbox
itself. Is your virtualbox terminal getting its IP from virtualbox via
DHCP, or is it configured in ndb with a static IP address?

sl


^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: [9front] non-9front dhcp server -> /lib/ndb/local ignored?
@ 2015-12-29 19:14 sl
  2016-01-04 17:47 ` Ethan Grammatikidis
  0 siblings, 1 reply; 8+ messages in thread
From: sl @ 2015-12-29 19:14 UTC (permalink / raw)
  To: 9front

> hmmm... could it just be that ndb/cs sees the wrong /lib/ndb/local file?
> 
> you said you *bind* your local network configuration but will ndb/cs
> see it in its namespace?

That turned out to be the problem.

If I kill and restart cs after binding my custom /lib/ndb/local, everything
works as expected.

sl


^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: [9front] non-9front dhcp server -> /lib/ndb/local ignored?
@ 2015-12-29  2:55 sl
  0 siblings, 0 replies; 8+ messages in thread
From: sl @ 2015-12-29  2:55 UTC (permalink / raw)
  To: 9front

> maybe being foolish, but from memory - the config you see does not
> include a dnsdomain= entry so dns(1) does not know which names are
> local and which are not.

ndb(6) says:

          dnsdomain  a domain name that ndb/dns adds onto any unrooted
                     names when doing a search.  There may be multiple
                     dnsdomain pairs.


Shouldn't ndb just devolve to the (sole) existing sys= entry for mars2?

In any case, sys= is not the only attr that gets ignored. All the
auth= authdom= entries in /lib/ndb/local are also ignored. I have to
manually add them to /net/ndb in order to cpu/import remote systems.


> in you example you use ping, does that work with a fully qualified
> domain name?

Yes.

sl


^ permalink raw reply	[flat|nested] 8+ messages in thread
* non-9front dhcp server -> /lib/ndb/local ignored?
@ 2015-12-28 20:34 sl
  2015-12-29  0:20 ` [9front] " arisawa
  0 siblings, 1 reply; 8+ messages in thread
From: sl @ 2015-12-28 20:34 UTC (permalink / raw)
  To: 9front

At my job we have a free wifi access point that I connect
to from 9front like this:

	; ip/ipconfig	# NOTE: DHCP server is not Plan 9.

This gets me on the Internet. Everything works.

Except, values configured in /lib/ndb/local all seem to
be ignored. No sys= or auth= entries are recognized. In
order to successfully cpu/import remote Plan 9 machines,
I have to manually add auth= authdom= entries for the
corresponding auth servers in /net/ndb, and then refer
to them by the FQDNs.

At home, I use an identical /lib/ndb/local. All home
machines either PXE or TCP boot from the same file
server where the ndb file is stored. All of these
machines can successfully refer to local sys= entries,
even those that are in separate ipnets.

From all of this, it seems like Plan 9 machines that get
DHCP from a non-Plan 9 machine ignore /lib/ndb/local.

What's going on?

sl


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

end of thread, other threads:[~2016-01-04 17:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-29  1:09 [9front] non-9front dhcp server -> /lib/ndb/local ignored? sl
2015-12-29  2:31 ` Steve Simon
2015-12-29  3:56 ` arisawa
2015-12-29  5:04 ` cinap_lenrek
  -- strict thread matches above, loose matches on Subject: below --
2015-12-29 19:14 sl
2016-01-04 17:47 ` Ethan Grammatikidis
2015-12-29  2:55 sl
2015-12-28 20:34 sl
2015-12-29  0:20 ` [9front] " arisawa

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).