{"id":31640,"date":"2016-02-03T09:17:58","date_gmt":"2016-02-03T03:47:58","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=31640"},"modified":"2016-06-20T18:00:06","modified_gmt":"2016-06-20T12:30:06","slug":"migrate-subdomain-without-migrating-parent-domain","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/migrate-subdomain-without-migrating-parent-domain\/","title":{"rendered":"Migrate Subdomain without Migrating Parent Domain"},"content":{"rendered":"<p>I had a use-case\u00a0where I needed to use a subdomain and its Parent Domain already had a lot of DNS entries. So, it was very hard to manage 100+ DNS entries in a single account where you need to play with a single Subdomain. I found a solution wherein we could migrate a single Subdomain to another Domain Control (AWS) and thereby control all other Child Domains of that particular Subdomain separately. It will not make any changes to the Parent Domain, Parent will be untouched.<\/p>\n<ol>\n<li>Create a Hosted Zone entry in AWS Route53 for that Subdomain, eg: something.example.com.<\/li>\n<li>Copy NS Record of\u00a0something.example.com.<\/li>\n<li>Create a new record of type NS in your parent Domain (example.com) account and put all NS records of\u00a0something.example.com.<\/li>\n<li>Now all *.something.example.com will be controlled by the AWS Route53.<\/li>\n<\/ol>\n<p><span style=\"text-decoration: underline;\"><strong>To check NS record for\u00a0something.example.com you can try a few commands as below:<\/strong><\/span><\/p>\n<p>Check NS record of\u00a0something.example.com:<\/p>\n<pre>\u279c \u00a0~ dig NS +short\u00a0something.example.com\r\nns-1771.awsdns-29.co.uk.\r\nns-389.awsdns-48.com.\r\nns-747.awsdns-29.net.\r\nns-1222.awsdns-24.org.<\/pre>\n<p>Check NS record of example.com:<\/p>\n<pre>\u279c \u00a0~ dig NS +short\u00a0example.com \r\nns10.domaincontrol.com. \r\nns09.domaincontrol.com.<\/pre>\n<p>Check stack trace for something.example.com:<\/p>\n<pre>\u279c \u00a0~ dig +trace \u00a0something.example.com \r\nexample.com. 172800 IN NS ns09.domaincontrol.com.\r\nexample.com. 172800 IN NS ns10.domaincontrol.com.\r\n;; Received 128 bytes from 192.42.93.30#53(192.42.93.30) in 470 ms\r\nsomething.example.com. 1800 IN NS ns-1771.awsdns-29.co.uk.\r\nsomething.example.com. 1800 IN NS ns-747.awsdns-29.net.\r\nsomething.example.com. 1800 IN NS ns-1222.awsdns-24.org.\r\nsomething.example.com. 1800 IN NS ns-389.awsdns-48.com.<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>Other Use Cases:<\/strong><\/p>\n<ul>\n<li>If you have multiple vendors and each one wants full access on its Subdomain, you can easily distribute Subdomain on the different account and give complete access.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>I had a use-case\u00a0where I needed to use a subdomain and its Parent Domain already had a lot of DNS entries. So, it was very hard to manage 100+ DNS entries in a single account where you need to play with a single Subdomain. I found a solution wherein we could migrate a single Subdomain [&hellip;]<\/p>\n","protected":false},"author":678,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":2},"categories":[1174,2348,1],"tags":[1702,1274],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/31640"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/678"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=31640"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/31640\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=31640"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=31640"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=31640"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}