Как я могу сделать мой собственный домен видимым для всего мира?
Детали вопроса:
У меня есть домен donotrape.me
который не виден миру. Моя система Debian 7 64BIT, Bind9, Apache.
Брандмауэр Debian находится в режиме по умолчанию (я так думаю, выключен (ссылка:https://wiki.debian.org/DebianFirewall)) Порт 80 открыт и перенаправлен на 192.168.1.2
named.conf как под:
zone "donotrape.me" {
type master;
file "/etc/bind/zones/e.donotrape.me";
};
файл зоны файл выглядит следующим образом:
;; file: /etc/bind/zones/e.donotrape.me
;; domain: donotrape.me
$TTL 86400
donotrape.me IN SOA NS1.IMSINGH.COM. ROOT.IMSINGH.COM. (
20130703021 ;Serial
3600 ;Refresh
1800 ;Retry
604800 ;Expire
86400 ;Minimum TTL
)
donotrape.me IN NS NS1.IMSINGH.COM.
donotrape.me IN NS NS2.IMSINGH.COM.
donotrape.me IN A 59.177.154.251
NS1 IN A 59.177.154.251
NS2 IN A 59.177.154.251
www IN CNAME NS1
Этот домен зарегистрирован на GoDaddy.com, поэтому есть серверы имен: ns1.imsingh.com
& ns2.imsingh.com
Отчеты о проверке домена вы можете увидеть на http://www.intodns.com/donotrape.me В основном он показывает эти ошибки
Nameservers A records ERROR: Some of your DNS servers do not have A records at all. I could not find any A records for the following DNS servers:
ns2.imsingh.com
ns1.imsingh.com
You must have A records for all of your nameservers.
Mismatched NS records WARNING: One or more of your nameservers did not return any of your NS records.
Error DNS servers responded ERROR: One or more of your nameservers did not respond:
The ones that did not respond are:
ns2.imsingh.com ns1.imsingh.com
в локальной сети это работает хорошо
Можете ли вы предложить какое-либо решение, чтобы этот сайт был открыт для всего мира?
apt-get purge iptables
Эти два сервера ns1.imsingh.com
и ns2.imsingh.com
действительно нет A
запись.
Насколько я понимаю, эти серверы в любом случае не принадлежат GoDaddy.
Свяжитесь с GoDaddy и выясните, какие серверы вам нужно использовать.
Вы должны добавить в свой брандмауэр что-то вроде:
# Redirect DNS traffic (tcp/53 and udp/53) to DNS server
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 53 \
-j DNAT --to-destination 192.168.1.2:53
iptables -t nat -A PREROUTING -i eth0 -p udp --dport 53 \
-j DNAT --to-destination 192.168.1.2:53
iptables -A FORWARD -i eth0 -p tcp --dport 53 \
-o eth1 -d 192.168.1.2 \
-m conntrack --ctstate NEW -j ACCEPT
iptables -A FORWARD -i eth0 -p udp --dport 53 \
-o eth1 -d 192.168.1.2 \
-j ACCEPT
копать на imsingh.com показывает:
imsingh.com. 172683 IN NS ns1.imsingh.com.
imsingh.com. 172683 IN NS ns2.imsingh.com.
Но ns1 и ns2 не отвечают на порт 53. Вам, вероятно, следует проверить свою конфигурацию fw, чтобы открыть DNS-трафик к вашим ns1 и ns2.