From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 12 Apr 1999 05:03:45 -0400 From: arisawa@ar.aichi-u.ac.jp arisawa@ar.aichi-u.ac.jp Subject: [9fans] nfs server Topicbox-Message-UUID: 9430115e-eac8-11e9-9e20-41e7f4b1d025 Message-ID: <19990412090345.2xzN5C5RTR5XcPAuqgMA8SFll71XMj6LrYXO5wAeRR0@z> 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