From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 Date: Sun, 4 Dec 2011 14:15:24 -0500 Message-ID: From: slash To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=f46d0447a141288c3c04b34906bf Subject: [9fans] wildcard dns cname Topicbox-Message-UUID: 4d7091c6-ead7-11e9-9d60-3106f5b1d025 --f46d0447a141288c3c04b34906bf Content-Type: text/plain; charset=ISO-8859-1 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 8300.2: sending to 10.0.0.1/10.0.0.1 foobar.local ip 8300.2: sending to 10.0.0.1/10.0.0.1 foobar.local cname 8300.2: sending to 10.0.0.1/10.0.0.1 foobar.local cname 8300.2: sending to 10.0.0.1/10.0.0.1 server.local ip 8300.2: sending to 10.0.0.1/10.0.0.1 server.local ip ---------------------------- 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. --f46d0447a141288c3c04b34906bf Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I have the following wildcard entry in my /lib/ndb/local:

cname=3Dse= rver.local
=A0 =A0 =A0 =A0 dom=3D*.local

Essen= tially 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 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 1 hr =A0 =A0 =A0 =A0 =A0 =A0ip =A0 10.0.0.1
----------------------------

But the lo= okup fails when issued on a unix box:

$ nsloo= kup foobar.local
Server: 10.0.0.1
Address: 10.0.0.1#53

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

Sp= ecifying the server in ndb/dnsdebug shows the following:

cpu% ndb/dnsdebug
> foobar
8300.2: sending to= 10.0.0.1/10.0.0.1 foobar.local ip=
<delay>
8300.2: sending to=A010.0.0.1/10.0.0.1=A0f= oobar.local ip
<delay>
8300.2: sendi= ng to=A010.0.0.1/10.0.0.1=A0foobar.local cname
<d= elay>
8300.2: sending to=A010.0.0.1/10.0.0.1=A0foobar.local cname
<delay>
8300.2: sending to=A010.0.0.1/10.0.0.1= =A0server.local ip
<delay>
8300.2: sendi= ng to=A010.0.0.1/10.0.0.1=A0server.local ip
<dela= y>
----------------------------
answer server.local =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 1 hr =A0 =A0 =A0 =A0 =A0 =A0ip =A0 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.
--f46d0447a141288c3c04b34906bf--