Tag: dns

Example DNS Zone File for BIND9

Sample DNS zone file for BIND9 with a domain with two nameservers  ns1.example.com and ns2.example.com.

You can use this example to define your own name servers.Just make changes to the domain name and IP addresses.

Be sure to include first the following statement in named.conf:

zone "debian-tutorials.com" {
type master;
file "
debian-tutorials.com.db”;
}

The zone file looks like this:

$TTL 3D
$ORIGIN debian-tutorials.com.
@    IN    SOA    debian-tutorials.com.   contact@debian-tutorials.com. (
201108041
28800
7200
604800
86400 )


How to install SMBIND on Debian Squeeze

Smbind is a PHP-based tool for managing DNS zones for BIND via the web. Supports per-user administration of zones, error checking, and a PEAR DB database backend.

Installation:

apt-get update && apt-get install smbind

After install:

1. Firts you need to add the user that runs your web server (default in debian is www-data) to the group that runs the BIND server (default in debian is bind), for example:

usermod -G bind www-data

2.Restart your webserver:

/etc/init.d/apache2 restart


Howto: Setup a DNS server with bind9 on Debian/Ubuntu

After I needed a DNS server DNS server, I decided the best idea would probably be to write this howto myself…. So, here it is:

Step 1. Install bind9:

apt-get install bind9

Step 2: Configure the main Bind files. Usually, if you install Bind from the source code, you will have to edit the file
named.conf. However, Debian provides you with a pre-configured Bind, so we will edit another file:

vim /etc/bind/named.conf.local


Social Media

  
FeedBurner Subscribe



Categories

Page 1 of 11
Copyright © 2012 Linux Debian Tutorials | Debian Squeeze Tutorials. All rights reserved.
↑ Back to Top