{"id":255710,"date":"2017-02-17T14:15:05","date_gmt":"2017-02-17T06:15:05","guid":{"rendered":"http:\/\/blog.zhenglei.net\/?p=255710"},"modified":"2017-02-17T17:05:20","modified_gmt":"2017-02-17T09:05:20","slug":"setup-dns-server-to-resolve-my-domain","status":"publish","type":"post","link":"https:\/\/blog.zhenglei.net\/?p=255710","title":{"rendered":"Setup DNS server to resolve my domain"},"content":{"rendered":"<p><span style=\"color: #0000ff\"><strong>How to setup DNS server on two host\u00a0 to resolve my_domain:<\/strong><\/span><\/p>\n<p><span style=\"color: #ff00ff\"><strong>Login into Godaddy account<\/strong><\/span><\/p>\n<p>Goto the Domain Detail of mydomain:<\/p>\n<p>From Host Name:<\/p>\n<p><em>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Register two hosts into mydomain:\u00a0\u00a0 ns1=host1_ip,. ns2=host2_ip<\/em><\/p>\n<p>From Nameservers:<\/p>\n<p><em>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Change Setup Type from Standard to Custom<\/em><\/p>\n<p><em>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Add the two Nameservers:\u00a0 ns1.mydomain\u00a0 ns2.mydomain<\/em><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff0000\"><strong>Login into <em>host1<\/em> &amp; host2<\/strong><\/span><\/p>\n<p>Setup DNS server, with the following config:<\/p>\n<p>T-NS record:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ns1.mydomain, ns2.mydomain\u00a0 (dns server)<\/p>\n<p>T_MX record:\u00a0\u00a0\u00a0\u00a0 mx1.mydomain,\u00a0 mx2.mydoamin\u00a0 (email server)<\/p>\n<p>T_TXT record:\u00a0 &#8220;v=spf1 &#8230;&#8221; \u00a0 \u00a0 \u00a0 (for email\u00a0 )<\/p>\n<p>&#8220;goodle-site-verification=&#8230;&#8221;\u00a0\u00a0\u00a0 (for email, and web server)<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff0000\"><strong><em>SPF record for email:<\/em><br \/>\n<\/strong><\/span><\/p>\n<p>&#8220;v=spf1 a a:host1.domain.net a:host2.domain.net mx ip:11.22.33.44 -all&#8221;<\/p>\n<p>Only following host allowed for SMTP delivery&#8221;<\/p>\n<p><em> host1.domain.net, host2.domain.net, 11.22.33.44, all in MX record<\/em><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff0000\"><strong><em><strong>Google site notification:\u00a0 (Verify domain by adding a TXT\/SPF record)<\/strong><br \/>\n<\/em><\/strong><\/span><\/p>\n<p>Refer to:<\/p>\n<p><a href=\"\/\/www.google.com\/webmasters\/verification\/home?hl=en\"> https:\/\/www.google.com\/webmasters\/verification\/home?hl=en<\/a><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #ff0000\">\u00a0How to Add PTR record for mx server:<br \/>\n<\/span><\/strong><\/p>\n<p>PTR record is managed by ISP,\u00a0 not the DNS supplier, such as Godaddy<\/p>\n<p>Some VPS supplier support PTR record modification, such as Hostus, ComfortHost.<\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #ff0000\">\u00a0Tool for email server check:<\/span><\/strong><\/p>\n<p><a href=\"https:\/\/mxtoolbox.com\/\">https:\/\/mxtoolbox.com\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to setup DNS server on two host\u00a0 to  &hellip; <a href=\"https:\/\/blog.zhenglei.net\/?p=255710\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[193,6,9],"tags":[25],"class_list":["post-255710","post","type-post","status-publish","format-standard","hentry","category-cloud-2","category-internet","category-vps","tag-dns"],"_links":{"self":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts\/255710","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=255710"}],"version-history":[{"count":5,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts\/255710\/revisions"}],"predecessor-version":[{"id":255712,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts\/255710\/revisions\/255712"}],"wp:attachment":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=255710"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=255710"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=255710"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}