Linux: Configurando um servidor DNS

From Wiki
Revision as of 15:03, 22 February 2008 by Ebasso (talk | contribs) (New page: Vamos configurar um servidor DNS Bind para resolução de nomes da nossa rede. == Instalando o Servidor BIND== '''Opcional:''' Primeiro vamos instalar o servidor DHCP # yum -y install ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Vamos configurar um servidor DNS Bind para resolução de nomes da nossa rede.

Instalando o Servidor BIND

Opcional: Primeiro vamos instalar o servidor DHCP

# yum -y install bind


Configurando o Servidor DHCP

Na configuração abaixo eu faço a atualização dinâmica no servidor de DNS Bind e suporte ao Active Directory

1. Configurando o named.conf -> BIND: Configurando o arquivo named.conf

Conclusão

Reinicie o servidor para pegar as configurações

# service named restart


Se tudo correr bem, no /var/log/messages deve aparecer algo semelhante a:

Feb 22 11:58:42 myserver named[24585]: starting BIND 9.3.3rc2 -u named
Feb 22 11:58:42 myserver named[24585]: found 2 CPUs, using 2 worker threads
Feb 22 11:58:42 myserver named[24585]: loading configuration from '/etc/named.conf'
Feb 22 11:58:42 myserver named[24585]: listening on IPv4 interface lo, 127.0.0.1#53
Feb 22 11:58:42 myserver named[24585]: listening on IPv4 interface eth0, 192.168.1.10#53
Feb 22 11:58:42 myserver named[24585]: zone 'meudominio.com.br' allows updates by IP address, which is insecure
Feb 22 11:58:42 myserver named[24585]: zone '1.168.192.in-addr.arpa' allows updates by IP address, which is insecure
Feb 22 11:58:42 myserver named[24585]: zone '_msdcs.meudominio.com.br' allows updates by IP address, which is insecure
Feb 22 11:58:42 myserver named[24585]: zone '_sites.meudominio.com.br' allows updates by IP address, which is insecure
Feb 22 11:58:42 myserver named[24585]: zone '_tcp.meudominio.com.br' allows updates by IP address, which is insecure
Feb 22 11:58:42 myserver named[24585]: zone '_udp.meudominio.com.br' allows updates by IP address, which is insecure
Feb 22 11:58:42 myserver named[24585]: command channel listening on 127.0.0.1#953
Feb 22 11:58:42 myserver named[24585]: zone 0.in-addr.arpa/IN: loaded serial 42
Feb 22 11:58:42 myserver named[24585]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
Feb 22 11:58:42 myserver named[24585]: zone 1.168.192.in-addr.arpa/IN: loaded serial 2008021903
Feb 22 11:58:42 myserver named[24585]: zone 255.in-addr.arpa/IN: loaded serial 42
Feb 22 11:58:42 myserver named[24585]: zone 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 1997022700
Feb 22 11:58:43 myserver named[24585]: zone meudominio.com.br/IN: loaded serial 2008022203
Feb 22 11:58:43 myserver named[24585]: zone _msdcs.meudominio.com.br/IN: loaded serial 2008022101
Feb 22 11:58:43 myserver named[24585]: zone _sites.meudominio.com.br/IN: loaded serial 2008022101
Feb 22 11:58:43 myserver named[24585]: zone _tcp.meudominio.com.br/IN: loaded serial 2008022101
Feb 22 11:58:43 myserver named[24585]: zone _udp.meudominio.com.br/IN: loaded serial 2008022101
Feb 22 11:58:43 myserver named[24585]: zone localdomain/IN: loaded serial 42
Feb 22 11:58:43 myserver named[24585]: zone localhost/IN: loaded serial 42
Feb 22 11:58:43 myserver named[24585]: running