Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I use Google Public DNS servers on my mail server. However, URIBL and other spam blocking sites (which work over DNS) block major DNS sites such as Google Public DNS.

I think if I run my own DNS server on my mail server, then URIBL and others will work because my server IP won't be blacklisted.

How do I accomplish this with an open source DNS server?

EDIT:

I really want to avoid running BIND if possible. I want to use something lightweight such as dnsmasq or pdnsd, thinking that this is more secure.

share|improve this question
add comment

1 Answer 1

You should use the BIND DNS server. It's fairly straight forward. On Debian systems, use:

$ sudo apt-get install bind9

Then configure your resolv.conf to point to localhost.

share|improve this answer
    
Are you saying it's not possible to use something lighter-weight, such as dnsmasq or pdnsd? I have edited my question, would you please clarify your answer? –  g33kz0r Oct 12 '13 at 14:05
    
From the man page of dnsmasq: "Dnsmasq accepts DNS queries and either answers them from a small, local, cache or forwards them to a real, recursive, DNS server.". Which means it cannot resolve queries by itself. You will have to point your configuration to a recursive DNS server (like BIND) which can iteratively fetch the corresponding DNS records. As a more secure alternative, I agree with BIND's shortcomings. djbdns is an option but I have not used it personally. –  Sandeep Y Oct 15 '13 at 18:36
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.