Help setting up NSD daemon (DNS server)

Posted on

Help setting up NSD daemon (DNS server) – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.

But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about linux, domain-name-system, centos, centos5, .

While searching for a secure dns server I came across the NSD project.

I was really impressed by what seemed to me the best option out there that’s open source.

One problem thought their ‘tutorial’ is really not beginner friendly. I have basic DNS knoledge but what’s in there is out of my league.

I need to have multiple sites on this CentOS server I’ve recently got my hands on. They also need to receive email.

Details:
I have a master host and would love to set this in the way described in the rows that follow:

masterhost.com -> ns1.masterhost.com mail.masterhost.com www.masterhost.com
addonhost.com  -> ns1.masterhost.com mail.masterhost.com www.addonhost.com

And so on.

Any help in setting up this DNS server please? All answers and suggestions are welcomed. Thank you in advance.

Solution :

NSD reads the same (RFC 1035) format zone files as BIND, so presumably your first hurdle is knowing what a zone file looks like?

Learning that requires a full DNS tutorial, but for your zones you’ll need something like:

$ORIGIN example.com
@        IN SOA   hostmaster ns1 (
                                    ... ; insert suitable values
                                 ) 
         IN NS    ns1
         IN MX 10 mail
ns1      IN A 192.0.200.1 ; put your name server's IP here
mail     IN A 192.0.200.2 ; put your mail server's IP here
www      IN A 192.0.200.3 ; put your web server's IP here

And in your nsd.conf file you just need:

zone:
    name: "example.com"
    zonefile: "example.com"

Bind 9 does not have a good security record, so yes go NSD

Leave a Reply

Your email address will not be published.