{"id":261,"date":"2013-05-01T04:17:43","date_gmt":"2013-05-01T04:17:43","guid":{"rendered":"http:\/\/kb.digitalregistra.co.id\/?page_id=261"},"modified":"2018-01-25T02:44:51","modified_gmt":"2018-01-25T02:44:51","slug":"info-dns","status":"publish","type":"page","link":"https:\/\/kb.srs-x.com\/en\/api\/dns\/info-dns","title":{"rendered":"Get DNS Information"},"content":{"rendered":"<p><a href=\"http:\/\/kb.srs-x.com\/id\/api\/dns\/info-dns\/\"><strong>Versi Bahasa Indonesia<\/strong><\/a><\/p>\n<h2>Description<\/h2>\n<p>Get DNS Information<\/p>\n<h2>Query<\/h2>\n<p>dns\/info<\/p>\n<h2>List Variable<\/h2>\n<div class=\"table-responsive\"><table  style=\"width:100%; \"  class=\"easy-table easy-table-cuscosky \" >\n<thead>\r\n<tr><th >Name<\/th>\n<th >Data Type<\/th>\n<th > Required\/Optional<\/th>\n<th >Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\r\n<tr><td >domain<\/td>\n<td >varchar(255)<\/td>\n<td >Required<\/td>\n<td >Domain name<\/td>\n<\/tr>\n<\/tbody><\/table><\/div>\n<h2>Example<\/h2>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n$post[&quot;username&quot;] = 'apiusername';\r\n$post[&quot;password&quot;] = hash('sha256','apipassword');\r\n$post[&quot;domain&quot;] = 'domain.co.id'\r\n$url = 'http:\/\/[reseller url]\/api\/dns\/info';\r\n\r\n$ch = curl_init();\r\ncurl_setopt($ch, CURLOPT_URL, $apiurl);\r\ncurl_setopt($ch, CURLOPT_POST, 1);\r\ncurl_setopt($ch, CURLOPT_TIMEOUT, 100);\r\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\r\ncurl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post));\r\n$response = curl_exec($ch);\r\ncurl_close($ch);\r\n<\/pre>\n<h2>Example Response<\/h2>\n<p>Succeed:<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;\r\n&lt;epp&gt;\r\n  &lt;result&gt;\r\n    &lt;resultCode&gt;1000&lt;\/resultCode&gt;\r\n    &lt;resultMsg&gt;Command Complete Successfully&lt;\/resultMsg&gt;\r\n  &lt;\/result&gt;\r\n  &lt;resultData&gt;\r\n    &lt;dns0&gt;\r\n      &lt;dnsid&gt;6&lt;\/dnsid&gt;\r\n      &lt;line&gt;4&lt;\/line&gt;\r\n      &lt;domainid&gt;107&lt;\/domainid&gt;\r\n      &lt;domain&gt;domain.co.id&lt;\/domain&gt;\r\n      &lt;class&gt;IN&lt;\/class&gt;\r\n      &lt;type&gt;SOA&lt;\/type&gt;\r\n      &lt;record&gt;domain.co.id.&lt;\/record&gt;\r\n      &lt;destination\/&gt;\r\n      &lt;ttl&gt;86400&lt;\/ttl&gt;\r\n      &lt;priority&gt;0&lt;\/priority&gt;\r\n      &lt;weight&gt;0&lt;\/weight&gt;\r\n      &lt;port&gt;0&lt;\/port&gt;\r\n      &lt;mname&gt;ns1.mysrsx.com&lt;\/mname&gt;\r\n      &lt;rname&gt;email.rumahweb.co.id&lt;\/rname&gt;\r\n      &lt;refresh&gt;86400&lt;\/refresh&gt;\r\n      &lt;retry&gt;7200&lt;\/retry&gt;\r\n      &lt;serial&gt;2013050100&lt;\/serial&gt;\r\n      &lt;expire&gt;3600000&lt;\/expire&gt;\r\n      &lt;minimum&gt;86400&lt;\/minimum&gt;\r\n      &lt;preference&gt;0&lt;\/preference&gt;\r\n    &lt;\/dns0&gt;\r\n    &lt;dns1&gt;\r\n      &lt;dnsid&gt;12&lt;\/dnsid&gt;\r\n      &lt;line&gt;15&lt;\/line&gt;\r\n      &lt;domainid&gt;107&lt;\/domainid&gt;\r\n      &lt;domain&gt;domain.co.id&lt;\/domain&gt;\r\n      &lt;class&gt;IN&lt;\/class&gt;\r\n      &lt;type&gt;A&lt;\/type&gt;\r\n      &lt;record&gt;domain.co.id.&lt;\/record&gt;\r\n      &lt;destination&gt;127.0.0.1&lt;\/destination&gt;\r\n      &lt;ttl&gt;14400&lt;\/ttl&gt;\r\n      &lt;priority\/&gt;\r\n      &lt;weight\/&gt;\r\n      &lt;port\/&gt;\r\n      &lt;mname\/&gt;\r\n      &lt;rname\/&gt;\r\n      &lt;refresh&gt;0&lt;\/refresh&gt;\r\n      &lt;retry&gt;0&lt;\/retry&gt;\r\n      &lt;serial&gt;0&lt;\/serial&gt;\r\n      &lt;expire&gt;0&lt;\/expire&gt;\r\n      &lt;minimum&gt;0&lt;\/minimum&gt;\r\n      &lt;preference&gt;0&lt;\/preference&gt;\r\n    &lt;\/dns1&gt;\r\n    &lt;dns2&gt;\r\n      &lt;dnsid&gt;13&lt;\/dnsid&gt;\r\n      &lt;line&gt;16&lt;\/line&gt;\r\n      &lt;domainid&gt;107&lt;\/domainid&gt;\r\n      &lt;domain&gt;domain.co.id&lt;\/domain&gt;\r\n      &lt;class&gt;IN&lt;\/class&gt;\r\n      &lt;type&gt;A&lt;\/type&gt;\r\n      &lt;record&gt;sub.domain.co.id.&lt;\/record&gt;\r\n      &lt;destination&gt;5.5.5.5&lt;\/destination&gt;\r\n      &lt;ttl&gt;14400&lt;\/ttl&gt;\r\n      &lt;priority&gt;0&lt;\/priority&gt;\r\n      &lt;weight&gt;0&lt;\/weight&gt;\r\n      &lt;port&gt;0&lt;\/port&gt;\r\n      &lt;mname\/&gt;\r\n      &lt;rname\/&gt;\r\n      &lt;refresh&gt;0&lt;\/refresh&gt;\r\n      &lt;retry&gt;0&lt;\/retry&gt;\r\n      &lt;serial&gt;0&lt;\/serial&gt;\r\n      &lt;expire&gt;0&lt;\/expire&gt;\r\n      &lt;minimum&gt;0&lt;\/minimum&gt;\r\n      &lt;preference&gt;0&lt;\/preference&gt;\r\n    &lt;\/dns2&gt;\r\n    &lt;domain_ns1&gt;ns1.mysrsx.com&lt;\/domain_ns1&gt;\r\n    &lt;domain_ns2&gt;ns2.mysrsx.com&lt;\/domain_ns2&gt;\r\n    &lt;domain_ns3&gt;ns1.mysrsx.net&lt;\/domain_ns3&gt;\r\n    &lt;domain_ns4&gt;ns2.mysrsx.net&lt;\/domain_ns4&gt;\r\n    &lt;reseller_ns1&gt;ns1.mysrsx.com&lt;\/reseller_ns1&gt;\r\n    &lt;reseller_ns2&gt;ns2.mysrsx.com&lt;\/reseller_ns2&gt;\r\n    &lt;reseller_ns3&gt;ns1.mysrsx.net&lt;\/reseller_ns3&gt;\r\n    &lt;reseller_ns4&gt;ns2.mysrsx.net&lt;\/reseller_ns4&gt;\r\n  &lt;\/resultData&gt;\r\n&lt;\/epp&gt;\r\n<\/pre>\n<p>DNS not yet initialized:<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n\r\n&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;\r\n&lt;epp&gt;\r\n  &lt;result&gt;\r\n    &lt;resultCode&gt;1000&lt;\/resultCode&gt;\r\n    &lt;resultMsg&gt;Command Complete Successfully&lt;\/resultMsg&gt;\r\n  &lt;\/result&gt;\r\n  &lt;resultData&gt;\r\n    &lt;domain_ns1&gt;ns1.rumahweb.com&lt;\/domain_ns1&gt;\r\n    &lt;domain_ns2&gt;ns2.rumahweb.com&lt;\/domain_ns2&gt;\r\n    &lt;domain_ns3\/&gt;\r\n    &lt;domain_ns4\/&gt;\r\n    &lt;reseller_ns1&gt;ns1.mysrsx.com&lt;\/reseller_ns1&gt;\r\n    &lt;reseller_ns2&gt;ns2.mysrsx.com&lt;\/reseller_ns2&gt;\r\n    &lt;reseller_ns3&gt;ns1.mysrsx.net&lt;\/reseller_ns3&gt;\r\n    &lt;reseller_ns4&gt;ns2.mysrsx.net&lt;\/reseller_ns4&gt;\r\n  &lt;\/resultData&gt;\r\n&lt;\/epp&gt;\r\n<\/pre>\n<p>Failed<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;\r\n&lt;epp&gt;\r\n  &lt;result&gt;\r\n    &lt;resultCode&gt;1001&lt;\/resultCode&gt;\r\n    &lt;resultMsg&gt;Command Failed&lt;\/resultMsg&gt;\r\n  &lt;\/result&gt;\r\n&lt;\/epp&gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Versi Bahasa Indonesia Description Get DNS Information Query dns\/info List Variable Example Example Response Succeed: DNS not yet initialized: Failed<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":259,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/pages\/261"}],"collection":[{"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/comments?post=261"}],"version-history":[{"count":8,"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/pages\/261\/revisions"}],"predecessor-version":[{"id":1648,"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/pages\/261\/revisions\/1648"}],"up":[{"embeddable":true,"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/pages\/259"}],"wp:attachment":[{"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/media?parent=261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}