ports/107816: The IPv6 patch brakes the location feature of tinydns in dns/djbdns

Cristian KLEIN cristi at net.utcluj.ro
Thu Jan 11 08:10:18 UTC 2007


>Number:         107816
>Category:       ports
>Synopsis:       The IPv6 patch brakes the location feature of tinydns in dns/djbdns
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 11 08:10:10 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Cristian KLEIN
>Release:        FreeBSD 5.4
>Organization:
Technical University of Cluj-Napoca
>Environment:
FreeBSD gw.c7.campus.utcluj.ro 5.4-RELEASE-p22 FreeBSD 5.4-RELEASE-p22 #6: Tue Oct 17 05:22:59 EEST 2006     root@:/usr/obj/usr/src/sys/GW  i386

>Description:
The location feature of tinydns (or views as called in BIND) allows an administrator to serve different answers to clients based on their IP address. This feature is useful, for example, if you have some DNS record you would like to publish only for your internal network.

When installing dns/djbdns with the IPv6 option, a patch is applied which brakes the location feature. DNS records are served as if they belong to the same location.

Considering the fact that location and IPv6 are rarely used, my proposed solution is merly to advise the user of this situation, so that he can further decide what to do.
>How-To-Repeat:
Install dns/djbdns with the IPv6 patch. Configure tinydns with a data file that has client locations. Use the following example as a reference:

--- cut here ---
%in:10.0.0.1
%ex

.example.com:10.0.0.1:a
+www.example.com:10.0.0.1:::in
+www.example.com:10.0.0.2:::ex
--- and here ---

Ask the server for www.example.com from 10.0.0.1 and another host. Instead of getting different answers, one gets the same answer. 

>Fix:
The following patch prints a warning message during post-install if the IPv6 options has been chosen.

Patch attached with submission follows:

--- dns/djbdns/Makefile.orig	Mon Sep 25 20:38:33 2006
+++ dns/djbdns/Makefile	Thu Jan 11 09:27:42 2007
@@ -114,10 +114,16 @@
 	@echo "${CC} ${STRIP}" > ${WRKSRC}/conf-ld
 	@echo "${PREFIX}" > ${WRKSRC}/conf-home
 
-.if defined(WITH_MAN)
 post-install:
+.if defined(WITH_MAN)
 	@${INSTALL_MAN} ${WRKDIR}/djbdns-man/*.1 ${PREFIX}/man/man1/
 	@${INSTALL_MAN} ${WRKDIR}/djbdns-man/*.8 ${PREFIX}/man/man8/
+.endif
+.if defined(WITH_IPV6)
+	@echo	""
+	@echo	"WARNING: The IPv6 patch brakes the 'client location'."
+	@echo	"         Make sure you don't use this feature."
+	@echo	""
 .endif
 
 .include <bsd.port.post.mk>

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list