Editing
External Name Resolution
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
While the coredns configuration is supposed to refer all non-cluster names out to the system defined DNS resolver, it seems that it doesn't always happen. It may be related to the observation I've made that the nameserver IP in the /etc/resolv.conf file is changed to 127.0.0.53 - which doesn't always work. In any case, the coredns configuration allows you to add custom domain override definitions by creating a ConfigMap named 'coredns-custom' using a YAML file like this: <pre>ApiVersion: v1 kind: ConfigMap metadata: name: coredns-custom namespace: kube-system data: # Log all incoming DNS queries. log.override: | log # Private DNS resolution. Handles FQDN resolutions for *.williams.localnet dev.server: | williams.localnet.:53 { forward . 10.0.0.254 } </pre> The general process is described in the online kubernetes documentation: https://kubernetes.io/docs/tasks/administer-cluster/dns-custom-nameservers/ Note that the '*.override' tag is different from the online documentation. The correct label was identified by looking at the standard 'coredns' ConfigMap to see where and how these custom sections are added. You can include multiple *.override sections and multiple *.server sections if needed to include all the overrides desired.
Summary:
Please note that all contributions to WilliamsNet Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
WilliamsNet Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Navigation
Commons
Architecture
How-To
Systems
Hardware
SysAdmin
Kubernetes
OpenSearch
Special
Pages to create
All pages
Recent changes
Random page
Help about MediaWiki
Formatting Help
Tools
What links here
Related changes
Special pages
Page information