Я пытаюсь развернуть веб-приложение на сервере VPS. Приложение создается с помощью Django и в настоящее время пытается обслуживать файлы с помощью Apache2. У меня проблемы с настройкой DNS (bind9). Компания, которую я использую, не помогает мне в этом.
Не могли бы вы помочь мне решить эту проблему, с которой я имел дело в течение 3 дней?
ОС:
Distributor ID: Ubuntu
Description: Ubuntu 16.04.7 LTS
Release: 16.04
Codename: xenial
_
nslookup diricangrup.com
;; Got SERVFAIL reply from 8.8.8.8, trying next server
Server: 8.8.4.4
Address: 8.8.4.4#53
** server can't find diricangrup.com: SERVFAIL
_
nslookup diricangrup 185.106.209.113
Server: 185.106.209.113
Address: 185.106.209.113#53
Name: diricangrup.com
Address: 185.106.209.113
Когда я перехожу к http://185.106.209.113/ адрес, я вижу страницу по умолчанию Apache2. Если я наберу http://diricangrup.com/ , у меня появится ошибка DNS_PROBE_FINISHED_NXDOMAIN .
|-- [-rwxr-xr-x bind ] bind.keys
|-- [-rwxr-xr-x bind ] db.0
|-- [-rwxr-xr-x bind ] db.127
|-- [-rwxr-xr-x bind ] db.255
|-- [-rwxr-xr-x bind ] db.empty
|-- [-rwxr-xr-x bind ] db.local
|-- [-rwxr-xr-x bind ] db.root
|-- [-rwxr-xr-x bind ] named.conf
|-- [-rwxr-xr-x bind ] named.conf.default-zones
|-- [-rwxr-xr-x bind ] named.conf.local
|-- [-rwxr-xr-x bind ] named.conf.local.back
|-- [-rwxr-xr-x bind ] named.conf.options
|-- [-rwxr-xr-x bind ] rndc.key
|-- [drwxr-sr-x bind ] zones
| |-- [-rwxr-xr-x bind ] db.185.106
| `-- [-rwxr-xr-x bind ] db.diricangrup.com
`-- [-rwxr-xr-x bind ] zones.rfc1918
named.conf.options :
acl "trusted" {
185.106.209.113;
};
options {
directory "/var/cache/bind";
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
forwarders {
185.106.209.113;
};
dnssec-validation auto;
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
};
named.conf.local :
//include "/etc/bind/zones.rfc1918";
zone "diricangrup.com" {
type master;
file "/etc/bind/zones/db.diricangrup.com";
allow-transfer { 185.106.209.113; };
also-notify { 185.106.209.113; };
};
zone "209.106.185.in-addr.arpa" {
type master;
file "/etc/bind/zones/db.185.106";
allow-transfer { 185.106.209.113; };
also-notify {185.106.209.113; };
};
db.diricangrup.com :
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA ns1diricangrup.com. root.diricangrup.com. (
3 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
; NS records
@ IN NS ns1.diricangrup.com.
@ IN NS ns2.diricangrup.com.
@ IN A 185.106.209.113
; A records
ns1.diricangrup.com. IN A 185.106.209.113
ns2.diricangrup.com. IN A 185.106.209.113
db.185.106
;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA ns1.diricangrup.com. root.diricangrup.com. (
3 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
; name servers - NS records
IN NS ns1.diricangrup.com.
IN NS ns2.diricangrup.com.
; PTR Records
113.209 IN PTR ns1.diricangrup.com. ; 185.106.209.113
113.209 IN PTR ns2.diricangrup.com. ; 185.106.209.113
и статус брандмауэра:
To Action From
-- ------ ----
22 ALLOW Anywhere
80/tcp ALLOW Anywhere
Apache Full ALLOW Anywhere
8000 ALLOW Anywhere
53 ALLOW Anywhere
22 (v6) ALLOW Anywhere (v6)
80/tcp (v6) ALLOW Anywhere (v6)
Apache Full (v6) ALLOW Anywhere (v6)
8000 (v6) ALLOW Anywhere (v6)
53 (v6) ALLOW Anywhere (v6)