<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
Hello,<br>
<div style="color: rgb(0, 0, 0);">
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<div>I have an issue configuring <span>delegated subdomain zone</span> from one NS to another one.<br>
<span tabindex="-1" id="x_result_box" class="" lang="en"><span class="">For security reasons I will obviously not put real domain data (I imagine you will understand).</span></span><br>
<br>
<span tabindex="-1" id="x_result_box" class="x_short_text" lang="en"><span class="">Let's suppose that the delegated subdomain is:</span></span> midominio.principal.hosting.com<br>
<span tabindex="-1" id="x_result_box" class="" lang="en"><span class="">If we make a "dig" query, putting the hosting server's NS as the domain name server</span></span>:<br>
<br>
<i>dig @ns1.hosting.com midominio.principal.hosting.com<br>
<br>
; <<>> DiG 9.10.3-P4-Debian <<>> @ns1.hosting.com midominio.principal.hosting.com<br>
; (1 server found)<br>
;; global options: +cmd<br>
;; Got answer:<br>
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40831<br>
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 2, ADDITIONAL: 3<br>
;; WARNING: recursion requested but not available<br>
<br>
;; OPT PSEUDOSECTION:<br>
; EDNS: version: 0, flags:; udp: 4096<br>
;; QUESTION SECTION:<br>
;midominio.principal.hosting.com. IN A<br>
<br>
;; AUTHORITY SECTION:<br>
midominio.principal.hosting.com. 125 IN NS sb2.principal.hosting.com.<br>
midominio.principal.hosting.com. 125 IN NS sb1.principal.hosting.com.<br>
<br>
;; ADDITIONAL SECTION:<br>
sb1.principal.hosting.com. 125 IN A xxx.xxx.xxx.52<br>
sb2.principal.hosting.com. 125 IN A xxx.xxx.xxx.53<br>
<br>
;; Query time: 12 msec<br>
;; SERVER: 31.193.224.20#53(31.193.224.20)<br>
;; WHEN: Wed Sep 12 08:09:36 CEST 2018<br>
;; MSG SIZE rcvd: 133</i><br>
<br>
<span tabindex="-1" id="x_result_box" class="x_short_text" lang="en"><span class="">From which we deduce several things:</span></span><br>
<br>
<ol style="list-style-type:decimal">
<li><span tabindex="-1" id="x_result_box" class="" lang="en"><span class="">That in the zone principal.hosting.com of the main server of the hosting there are created two registers of type A</span></span>:<br>
<ol style="list-style-type:decimal">
<li><i>sb1.principal.hosting.com. 125 IN A xxx.xxx.xxx.52<br>
sb2.principal.hosting.com. 125 IN A xxx.xxx.xxx.53</i></li></ol>
</li><li><span tabindex="-1" id="x_result_box" class="" style="" lang="en"><span class="">That the authorized DNS servers on the subdomain midominio.principal.hosting.com are</span></span>:<br>
<i>sb1.principal.hosting.com</i> y el <i>sb2.principal.hosting.com</i></li></ol>
<span id="x_result_box" class="" lang="en"><span class="">Having said that, in my vps I have defined the following</span></span>:<br>
<br>
<i>; BIND reverse data file for empty rfc1918 zone<br>
;<br>
; DO NOT EDIT THIS FILE - it is used for multiple zones.<br>
; Instead, copy it, edit named.conf, and use that copy.<br>
;<br>
</i><br>
<i>$TTL 86400</i><br>
<i>@ IN SOA sb1. sb2. mail. (<br>
10 ; Serial<br>
604800 ; Refresh<br>
86400 ; Retry<br>
2419200 ; Expire<br>
86400 ) ; Negative Cache TTL<br>
; REGISTROS<br>
NS sb1.</i><i><i>principal.hosting.com</i>.<br>
NS sb2.</i><i><i>principal.hosting.com</i>.<br>
IN MX 10 mail.</i><i><i>midominio.principal.hosting.com</i>.<br>
sb1 IN A </i><i><i>xxx.xxx.xxx</i>.52<br>
sb2 IN A </i><i><i>xxx.xxx.xxx</i>.53<br>
www IN A </i><i><i>xxx.xxx.xxx</i>.53<br>
mail IN A </i><i><i>xxx.xxx.xxx</i>.53<br>
webmail IN CNAME mail<br>
* IN A </i><i><i>xxx.xxx.xxx</i>.53</i><br>
<br>
<br>
<span id="x_result_box" class="" lang="en"><span>However I can not get it to solve for example www.midominio.principal.hosting.com </span><span>What am I doing wrong?.</span><br>
<span class="">Thank you very much in advance</span></span><i></i></div>
<span style="font-size:8.0pt; color:#1F497D" lang="EN-US"></span><span style="font-size:8.0pt; color:#1F497D" lang="EN-US"></span>
<div id="x_Signature">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>