
		dianga
		
		(usa Debian)
		
		Enviado em 07/09/2019 - 00:56h 
		Alô povo do pinguim.
To o dia inteiro tentando configurar um servidor,que precisei formatar... Temos aqui conhecedores de bind9 e apache2 eque usam o Freenom?
Já fiz esse processo na maquina e tinha corrido tudo bem,mas dessa vez não tem santo que faça o meu domínio funcionar.
Colocando o IP do VPS, eu acesso o site normalmente, mas através do meudomínio.tk, não rola de jeito nenhum.
os comandos checkconf e checkzone não apresentam erros, já liberei a porta 53 via UFW...
Pelos arquivos do apache2 e do bind, revisei tudo em diversos fóruns da internet e a syntaxe parece estar correta em cada um deles...
há mais alguma variável ou programa necessário que estou esquecendo?
*Freenom é o registrador do meu domínio
-----------------
usr@srv1:~# nslookup
> 
www.solar.tk
Server:		45.231.135.87
Address:	45.231.135.87#53
www.solar.tk	canonical name = solar.tk 
 
root@srv1:~# named-checkconf /etc/bind/named.conf.default-zones
root@srv1:~# named-checkconf /etc/bind/named.conf
root@srv1:~# named-checkconf /etc/bind/named.conf.local
 
NAMED.CONF
include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones"; 
NAMED.CONF.LOCAL
include "/etc/bind/zones.rfc1918";
zone "solar.tk" IN {
     type master;
     file "/etc/bind/zones/solar.tk";
};
zone "87.135.231.45.in-appr.arpa" {
     type master;
     file "/etc/bind/zones/reverse/rev.87.135.231.45";
}; 
NAMED.CONF.DEFAULT-ZONES
zone "." {
 type hint;
 file "/etc/bind/db.root";
};
zone "localhost" {
 type master;
 file "/etc/bind/db.local";
};
zone "127.in-addr.arpa" {
 type master;
 file "/etc/bind/db.127";
};
zone "0.in-addr.arpa" {
 type master;
 file "/etc/bind/db.0";
};
zone "255.in-addr.arpa" {
 type master;
 file "/etc/bind/db.255";
}; 
NAMED.CONF.OPTIONS
Options {
 directory "/var/cache/bind";
 forwarders {
 80.80.80.80;
 80.80.81.81
};
 dnssec-validation auto;
 auth-nxdomain no;    # conform to RFC1035
 listen-on-v6 { any; };
}; 
/ZONES/SOLAR.TK
$TTL 14400
@       IN      SOA     ns1.solar.tk.   aldeia.art.gmail.com. (
                        30              ; SERIAL
                        604800          ; Refresh
                        86400           ; Retry
                        2419200         ; Expire
                        86400 )         ; Minimum
;
@       IN      NS      ns1.solar.tk.
@       IN      NS      ns2.solar.tk.
solar.tk IN      A       45.231.135.87
ns1                     IN      A       45.231.135.87
ns2                     IN      A       45.231.135.87
mail IN A 45.231.135.87
www                     IN      CNAME   solar.tk.
ftp                     IN      CNAME   solar.tk. 
/ZONES/REV.87.135.231.45
$TTL 14400
@       IN      SOA     ns1.solar.tk.   aldeia.art.gmail.com. (
                        30              ; SERIAL
                        604800          ; Refresh
                        86400           ; Retry
                        2419200         ; Expire
                        86400 )         ; Minimum
;
@       IN      NS      ns1.solar.tk.
@       IN      NS      ns2.solar.tk.
38      IN      PTR     solar.tk.
 
/ETC/APACHE2/PORTS.CONF
Listen 80
<IfModule ssl_module>
	Listen 443
</IfModule>
<IfModule mod_gnutls.c>
	Listen 443
</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet 
/APACHE2.CONF
<Directory />
	Options FollowSymLinks
	AllowOverride All
	Require all denied
</Directory>
<Directory /usr/share>
	AllowOverride All
	Require all granted
</Directory>
<Directory /var/www/>
	Options Indexes FollowSymLinks
	AllowOverride All
	Require all granted 
000-DEFAULT.CONF
<VirtualHost *:80>
 ServerName solar.tk
 ServerAlias 
www.solar.tk
 ServerAdmin aldeia.art@gmail.com
 DocumentRoot /var/www/html
 ErrorLog ${APACHE_LOG_DIR}/error.log
 CustomLog ${APACHE_LOG_DIR}/access.log combined
 </VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet 
 
PING EM PC EXTERNO
~$ ping solar.tk
ping: solar.tk: Nome ou serviço desconhecido 
PING NO VPS
ping solar.tk
PING solar.tk.solar.tk (45.231.135.87) 56(84) bytes of data.
64 bytes from srv1.solar.tk (45.231.135.87): icmp_seq=1 ttl=64 time=0.047 ms
64 bytes from srv1.solar.tk (45.231.135.87): icmp_seq=2 ttl=64 time=0.059 ms
64 bytes from srv1.solar.tk (45.231.135.87): icmp_seq=3 ttl=64 time=0.061 ms
64 bytes from srv1.solar.tk (45.231.135.87): icmp_seq=4 ttl=64 time=0.050 ms
^C
--- solar.tk.solar.tk ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3056ms
rtt min/avg/max/mdev = 0.047/0.054/0.061/0.007 ms
 
Custom nameserver:
Nameserver 1
ns1.solar.tk
Nameserver 2
ns2.solar.tk
 
REGISTER GLUE RECORDS
From here you can create and manage custom nameservers for your domain
hostname IP Address
NS1.SOLAR.TK 45.231.135.87
NS2.SOLAR.TK 45.231.135.87