1
I have a network that is configured like this:
Endereço IP: 138.94.189.185 PPPoE
Máscara de Sub-rede: 255.255.255.0
Gateway: 138.94.189.185
Servidor DNS: 138.94.188.19 , 8.8.8.8
I am wanting to make my Debian server a Hosting server. And for Registro.br to find my Dns I need to install the Bind9, only I’m not getting it.
When I execute the command:
host -l site.local
I have the return:
Host site.local not found: 2(SERVFAIL) Transfer failed.
I’m doing it this way:
/etc/bind/named.conf.options
options {
directory "/var/cache/bind";
// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See http://www.kb.cert.org/vuls/id/800113
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
forwarders {
138.94.189.185;
8.8.8.8;
};
//========================================================================
// If BIND logs error messages about the root key being expired,
// you will need to update your keys. See https://www.isc.org/bind-keys
//========================================================================
dnssec-validation auto;
auth-nxdomain no; # conform to RFC1035
/etc/bind/named.conf.local
// Zona de pesquisa direta
zone "site.local" {
type master;
file "/etc/bind/db.labdns.site.local";
};
// Zona de pesquisa reversa
zone "189.94.138.in-addr.arpa" {
type master;
file "/etc/bind/db.192";
};
/etc/bind/db.labdns.site.local
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA webserver.site.local. root.site.local. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS webserver.site.local.
@ IN A 138.94.189.185
@ IN AAAA ::1
webserver IN A 138.94.189.185
roteador IN A 10.0.0.1
www IN CNAME site.local.
/etc/bind/db.192
;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA webserver.site.local. root.site.local. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS webserver.
1 IN PTR roteador.site.local.
185 IN PTR webserver.site.local.
Why close?
– MagicHat
I took from this tutorial http://www.cleuber.com.br/index.php/2014/10/01/criando-um-servor-de-dns-no-ubuntu-14-04 where I am missing?
– Wagner Martins Bodyboard
Peri to I see here....
– MagicHat
valeu Magichat!
– Wagner Martins Bodyboard
how’s the file
/etc/resolv.conf
?– MagicHat
come in here and call me... https://chat.stackexchange.com/rooms/59922/room-name
– MagicHat
search site.local nameserver 138.94.189.185 nameserver 138.94.188.19 nameserver 8.8.8.8 nameserver 208.67.220.220
– Wagner Martins Bodyboard
enter the link I sent...
– MagicHat
Dude you know why when you type the domain with www goes to the Apache page and when I type the domain without www goes to the site correctly?
– Wagner Martins Bodyboard
https://serverfault.com/questions/94014/domain-without-the-www-gives-me-the-apache-it-works-page look at this
– MagicHat
got friend, another question would be with respect to the google map that does not appear, I have generated a key api for the domain and it did not work know tell me what can be?
– Wagner Martins Bodyboard
take the code you are trying and open a question, before you do a search on Sopt himself, I see this type of question, I’m wrapped hj... and call me in the main chat
@
my nick...– MagicHat
@Magichat Now I can’t enter my sites anymore, like this, when I type 138.94.189.185/company I should open a website instead opens the domain I set up in my Denian. Could access my sites with my ip, along with my domain?
– Wagner Martins Bodyboard
I did this, I copied the site to my domain folder and it worked
– Wagner Martins Bodyboard
new questions if they belong to Sopt’s Sopt should be asked in new posts, or there in the main chat as I mentioned.
– MagicHat
No need to reopen this issue due to error being typing.
– MagicHat