{"id":7144,"date":"2014-05-26T00:44:31","date_gmt":"2014-05-26T00:44:31","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/05\/26\/importing-dns-resources-collection-of-common-programming-errors-2\/"},"modified":"2014-05-26T00:44:31","modified_gmt":"2014-05-26T00:44:31","slug":"importing-dns-resources-collection-of-common-programming-errors-2","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/05\/26\/importing-dns-resources-collection-of-common-programming-errors-2\/","title":{"rendered":"Importing DNS resources-Collection of common programming errors"},"content":{"rendered":"<p>OK I have more info.<\/p>\n<p>I decided to go with my original hunch that WSP was not calling the SimpleDNS HTTP API directly, and I was right. I changed wireshark to monitor all traffic coming from the WSP server instead, and when I tried to enable DNS on a domain below is the TCP stream.<\/p>\n<p>As you can see WSP is not using the SimpleDNS HTTP API url at all, it is using &#8220;http:\/\/smbsaas\/websitepanel\/server&#8221;.<\/p>\n<p>This has not been set by me anywhere as we have no server called &#8220;smbsaas&#8221;, WSP is doing this internally.<\/p>\n<p>POST \/DnsServer.asmx HTTP\/1.1<\/p>\n<p>User-Agent: Mozilla\/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 2.0.50727.4959)<\/p>\n<p>SOAPAction: &#8220;http:\/\/smbsaas\/websitepanel\/server\/ZoneExists&#8221;<\/p>\n<p>Host: 62.197.34.211:9003<\/p>\n<p>Content-Type: multipart\/related; type=&#8221;application\/xop+xml&#8221;; boundary=&#8211;MIMEBoundary634456300445508750; start=&#8221;&#8221;; start-info=&#8221;text\/xml; charset=utf-8&#8243;<\/p>\n<p>Content-Length: 7380<\/p>\n<p>Expect: 100-continue<\/p>\n<p>Connection: Keep-Alive<\/p>\n<p>HTTP\/1.1 100 Continue<\/p>\n<p>&#8212;-MIMEBoundary634456300445508750<\/p>\n<p>content-transfer-encoding: binary<\/p>\n<p>content-id:<\/p>\n<p>content-type: application\/xop+xml; charset=utf-8; type=&#8221;text\/xml; charset=utf-8&#8243;<\/p>\n<p>http:\/\/smbsaas\/websitepanel\/server\/ZoneExistsurn:uuid:e6dee438-f1fa-4ee7-8900-e91e1ef92e74http:\/\/schemas.xmlsoap.org\/ws\/2004\/08\/addressing\/role\/anonymoushttp:\/\/62.197.34.211:9003\/DnsServer.asmx2011-07-07T09:07:24Z2011-07-07T09:12:24Z08xvgy4JegoRxwtWEX+9WsQ==2011-07-07T09:07:24ZMA5mhXyZGSX5jskPnlFFAG6Zvtc=uGs+SbO\/kdQWkYtHu8fmoBIuYCI=MVtQLRR+CzYq0YJSX9ir6rdg4\/U=gip3D5XoFNnFqLrfC\/pnv2D4EV4=YOHRtRP6mugwMiyMHdaO0uJkNw8=B\/v\/GAzQmJKP8+sZjvO5YWzFjao=P1DugNSMKll7PEaJB2CDaYCd8Jg=7HqZTRw\/ww38l9JLpYMhJsro6mi\/nNH\/6jRQp\/rQvkUIDAupRokl\/TRBsNBuoRybBzMrjIwAd6FMmBpwnCNa6kLKrc2u+8rUcteLjN+hrTB0M2gyQCMq6JGaeUyRplVTzrdm+LXhd7l8CeqvlIUsDNKzIfyH8AZ8BC95oeat7Rk=<\/p>\n<p>&#8212;-MIMEBoundary634456300445508750<\/p>\n<p>content-transfer-encoding: binary<\/p>\n<p>content-id:<\/p>\n<p>content-type: application\/octet-stream<\/p>\n<p>z].?..N&#8230;&#8230;&#8230;.9.g.#.P..;I&#8230;&#8230;..b.M.5&#8230;&#8230;j&#8230;O..<\/p>\n<p>.y..(+B\\.Nt.K!&#8230;.Uw&#8230;.C..:I..$h0.#&gt;d..he.. &#8230;&#8217;&#8230;.R9&#8230;.c.Ry.5Z..=..<\/p>\n<p>..no&#8230;.Y.=.KLb5Nz..Nc&#8230;..{..z5..B&#8230;J..r&#8230;. &#8230;&#8230;&#8230;s&#8230;&#8230;.Y&#8230;.~..<\/p>\n<p>..(&#8230;g..Q..0.e.]&#8230;.i&#8230;&#8230;G..t.]#O&#8230;&#8230;C..rC`7z&#8230;dF.,..-.zKi0.}X&#8230;5._&#8230;P.Tr.Q&#8230;.*L&#8217;.,.W&#8230;..|.vY..e..V<\/p>\n<p>{9.|&#8217;U&#8230;.0.j1..iI..;.(&#8230;.C&#8230;&#8230;X&#8230;&#8230;&#8230;7..R.Q.R<\/p>\n<p>U..&gt;&amp;..U]..z..P&#8230;.B&#8230;.m&#8230;&#8230;..hT.f&#8230;..Q..d&#8230;2|M.H&#8230;..[8..gy&#8230;o, &#8230;&#8230;&#8230;..1&#8230;&#8230;Vu=q..<\/p>\n<p>&#8230;)&#8230;.[&#8230;Q.a@&#8230;%..w&#8230;rN..%h&#8230;&#8230;:.o!i|..m&#8230;.r.2&#8230;..\/2YC&#8230;.pO..F.hg&#8230;&#8230;?*.`..(@o&#8230;RrCg|&#8230;..T{&#8230;.S&#8230;.%.3&#8230;.jH.P&#8230;..!&#8230;..}h..7&#8230;v?t$&#8230;&#8230;..l&#8230;g\/&#8230;.`m^^u&#8230;&#8230;t&#8230;=4K..$.w.2.I..1&#8230;[.h..c.q&gt;.Si. &#8230;.(:.Hx&#8230;&#8230;..;.,&#8230;&#8230;&#8230;&#8230;.Ds..c3Y&#8230;&#8230;&#8230;DG&#8230;\\&#8230;&#8230;p(&#8230;&#8230;GN..`..?..h&#8230;B].#.s..-..&#8221;..1.~fc.}^&#8230;.x&#8230;.Y&#8230;.N..8&#8230;~..}5&#8230;.dL^.nS&#8230;r&#8230;c.e.W@\/&#8230;.!&gt; &#8230;.M&#8230;q&#8230;D.0..|\/&#8230;..;&#8230;8a.BT..Z_.R&#8230;&#8230;W(5.~&#8230;..,e&#8230;.d.]eg..[..65R\\..Jk&gt;+f.5%C.4@.]+t..1&#8230;&#8230;-.:&#8217;~k.O.a0&#8230;.&#8217;5Y=&#8230;.\\&#8230;&#8230;&#8230;lo&#8230;..^.#&#8230;X.s..[&#8230;&#8230;P..h&#8230;.)..nd&#8230;.+&#8230;!.e..m..F.&gt;e.1&#8230;.cOx.m0&#8230;&#8230;..OW&#8230;&#8230;.1F..<\/p>\n<p>&#8212;-MIMEBoundary634456300445508750&#8211;<\/p>\n<p>HTTP\/1.1 200 OK<\/p>\n<p>Cache-Control: private, max-age=0<\/p>\n<p>Content-Type: multipart\/related; type=&#8221;application\/xop+xml&#8221;; boundary=&#8211;MIMEBoundary634456299959597500; start=&#8221;&#8221;; start-info=&#8221;text\/xml; charset=utf-8&#8243;<\/p>\n<p>Server: Microsoft-IIS\/7.5<\/p>\n<p>X-AspNet-Version: 2.0.50727<\/p>\n<p>X-Powered-By: ASP.NET<\/p>\n<p>Date: Thu, 07 Jul 2011 09:06:35 GMT<\/p>\n<p>Content-Length: 1028<\/p>\n<p>&#8212;-MIMEBoundary634456299959597500<\/p>\n<p>content-transfer-encoding: binary<\/p>\n<p>content-id:<\/p>\n<p>content-type: application\/xop+xml; charset=utf-8; type=&#8221;text\/xml; charset=utf-8&#8243;<\/p>\n<p>http:\/\/smbsaas\/websitepanel\/server\/ZoneExistsResponseurn:uuid:3fb526c7-87c2-4ad5-8c93-252de1251347urn:uuid:e6dee438-f1fa-4ee7-8900-e91e1ef92e74http:\/\/schemas.xmlsoap.org\/ws\/2004\/08\/addressing\/role\/anonymousfalse<\/p>\n<p>&#8212;-MIMEBoundary634456299959597500&#8211;<\/p>\n<p>POST \/DnsServer.asmx HTTP\/1.1<\/p>\n<p>User-Agent: Mozilla\/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 2.0.50727.4959)<\/p>\n<p>SOAPAction: &#8220;http:\/\/smbsaas\/websitepanel\/server\/AddPrimaryZone&#8221;<\/p>\n<p>Host: 62.197.34.211:9003<\/p>\n<p>Content-Type: multipart\/related; type=&#8221;application\/xop+xml&#8221;; boundary=&#8211;MIMEBoundary634456300446290000; start=&#8221;&#8221;; start-info=&#8221;text\/xml; charset=utf-8&#8243;<\/p>\n<p>Content-Length: 7428<\/p>\n<p>Expect: 100-continue<\/p>\n<p>HTTP\/1.1 100 Continue<\/p>\n<p>&#8212;-MIMEBoundary634456300446290000<\/p>\n<p>content-transfer-encoding: binary<\/p>\n<p>content-id:<\/p>\n<p>content-type: application\/xop+xml; charset=utf-8; type=&#8221;text\/xml; charset=utf-8&#8243;<\/p>\n<p>http:\/\/smbsaas\/websitepanel\/server\/AddPrimaryZoneurn:uuid:d14b376a-11fc-40ff-8d13-200ea9fb1412http:\/\/schemas.xmlsoap.org\/ws\/2004\/08\/addressing\/role\/anonymoushttp:\/\/62.197.34.211:9003\/DnsServer.asmx2011-07-07T09:07:24Z2011-07-07T09:12:24Z0P8NqiO8L+lxIatW9LYLL7A==2011-07-07T09:07:24ZMEo5a1AMqmD2kK4npQwuHERvkAc=1AE56vc4lmwQ7rU9ZguMPuTZfwY=72GHwX+jtZHvscUy\/1OBoOY3Z6k=rQJeGmKxlAqQWvJtArbiAojgdmQ=bMClOgI+Y1hw5BOOCfQQ\/HTIcjE=FUjwJGQYDcDUCwx+\/br2VvkE1x8=BKVW44c1RUJdPVOtVYB8t0S7Zf8=jVw2LAfeGpLCmYPwnTkkNUniIUvr\/KMs5EVMDzFv+M0\/6qom89TU97dNpIYOJKTg84ZRTSCGdwOmnxB0PebQNlmU6ECc7Z9mhZYAYoqw2ytf6cU3KkEP7DOb\/T34S7HJDH5lO\/TMbY\/5iwn6IyIlvyLA2zBisUQiY\/Sy+tj9UJKHD5JZm7\/08LKZ7VUlNZwTsrtQzf1yFA4o\/ZK1BCMvsg==<\/p>\n<p>&#8212;-MIMEBoundary634456300446290000<\/p>\n<p>content-transfer-encoding: binary<\/p>\n<p>content-id:<\/p>\n<p>content-type: application\/octet-stream<\/p>\n<p>f..f&#8217;..wl.#-..X..?.\\..\\6u..RZ&#8230;..JRm&amp;*.(&#8230;N.L&#8230;&#8230;=.v..b%K@&gt;&#8230;Z&#8230;z..B&#8230;.a{\/p9.N..&amp;.o&#8230;..<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OK I have more info. I decided to go with my original hunch that WSP was not calling the SimpleDNS HTTP API directly, and I was right. I changed wireshark to monitor all traffic coming from the WSP server instead, and when I tried to enable DNS on a domain below is the TCP stream. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7144","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7144"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7144\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7144"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}