9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] DNS server domain
@ 2008-03-28 15:03 erik quanstrom
  0 siblings, 0 replies; 10+ messages in thread
From: erik quanstrom @ 2008-03-28 15:03 UTC (permalink / raw)
  To: matthias-9fs, 9fans

> > the dnsdomain attribute is well-documented.  what i didn't see
> > is the convention for where to hang it in the database.
> > generally, i do this by setting ipnet in /lib/ndb/local.  e.g.
>
> I put it in my ndb/local and it works for the Plan 9 server
>
> % ndb/dnsquery
> > cab
> cab.mteege.de ip	10.8.47.11
>
> But if I query the server from other clients on the same network I've
> got empty results. Is dnsdomain only usefull for "internal" querys?
>
> Matthias

by "other clients" do you mean plan 9 systems or non-plan9 systems?
the default domain is not communicated via dns mechanisms.

- erik


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

* Re: [9fans] DNS server domain
  2008-03-29  9:34         ` John Soros
@ 2008-03-29 14:10           ` erik quanstrom
  0 siblings, 0 replies; 10+ messages in thread
From: erik quanstrom @ 2008-03-29 14:10 UTC (permalink / raw)
  To: 9fans

every system that uses bind 9 has the same behavior.  however bind's
Old Standard, nslookup, does not ignore resolv.conf.

- erik

> Ah great!
> add one to lunix quirks, shouldn't it be the system that resolves names? This is pretty weird :-)
> Cheers!
> Johnny
>
>
[...]
>>
>> ; dig cab +short
>> ; nslookup cab
>> ..
>> Name:	cab.mteege.de
>> Address: 10.8.47.11



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

* Re: [9fans] DNS server domain
  2008-03-29  8:21       ` Matthias Teege
@ 2008-03-29  9:34         ` John Soros
  2008-03-29 14:10           ` erik quanstrom
  0 siblings, 1 reply; 10+ messages in thread
From: John Soros @ 2008-03-29  9:34 UTC (permalink / raw)
  To: Matthias Teege, 9fans

Ah great!
add one to lunix quirks, shouldn't it be the system that resolves names? This is pretty weird :-)
Cheers!
Johnny


On Sat, 29 Mar 2008 09:21:41 +0100
Matthias Teege <matthias-9fs@mteege.de> wrote:

> > When I used my plan9 server as dns server, it was also my dhcp server,
> > which is quite handy. it communicates some info to the dhcp clents,
>
> Me too.
>
> > worked for me :-)
>
> It worked for me to. Looks like the dig command ignores the search domain
> in resolv.conf.
>
>
> ; dig cab +short
> ; nslookup cab
> ..
> Name:	cab.mteege.de
> Address: 10.8.47.11
>
> Many thanks
> Matthias
>


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

* Re: [9fans] DNS server domain
  2008-03-28 19:21     ` John Soros
@ 2008-03-29  8:21       ` Matthias Teege
  2008-03-29  9:34         ` John Soros
  0 siblings, 1 reply; 10+ messages in thread
From: Matthias Teege @ 2008-03-29  8:21 UTC (permalink / raw)
  To: sorosj, 9fans

> When I used my plan9 server as dns server, it was also my dhcp server,
> which is quite handy. it communicates some info to the dhcp clents,

Me too.

> worked for me :-)

It worked for me to. Looks like the dig command ignores the search domain
in resolv.conf.


; dig cab +short
; nslookup cab
..
Name:	cab.mteege.de
Address: 10.8.47.11

Many thanks
Matthias



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

* Re: [9fans] DNS server domain
  2008-03-28 14:54   ` Matthias Teege
@ 2008-03-28 19:21     ` John Soros
  2008-03-29  8:21       ` Matthias Teege
  0 siblings, 1 reply; 10+ messages in thread
From: John Soros @ 2008-03-28 19:21 UTC (permalink / raw)
  To: 9fans

When I used my plan9 server as dns server, it was also my dhcp server, which is quite handy. it communicates some info to the dhcp clents, for example the default search domain, which, in my understanding does just what you want. It firsq querys the dns server for the domain, then tries to prefix it to the default search domain, and query that.
worked for me :-)
Cheers
Johnny


On Fri, 28 Mar 2008 15:54:55 +0100
Matthias Teege <matthias-9fs@mteege.de> wrote:

> > the dnsdomain attribute is well-documented.  what i didn't see
> > is the convention for where to hang it in the database.
> > generally, i do this by setting ipnet in /lib/ndb/local.  e.g.
>
> I put it in my ndb/local and it works for the Plan 9 server
>
> % ndb/dnsquery
> > cab
> cab.mteege.de ip	10.8.47.11
>
> But if I query the server from other clients on the same network I've
> got empty results. Is dnsdomain only usefull for "internal" querys?
>
> Matthias
>
>


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

* Re: [9fans] DNS server domain
       [not found] <bf4bf30847a6f4b87df2b584b28687ed@quanstro.net>
@ 2008-03-28 15:32 ` Matthias Teege
  0 siblings, 0 replies; 10+ messages in thread
