Skip to content

Commit d061716

Browse files
author
Christopher Tauchen
authored
Merge pull request #40546 from ctauchen/revert-NE743-main
Revert "JIRA743:include upstream resolvers in the DNS Opertaor CRD"
2 parents 4927ffc + b24bb23 commit d061716

File tree

1 file changed

+6
-29
lines changed

1 file changed

+6
-29
lines changed

modules/nw-dns-forward.adoc

Lines changed: 6 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,7 @@
55
[id="nw-dns-forward_{context}"]
66
= Using DNS forwarding
77

8-
You can use DNS forwarding to override the default forwarding configuration in the `/etc/resolv.conf` file in the following ways:
9-
10-
* Specify name servers for every zone. If the forwarded zone is the Ingress domain managed by {product-title}, then the upstream name server must be authorized for the domain.
11-
* Provide a list of upstream DNS servers.
12-
* Change the default forwarding policy.
13-
14-
[NOTE]
15-
=====
16-
A DNS forwarding configuration for the default domain can have both the default servers specified in the `/etc/resolv.conf` file and the upstream DNS servers.
17-
=====
8+
You can use DNS forwarding to override the forwarding configuration identified in `/etc/resolv.conf` on a per-zone basis by specifying which name server should be used for a given zone. If the forwarded zone is the Ingress domain managed by {product-title}, then the upstream name server must be authorized for the domain.
189

1910
.Procedure
2011

@@ -25,7 +16,7 @@ A DNS forwarding configuration for the default domain can have both the default
2516
$ oc edit dns.operator/default
2617
----
2718
+
28-
This allows the Operator to create and update the ConfigMap named `dns-default` with additional server configuration blocks based on `Server`. If none of the servers has a zone that matches the query, then name resolution falls back to the upstream DNS servers.
19+
This allows the Operator to create and update the ConfigMap named `dns-default` with additional server configuration blocks based on `Server`. If none of the servers has a zone that matches the query, then name resolution falls back to the name servers that are specified in `/etc/resolv.conf`.
2920
+
3021
.Sample DNS
3122
[source,yaml]
@@ -51,24 +42,10 @@ spec:
5142
upstreams:
5243
- 3.3.3.3
5344
- 4.4.4.4:5454
54-
upstreamResolvers: <4>
55-
policy: Random <5>
56-
upstreams: <6>
57-
- type: SystemResolvConf <7>
58-
- type: Network
59-
address: 1.2.3.4 <8>
60-
port: 53 <9>
6145
----
62-
<1> Must comply with the `rfc6335` service name syntax.
63-
<2> Must conform to the definition of a `subdomain` in `rfc1123`. The cluster domain, `cluster.local`, is an invalid `subdomain` for `zones`.
46+
<1> `name` must comply with the `rfc6335` service name syntax.
47+
<2> `zones` must conform to the definition of a `subdomain` in `rfc1123`. The cluster domain, `cluster.local`, is an invalid `subdomain` for `zones`.
6448
<3> A maximum of 15 `upstreams` is allowed per `forwardPlugin`.
65-
<4> Optional. You can use it to override the default policy and forward DNS resolution to the specified DNS resolvers (upstream resolvers) for the default domain. If you do not provide any upstream resolvers, the DNS name queries go to the servers in `/etc/resolv.conf`.
66-
<5> Determines the order in which upstream servers are selected for querying. You can specify one of these values: `Random`, `RoundRobin`, and `Sequential`. The default value is `Sequential`.
67-
<6> Optional. You can use it to provide upstream resolvers.
68-
<7> You can specify two types of `upstreams` - `SystemResolvConf` and `Network`. `SystemResolvConf` is for configuring the upstream to use `/etc/resolv.conf` and `Network` is for defining a `Networkresolver`. You can specify one or both.
69-
<8> If the specified type is `Network`, you must provide an IP address. `address` must be a valid IPv4 or IPv6 address.
70-
<9> If the specified type is `Network`, you can optionally provide a port. `port` must be between 1 and 65535.
71-
7249
+
7350
[NOTE]
7451
====
@@ -103,8 +80,8 @@ data:
10380
fallthrough in-addr.arpa ip6.arpa
10481
}
10582
prometheus :9153
106-
forward . /etc/resolv.conf 1.2.3.4:53 {
107-
policy Random
83+
forward . /etc/resolv.conf {
84+
policy sequential
10885
}
10986
cache 30
11087
reload

0 commit comments

Comments
 (0)