git: 9front

Download patch

ref: 1b138cf491a6d24182af44b40f3a92de16a9e675
parent: a0f7caa3c4f858f1c29869eccca1da1090281275
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Thu Aug 2 18:20:55 EDT 2012

ndb: recognize ip6.arpa postfix in mkptrname()

--- a/sys/src/libndb/dnsquery.c
+++ b/sys/src/libndb/dnsquery.c
@@ -81,7 +81,7 @@
 	char *p, *np;
 	int len;
 
-	if(cistrstr(ip, "in-addr.arpa")){
+	if(cistrstr(ip, "in-addr.arpa") || cistrstr(ip, "ip6.arpa")){
 		nstrcpy(rip, ip, rlen);
 		return;
 	}
--