我正在尝试为我的电脑实现一个dynamic的DNS服务。 我已经将h.lohray.com指向了h.lohray.com的NSlogging中的EC2实例,并且已经在该系统上安装了dnsmasq,并确保解除防火墙端口的阻塞。
目前,我已经统计在我的/ etc / hosts文件中添加了一个条目。
129.118.19.163 i7.h.lohray.com
然而,i7.h.lohray.com不能正确解决nslookup或dig :-(这是唯一一次我可以解决( 联机nslookup ) – 50.19.103.190是dnsmasq正在运行的EC2实例的IP地址我哪里可以出错?
你的NSloggingh.lohray.com目前如下:
h.lohray.com. 1800 IN NS 50.19.103.190.
哪个是错的 NSlogging不应指定IP地址,而应指定域名服务器的域名,如下所示:
h.lohray.com. 1800 IN NS h.lohray.com h.lohray.com. 1800 IN A 50.19.103.190.
或者像这样:
h.lohray.com. 1800 IN NS ns.h.lohray.com ns.h.lohray.com. 1800 IN A 50.19.103.190.
您的DNS服务器在50.19.103.190似乎工作 – 它会回答我查询i7.h.lohray.com
这里是另一个工具,但它不是在那里解决。
[email protected].: h.lohray.com. 1800 IN NS 50.19.103.190. [email protected].: h.lohray.com. 1800 IN NS 50.19.103.190. [email protected].: h.lohray.com. 1800 IN NS 50.19.103.190. it resolves from my home now. $ dig i7.h.lohray.com @50.19.103.190 ; <<>> DiG 9.7.3 <<>> i7.h.lohray.com @50.19.103.190 ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17018 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;i7.h.lohray.com. IN A ;; ANSWER SECTION: i7.h.lohray.com. 0 IN A 129.118.19.163 ;; Query time: 111 msec ;; SERVER: 50.19.103.190#53(50.19.103.190) ;; WHEN: Fri Apr 6 12:53:23 2012 ;; MSG SIZE rcvd: 49