David and I made an ebuild for rbldnsd, test it and take it ;-) http://cvs.berlios.de/cgi-bin/viewcvs.cgi/gentoo-deutsch/ebuilds/net-dns/rbldnsd/ Reproducible: Always Steps to Reproduce: 1. 2. 3.
My company is using this ebuild on 2 rbldnsd servers that handle several million queries each day. WFM
wanna handle this ?
I used this ebuild on a production server in our datacenter and rbldnsd has been runing fantastic ever since. I would realy like to see this in portage soon :)
http://www.corpit.ru/mjt/rbldnsd.html new version rbldnsd 0.995 Thanks to the original poster's ebuild and others as example, I wrote new one including an example zone file for initial testing.
Created attachment 57894 [details] new version of rbldnsd
Created attachment 57895 [details] /etc/conf.d/rbldnsd
Created attachment 57896 [details] an example zone file for initial testing
Created attachment 57897 [details] init script
anyone take this?
I helped out with the original ebuild and I have now installed this latest ebuild for 0.995 and it seems to work fine. Note there is a spelling mistake in the conf file and the startup is a little bit noisy. I'd be happy to maintain this ebuild in portage if a maintainer is needed. I also have BIND experience.
spelling mistakes? what should be corrected? for those of you who are curious * What is rbldnsd? rbldnsd is a DNS server designed for DNSBL. it can be used to check an IP addr. (or a hostname) is listed in a zone file for blacklisting (possibly whitelisting) clients. if you have multiple servers, maintaining text-based database can be a pain. RDB could be an answer, but it slows and complicates the process. by using UDP, rbldnsd makes it possible to have fast, distributed and simple listing database. it works exactly same way in which DNS does, you can use same trick to boost up performance, if you need even more speed.
Taking package assignment.
The latest ebuild assumes that 800 is a safe UID/GID. It also doesn't change the ownership of the /var/db/rbldnsd dir. This is what the diff looks like (I'll upload the actual ebuild): # diff -u rbldnsd.orig/rbldnsd-0.995.ebuild rbldnsd/rbldnsd-0.995.ebuild --- rbldnsd.orig/rbldnsd-0.995.ebuild 2005-08-11 13:02:24.549876204 -0700 +++ rbldnsd/rbldnsd-0.995.ebuild 2005-08-15 15:10:01.295690714 -0700 @@ -35,9 +35,10 @@ pkg_postinst() { einfo "checking for rbldns group... create if missing." - enewgroup rbldns 800 + enewgroup rbldns einfo "checking for rbldns user.... create if missing." - enewuser rbldns 800 /bin/false /var/db/rbldnsd rbldns + enewuser rbldns -1 /bin/false /var/db/rbldnsd rbldns + chown rbldns:rbldns /var/db/rbldnsd einfo "for testing purpose, example zone file has been installed" einfo "see /usr/share/doc/${PF}/example." }
Created attachment 66028 [details] rbldnsd-0.995.ebuild
The spelling mistake is in the confd file: # diff -u rbldnsd.orig/files/confd rbldnsd/files/confd --- rbldnsd.orig/files/confd 2005-08-11 12:58:59.250689669 -0700 +++ rbldnsd/files/confd 2005-08-15 15:10:01.246695204 -0700 @@ -2,7 +2,7 @@ # options for rbldnsd # # for initial testing, copy example zone file to /var/db/rbldnsd -# NOTE: make sure nothing litens on 127.0.0.1:53 +# NOTE: make sure nothing listens on 127.0.0.1:53 # # OPTIONS="-q -r /var/db/rbldnsd -b 127.0.0.1 \ # -u rbldns -p /var/run/rbldnsd.pid \
Alright, it's in portage now. Here's a couple of noted changes I made: - dodir /var/db/rbldnsd keepdir /var/db/rbldnsd keepdir does dodir for you. - newinitd ${FILESDIR}/initd rbldnsd || die "newinitd failed" - insinto /etc/conf.d - newins ${FILESDIR}/confd rbldnsd + newinitd ${FILESDIR}/initd rbldnsd + newconfd ${FILESDIR}/confd rbldnsd newconfd exists to act like newinitd. - einfo "checking for rbldns group... create if missing." enewgroup rbldns 800 - einfo "checking for rbldns user.... create if missing." enewuser rbldns 800 /bin/false /var/db/rbldnsd rbldns both enew* funcitons give that information. Thanks for the ebuild!
Arg.. right when I commit it :P Ok, gimme a moment to add those changes.
Re-Re fixed ;)
thanks guys! David, thanks for your pointing out my fault. the next ebuild will be better. ChrisWhite, you're wonderful, as always.