ndjbdns – tinydns

1 – Instale o pacote ndjbdns

2 – Altere a entrada IP= dos arquivos abaixo para o IP da eth0

/etc/ndjbdns/dnscache.conf
/etc/ndjbdns/rbldns.conf

3 – Crie o arquivo com nome do seu dominio

echo 127.0.0.1 > /etc/ndjbdns/servers/meudominio.com.br

4 – Crie o arquivo com ip da rede para qual o servidor de DNS irá funcionar

touch /etc/ndjbdns/ip/192.168.0

5 – Configure as entradas do seu dns criando o arquivo data

vi /etc/ndjbdns/data
cd /etc/ndjbdns
tinydns-data
service dnscache restart
service tinydns restart
nslookup mail.dominio.com <IP SERVIDOR DNS>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s