Mudanças entre as edições de "DNS Autoritativo"
Ir para navegação
Ir para pesquisar
Linha 18: | Linha 18: | ||
echo "nameserver 127.0.0.1" > /etc/resolv.conf | echo "nameserver 127.0.0.1" > /etc/resolv.conf | ||
echo "nameserver ::1" >> /etc/resolv.conf | echo "nameserver ::1" >> /etc/resolv.conf | ||
+ | |||
+ | <big>'''Testes de funcionamento'''</big><br> | ||
+ | dig @localhost google.com.br | ||
+ | dig @127.0.0.1 google.com.br | ||
+ | dig @::1 google.com.br +short | ||
+ | host google.com.br | ||
+ | |||
+ | <big>'''Localizando erros de consulta'''</big><br> | ||
+ | dig @localhost google.com.br +trace |
Edição das 15h11min de 1 de março de 2023
Requisitos
SO: Ubuntu Server 22.04.2 LTS
Memória: 4Gb
Disco: 40Gb
CPU: 2vCPU
Firewall
TCP 22 - Confiáveis
Pacotes Essenciais
apt-get install net-tools -y apt-get install vim -y
Instalação bind9
apt-get install bind9 dnsutils -y
Configurar consultas localmente
echo "nameserver 127.0.0.1" > /etc/resolv.conf echo "nameserver ::1" >> /etc/resolv.conf
Testes de funcionamento
dig @localhost google.com.br dig @127.0.0.1 google.com.br dig @::1 google.com.br +short host google.com.br
Localizando erros de consulta
dig @localhost google.com.br +trace