{"id":1983,"date":"2017-05-08T16:01:44","date_gmt":"2017-05-08T16:01:44","guid":{"rendered":"https:\/\/live-infoblox-blog.pantheonsite.io\/?p=1983"},"modified":"2020-05-06T10:28:00","modified_gmt":"2020-05-06T17:28:00","slug":"custom-dns-entries-in-kubernetes-using-coredns","status":"publish","type":"post","link":"https:\/\/www.infoblox.com\/blog\/community\/custom-dns-entries-in-kubernetes-using-coredns\/","title":{"rendered":"Custom DNS Entries In Kubernetes using CoreDNS"},"content":{"rendered":"<p>Occasionally when building or migrating applications to run in Kubernetes, there is a need to create custom DNS entries that are not part of the\u00a0<a href=\"https:\/\/github.com\/kubernetes\/dns\/blob\/master\/docs\/specification.md\" target=\"_self\" rel=\"nofollow noopener noreferrer\">standard Kubernetes service discovery DNS schema<\/a>. If you are using\u00a0<a href=\"https:\/\/blog.coredns.io\/2017\/03\/01\/coredns-for-kubernetes-service-discovery-take-2\/\" target=\"_self\" rel=\"nofollow noopener noreferrer\">CoreDNS for your service discovery<\/a>, this is easy to accomplish. To learn how, take a look at our latest article in the CoreDNS blog on\u00a0<a href=\"https:\/\/blog.coredns.io\/2017\/05\/08\/custom-dns-entries-for-kubernetes\/\" target=\"_self\" rel=\"nofollow noopener noreferrer\">Custom DNS Entries For Kubernetes<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Occasionally when building or migrating applications to run in Kubernetes, there is a need to create custom DNS entries that are not part of the\u00a0standard Kubernetes service discovery DNS schema. If you are using\u00a0CoreDNS for your service discovery, this is easy to accomplish. To learn how, take a look at our latest article in the [&hellip;]<\/p>\n","protected":false},"author":206,"featured_media":1233,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[3],"tags":[30,118,119],"class_list":{"0":"post-1983","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-community","8":"tag-dns","9":"tag-docker","10":"tag-orchestrator","11":"entry"},"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.3 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Custom DNS Entries In Kubernetes using CoreDNS<\/title>\n<meta name=\"description\" content=\"Occasionally when building or migrating applications to run in Kubernetes, there is a need to create custom DNS entries that are not part of the\u00a0standard Kubernetes service discovery DNS schema.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.infoblox.com\/blog\/community\/custom-dns-entries-in-kubernetes-using-coredns\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Custom DNS Entries In Kubernetes using CoreDNS\" \/>\n<meta property=\"og:description\" content=\"Occasionally when building or migrating applications to run in Kubernetes, there is a need to create custom DNS entries that are not part of the\u00a0standard Kubernetes service discovery DNS schema.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.infoblox.com\/blog\/community\/custom-dns-entries-in-kubernetes-using-coredns\/\" \/>\n<meta property=\"og:site_name\" content=\"Infoblox Blog\" \/>\n<meta property=\"article:published_time\" content=\"2017-05-08T16:01:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-05-06T17:28:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.infoblox.com\/blog\/wp-content\/uploads\/iotblogmonday-2.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"660\" \/>\n\t<meta property=\"og:image:height\" content=\"454\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"John Belamaric\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"John Belamaric\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/community\\\/custom-dns-entries-in-kubernetes-using-coredns\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/community\\\/custom-dns-entries-in-kubernetes-using-coredns\\\/\"},\"author\":{\"name\":\"John Belamaric\",\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/#\\\/schema\\\/person\\\/053c2b18a442a1874857175dc9a15b97\"},\"headline\":\"Custom DNS Entries In Kubernetes using CoreDNS\",\"datePublished\":\"2017-05-08T16:01:44+00:00\",\"dateModified\":\"2020-05-06T17:28:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/community\\\/custom-dns-entries-in-kubernetes-using-coredns\\\/\"},\"wordCount\":72,\"publisher\":{\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/community\\\/custom-dns-entries-in-kubernetes-using-coredns\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/wp-content\\\/uploads\\\/iotblogmonday-2.jpg\",\"keywords\":[\"DNS\",\"Docker\",\"Orchestrator\"],\"articleSection\":[\"Community\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/community\\\/custom-dns-entries-in-kubernetes-using-coredns\\\/\",\"url\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/community\\\/custom-dns-entries-in-kubernetes-using-coredns\\\/\",\"name\":\"Custom DNS Entries In Kubernetes using CoreDNS\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/community\\\/custom-dns-entries-in-kubernetes-using-coredns\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/community\\\/custom-dns-entries-in-kubernetes-using-coredns\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/wp-content\\\/uploads\\\/iotblogmonday-2.jpg\",\"datePublished\":\"2017-05-08T16:01:44+00:00\",\"dateModified\":\"2020-05-06T17:28:00+00:00\",\"description\":\"Occasionally when building or migrating applications to run in Kubernetes, there is a need to create custom DNS entries that are not part of the\u00a0standard Kubernetes service discovery DNS schema.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/community\\\/custom-dns-entries-in-kubernetes-using-coredns\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/community\\\/custom-dns-entries-in-kubernetes-using-coredns\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/community\\\/custom-dns-entries-in-kubernetes-using-coredns\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/wp-content\\\/uploads\\\/iotblogmonday-2.jpg\",\"contentUrl\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/wp-content\\\/uploads\\\/iotblogmonday-2.jpg\",\"width\":660,\"height\":454,\"caption\":\"Infoblox and Automation of Cloud Services- Real World Examples using Ansible\u00ae and Microsoft Azure\u00ae\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/community\\\/custom-dns-entries-in-kubernetes-using-coredns\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Community\",\"item\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/category\\\/community\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Custom DNS Entries In Kubernetes using CoreDNS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/\",\"name\":\"infoblox.com\\\/blog\\\/\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/#organization\",\"name\":\"Infoblox\",\"url\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/wp-content\\\/uploads\\\/infoblox-logo-2.svg\",\"contentUrl\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/wp-content\\\/uploads\\\/infoblox-logo-2.svg\",\"width\":137,\"height\":30,\"caption\":\"Infoblox\"},\"image\":{\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/#\\\/schema\\\/person\\\/053c2b18a442a1874857175dc9a15b97\",\"name\":\"John Belamaric\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7ab6c9e6e797ea8913b402cc81b586865538d4c2af6d47c87d3dbd804c02e886?s=96&d=blank&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7ab6c9e6e797ea8913b402cc81b586865538d4c2af6d47c87d3dbd804c02e886?s=96&d=blank&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7ab6c9e6e797ea8913b402cc81b586865538d4c2af6d47c87d3dbd804c02e886?s=96&d=blank&r=g\",\"caption\":\"John Belamaric\"},\"url\":\"https:\\\/\\\/www.infoblox.com\\\/blog\\\/author\\\/john-belamaric\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Custom DNS Entries In Kubernetes using CoreDNS","description":"Occasionally when building or migrating applications to run in Kubernetes, there is a need to create custom DNS entries that are not part of the\u00a0standard Kubernetes service discovery DNS schema.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.infoblox.com\/blog\/community\/custom-dns-entries-in-kubernetes-using-coredns\/","og_locale":"en_US","og_type":"article","og_title":"Custom DNS Entries In Kubernetes using CoreDNS","og_description":"Occasionally when building or migrating applications to run in Kubernetes, there is a need to create custom DNS entries that are not part of the\u00a0standard Kubernetes service discovery DNS schema.","og_url":"https:\/\/www.infoblox.com\/blog\/community\/custom-dns-entries-in-kubernetes-using-coredns\/","og_site_name":"Infoblox Blog","article_published_time":"2017-05-08T16:01:44+00:00","article_modified_time":"2020-05-06T17:28:00+00:00","og_image":[{"width":660,"height":454,"url":"https:\/\/www.infoblox.com\/blog\/wp-content\/uploads\/iotblogmonday-2.jpg","type":"image\/jpeg"}],"author":"John Belamaric","twitter_card":"summary_large_image","twitter_misc":{"Written by":"John Belamaric"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.infoblox.com\/blog\/community\/custom-dns-entries-in-kubernetes-using-coredns\/#article","isPartOf":{"@id":"https:\/\/www.infoblox.com\/blog\/community\/custom-dns-entries-in-kubernetes-using-coredns\/"},"author":{"name":"John Belamaric","@id":"https:\/\/www.infoblox.com\/blog\/#\/schema\/person\/053c2b18a442a1874857175dc9a15b97"},"headline":"Custom DNS Entries In Kubernetes using CoreDNS","datePublished":"2017-05-08T16:01:44+00:00","dateModified":"2020-05-06T17:28:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.infoblox.com\/blog\/community\/custom-dns-entries-in-kubernetes-using-coredns\/"},"wordCount":72,"publisher":{"@id":"https:\/\/www.infoblox.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.infoblox.com\/blog\/community\/custom-dns-entries-in-kubernetes-using-coredns\/#primaryimage"},"thumbnailUrl":"https:\/\/www.infoblox.com\/blog\/wp-content\/uploads\/iotblogmonday-2.jpg","keywords":["DNS","Docker","Orchestrator"],"articleSection":["Community"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.infoblox.com\/blog\/community\/custom-dns-entries-in-kubernetes-using-coredns\/","url":"https:\/\/www.infoblox.com\/blog\/community\/custom-dns-entries-in-kubernetes-using-coredns\/","name":"Custom DNS Entries In Kubernetes using CoreDNS","isPartOf":{"@id":"https:\/\/www.infoblox.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.infoblox.com\/blog\/community\/custom-dns-entries-in-kubernetes-using-coredns\/#primaryimage"},"image":{"@id":"https:\/\/www.infoblox.com\/blog\/community\/custom-dns-entries-in-kubernetes-using-coredns\/#primaryimage"},"thumbnailUrl":"https:\/\/www.infoblox.com\/blog\/wp-content\/uploads\/iotblogmonday-2.jpg","datePublished":"2017-05-08T16:01:44+00:00","dateModified":"2020-05-06T17:28:00+00:00","description":"Occasionally when building or migrating applications to run in Kubernetes, there is a need to create custom DNS entries that are not part of the\u00a0standard Kubernetes service discovery DNS schema.","breadcrumb":{"@id":"https:\/\/www.infoblox.com\/blog\/community\/custom-dns-entries-in-kubernetes-using-coredns\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.infoblox.com\/blog\/community\/custom-dns-entries-in-kubernetes-using-coredns\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.infoblox.com\/blog\/community\/custom-dns-entries-in-kubernetes-using-coredns\/#primaryimage","url":"https:\/\/www.infoblox.com\/blog\/wp-content\/uploads\/iotblogmonday-2.jpg","contentUrl":"https:\/\/www.infoblox.com\/blog\/wp-content\/uploads\/iotblogmonday-2.jpg","width":660,"height":454,"caption":"Infoblox and Automation of Cloud Services- Real World Examples using Ansible\u00ae and Microsoft Azure\u00ae"},{"@type":"BreadcrumbList","@id":"https:\/\/www.infoblox.com\/blog\/community\/custom-dns-entries-in-kubernetes-using-coredns\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.infoblox.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Community","item":"https:\/\/www.infoblox.com\/blog\/category\/community\/"},{"@type":"ListItem","position":3,"name":"Custom DNS Entries In Kubernetes using CoreDNS"}]},{"@type":"WebSite","@id":"https:\/\/www.infoblox.com\/blog\/#website","url":"https:\/\/www.infoblox.com\/blog\/","name":"infoblox.com\/blog\/","description":"","publisher":{"@id":"https:\/\/www.infoblox.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.infoblox.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.infoblox.com\/blog\/#organization","name":"Infoblox","url":"https:\/\/www.infoblox.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.infoblox.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.infoblox.com\/blog\/wp-content\/uploads\/infoblox-logo-2.svg","contentUrl":"https:\/\/www.infoblox.com\/blog\/wp-content\/uploads\/infoblox-logo-2.svg","width":137,"height":30,"caption":"Infoblox"},"image":{"@id":"https:\/\/www.infoblox.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.infoblox.com\/blog\/#\/schema\/person\/053c2b18a442a1874857175dc9a15b97","name":"John Belamaric","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/7ab6c9e6e797ea8913b402cc81b586865538d4c2af6d47c87d3dbd804c02e886?s=96&d=blank&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/7ab6c9e6e797ea8913b402cc81b586865538d4c2af6d47c87d3dbd804c02e886?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7ab6c9e6e797ea8913b402cc81b586865538d4c2af6d47c87d3dbd804c02e886?s=96&d=blank&r=g","caption":"John Belamaric"},"url":"https:\/\/www.infoblox.com\/blog\/author\/john-belamaric\/"}]}},"_links":{"self":[{"href":"https:\/\/www.infoblox.com\/blog\/wp-json\/wp\/v2\/posts\/1983","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.infoblox.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.infoblox.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.infoblox.com\/blog\/wp-json\/wp\/v2\/users\/206"}],"replies":[{"embeddable":true,"href":"https:\/\/www.infoblox.com\/blog\/wp-json\/wp\/v2\/comments?post=1983"}],"version-history":[{"count":1,"href":"https:\/\/www.infoblox.com\/blog\/wp-json\/wp\/v2\/posts\/1983\/revisions"}],"predecessor-version":[{"id":1985,"href":"https:\/\/www.infoblox.com\/blog\/wp-json\/wp\/v2\/posts\/1983\/revisions\/1985"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.infoblox.com\/blog\/wp-json\/wp\/v2\/media\/1233"}],"wp:attachment":[{"href":"https:\/\/www.infoblox.com\/blog\/wp-json\/wp\/v2\/media?parent=1983"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.infoblox.com\/blog\/wp-json\/wp\/v2\/categories?post=1983"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.infoblox.com\/blog\/wp-json\/wp\/v2\/tags?post=1983"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}