9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] wildcard dns cname
@ 2011-12-04 19:15 slash
  0 siblings, 0 replies; 7+ messages in thread
From: slash @ 2011-12-04 19:15 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 1350 bytes --]

I have the following wildcard entry in my /lib/ndb/local:

cname=server.local
        dom=*.local

Essentially I want every name to resolve back to my server.

Now, ndb/dnsdebug is able to resolve any host just fine:

cpu% ndb/dnsdebug
> foobar
----------------------------
answer server.local                         1 hr            ip   10.0.0.1
----------------------------

But the lookup fails when issued on a unix box:

$ nslookup foobar.local
Server: 10.0.0.1
Address: 10.0.0.1#53

<5 seconds delay>
*** Can't find foobar.local: No answer

Specifying the server in ndb/dnsdebug shows the following:

cpu% ndb/dnsdebug
> @10.0.0.1
> foobar
8300.2: sending to 10.0.0.1/10.0.0.1 foobar.local ip
<delay>
8300.2: sending to 10.0.0.1/10.0.0.1 foobar.local ip
<delay>
8300.2: sending to 10.0.0.1/10.0.0.1 foobar.local cname
<delay>
8300.2: sending to 10.0.0.1/10.0.0.1 foobar.local cname
<delay>
8300.2: sending to 10.0.0.1/10.0.0.1 server.local ip
<delay>
8300.2: sending to 10.0.0.1/10.0.0.1 server.local ip
<delay>
----------------------------
answer server.local                         1 hr            ip   10.0.0.1
----------------------------

How do I fix this so that these dns lookups work without delays on all
machines on my network?

The dns server is started as "ndb/dns -sr" in cpurc.

[-- Attachment #2: Type: text/html, Size: 2841 bytes --]

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

end of thread, other threads:[~2011-12-04 22:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CAEaiYYzbiY3WMRXj7CFKmbey0cZst6HhmDdznmNiE3VwS4FRbA@mail.gmail.c>
2011-12-04 19:21 ` [9fans] wildcard dns cname erik quanstrom
2011-12-04 21:21   ` slash
     [not found]   ` <CAEaiYYyQheXh2-d1KmJvmkbSKC1zMOL3KaxRF1hv3n1FN=W5qQ@mail.gmail.c>
2011-12-04 21:32     ` erik quanstrom
2011-12-04 22:07       ` slash
2011-12-04 22:38         ` slash
2011-12-04 22:51           ` slash
2011-12-04 19:15 slash

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