* [9fans] nfs server
@ 1999-04-12 13:17 presotto
0 siblings, 0 replies; 2+ messages in thread
From: presotto @ 1999-04-12 13:17 UTC (permalink / raw)
dnsquery does perform reverse domain name lookups. When it
sees a query like
204.178.31.2 ptr
it actually reformats it into the query,
2.31.178.204.in-addr.arpa ptr
and then traverses the domain name space looking for an
answer. To get one, you'll have to make sure that the /lib/ndb
files point to a root that can resolve the reverse query, i.e.,
knows what to do with the in-addr.arpa domain.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [9fans] nfs server
@ 1999-04-12 9:03 arisawa
0 siblings, 0 replies; 2+ messages in thread
From: arisawa @ 1999-04-12 9:03 UTC (permalink / raw)
Hello 9fans.
I added UNIX to my network and added the name to:
/lib/ndb/nfs
/lib/ndb/local
to enable access to my Plan9 file system.
However nfs server rejected to connect with the message:
auth: unknown ip address: host=202.250.160.73
The message comes from:
if(getdnsdom(cmd->host, dom, sizeof(dom))<0){
clog("auth: unknown ip address: host=%s", cmd->host);
return error(reply, 1);
}
in nfsmount.c.
I experienced this message some months (or a year) ago when I did something.
getdnsdom is defined rpcserver.c; the function gets domname from IP using
sprint(buf, "echo %d.%d.%d.%d ptr | ndb/dnsquery",
ip>>24, (ip>>16)&0xff, (ip>>8)&0xff, ip&0xff);
On the other hands, manual says:
Ndb/dnsquery can be used to query ndb/dns to see how it
resolves requests. Ndb/dnsquery prompts for commands of the
form
domain-name request-type
where request-type can be ip, mx, ns, cname, ptr.... In the
It seems to me dnsquery is used to get IP from domname.
So I made some experiments whether dnsquery can really answer domname
from IP or not:
echo 202.250.160.73 ptr | ndb/dnsquery
This is an example. I tried several IPs and found that some IPs are successfully
processed but some are not.
We have ndb/query that gets domname from IP,
and rpcserver.c already has a similar function:
getdom(ulong ip, uchar *name, int len)
It is strange that getdom is not used anywhere.
I replaced getdnsdom by getdom in nfsmount.c and after that my UNIX can be
authenticated by Plan9.
There may be a reason that getdom should not be used.
Comments are welcome.
Kenji Arisawa
E-mail: arisawa@aichi-u.ac.jp
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-04-12 13:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-04-12 13:17 [9fans] nfs server presotto
-- strict thread matches above, loose matches on Subject: below --
1999-04-12 9:03 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).