私は多くを読んでいますが、私は解決策を見つけることができません。GolangのDNS解決が機能しない
Google CloudでVPSを開き、Ubuntuでインスタンスを開始し、Go 80で受信したWebサーバーを実行しました。また、私の国であるwww.crosslogic.com.arにドメインを登録しました。
n1.crosslogic.com.ar 130.211.196.55
n2.crosslogic.com.ar 130.211.196.55
(二つが必要ですが、私は1つのIPを持っていた)
私はブラウザにIPを入力すると、すべてがすべてが正常に動作しますが、私はwww.crosslogicを使用してサーバに到達しようとすると、このような.com.ar、crosslogic.com.ar、n1.crosslogic.com.arのいずれかが表示されます。ERR_NAME_RESOLUTION_FAILEDが表示されます。
私はfolowingエラーをチェックするために、このテストintodns.com/crosslogic.com.arをした:
-Missing nameservers reported by your nameservers. You should already know that your NS records at your nameservers are missing, so here it is again:
ns2.crosslogic.com.ar.
ns1.crosslogic.com.ar.
-No valid SOA record came back!
-ERROR: I could not get any A records for www.crosslogic.com.ar!
(I only do a cache request, if you recently added a WWW A record, it might not show up here.)
これはコードです:
package main
import (
"net/http"
)
func main() {
// Genero un html con los detalles del calculo.
http.HandleFunc("/", indexHandler)
err := http.ListenAndServe(":80", nil)
if err != nil {
fmt.Println(err.Error())
}
}
func indexHandler(w http.ResponseWriter, r *http.Request) {
temp, err := template.ParseFiles("index.html")
if err != nil {
panic(err)
}
err = temp.Execute(w, nil)
if err != nil {
panic(err)
}
}
私は、Linuxのいずれかの設定をしないのですか?これらのNSレコード、Aレコード、SOAは私のサーバーで設定する必要がありますか? Shoudln'tはhttp/netはこのものを扱う?なぜ私のポート80に届かないのですか?
あなたは「あなたのDNSを」と言うとき、あなたは私が私のサーバーにBINDのようなものをインストールしなければならないことを意味するか、ドメイン登録に関連する問題ですか? – Marcos