diff --git a/srcpkgs/dnstracer/template b/srcpkgs/dnstracer/template
index 0efc684956..f71827d3d7 100644
--- a/srcpkgs/dnstracer/template
+++ b/srcpkgs/dnstracer/template
@@ -1,15 +1,23 @@
 # Template file for 'dnstracer'
 pkgname=dnstracer
-version=1.9
+version=1.10
 revision=1
-build_style=gnu-configure
+wrksrc="$pkgname"
+build_style=gnu-makefile
+hostmakedepends="perl"
 short_desc="Trace a chain of DNS servers to the source"
 maintainer="Diogo Leal <diogo@diogoleal.com>"
 license="BSD"
 homepage="http://www.mavetju.org/unix/dnstracer.php"
-distfiles="http://www.mavetju.org/download/dnstracer-${version}.tar.gz"
-checksum=2ebc08af9693ba2d9fa0628416f2d8319ca1627e41d64553875d605b352afe9c
+distfiles="http://www.mavetju.org/download/dnstracer-${version}.tar.bz2"
+checksum=64cda0ed15ef598a38ec72a96a356e3d10b7f822fc75928115eae96a65ae2b21
 
-post_install() {
+pre_build() {
+	sed -i 's|-Wall|-Wall $(CFLAGS) $(LDFLAGS)|g' Makefile
+}
+
+do_install() {
+	vbin dnstracer
+	vman dnstracer.8
 	vlicense LICENSE
 }