From: Matthias Teege @ 2008-03-28 15:32 UTC (permalink / raw)
  To: quanstro, 9fans

> by "other clients" do you mean plan 9 systems or non-plan9 systems?
> the default domain is not communicated via dns mechanisms.

I mean non-plan9 systems.
Matthias



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

* Re: [9fans] DNS server domain
  2008-03-28 12:38 ` erik quanstrom
@ 2008-03-28 14:54   ` Matthias Teege
  2008-03-28 19:21     ` John Soros
  0 siblings, 1 reply; 10+ messages in thread
From: Matthias Teege @ 2008-03-28 14:54 UTC (permalink / raw)
  To: 9fans

> the dnsdomain attribute is well-documented.  what i didn't see
> is the convention for where to hang it in the database.
> generally, i do this by setting ipnet in /lib/ndb/local.  e.g.

I put it in my ndb/local and it works for the Plan 9 server

% ndb/dnsquery
> cab
cab.mteege.de ip	10.8.47.11

But if I query the server from other clients on the same network I've
got empty results. Is dnsdomain only usefull for "internal" querys?

Matthias



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

* Re: [9fans] DNS server domain
  2008-03-28  8:24 Matthias Teege
@ 2008-03-28 12:38 ` erik quanstrom
  2008-03-28 14:54   ` Matthias Teege
  0 siblings, 1 reply; 10+ messages in thread
From: erik quanstrom @ 2008-03-28 12:38 UTC (permalink / raw)
  To: 9fans

> Moin,
>
> how do I set the "defaultdomain" an a Plan 9 DNS server?
>

ndb(6) didn't clear everything up for me.  then again, i haven't
had any coffee yet.

the dnsdomain attribute is well-documented.  what i didn't see
is the convention for where to hang it in the database.
generally, i do this by setting ipnet in /lib/ndb/local.  e.g.

ipnet=athensnat ip=192.168.0.0 ipmask=/120
	fs=buda.quanstro.net
	ipgw=192.168.0.4
	dns=192.168.0.136
	dnsdomain=quanstro.net
	authdom=plan9.quanstro.net
	auth=ladd

- erik



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

* Re: [9fans] DNS server domain
       [not found] <mailman.1.1206705601.1211.9fans@9fans.net>
@ 2008-03-28 12:29 ` Josh Wood
  0 siblings, 0 replies; 10+ messages in thread
From: Josh Wood @ 2008-03-28 12:29 UTC (permalink / raw)
  To: 9fans

> how do I set the "defaultdomain" an a Plan 9 DNS server?

dnsdomain pairs (in ndb(6)).

-Josh



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

* [9fans] DNS server domain
@ 2008-03-28  8:24 Matthias Teege
  2008-03-28 12:38 ` erik quanstrom
  0 siblings, 1 reply; 10+ messages in thread
From: Matthias Teege @ 2008-03-28  8:24 UTC (permalink / raw)
  To: 9fans

Moin,

how do I set the "defaultdomain" an a Plan 9 DNS server?

% ndb/dnsquery
> cab
!dns: resource does not exist
> cab.mteege.de
cab.mteege.de ip	10.18.47.11

Would be nice if I can get

% ndb/dnsquery
> cab
cab ip	10.18.47.11

Many thanks
Matthias



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

end of thread, other threads:[~2008-03-29 14:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-28 15:03 [9fans] DNS server domain erik quanstrom
     [not found] <bf4bf30847a6f4b87df2b584b28687ed@quanstro.net>
2008-03-28 15:32 ` Matthias Teege
     [not found] <mailman.1.1206705601.1211.9fans@9fans.net>
2008-03-28 12:29 ` Josh Wood
  -- strict thread matches above, loose matches on Subject: below --
2008-03-28  8:24 Matthias Teege
2008-03-28 12:38 ` erik quanstrom
2008-03-28 14:54   ` Matthias Teege
2008-03-28 19:21     ` John Soros
2008-03-29  8:21       ` Matthias Teege
2008-03-29  9:34         ` John Soros
2008-03-29 14:10           ` erik quanstrom

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