using bind?
This commit is contained in:
parent
df8127f43a
commit
0cb935b5aa
1 changed files with 16 additions and 0 deletions
|
@ -119,6 +119,22 @@ abc.something.example.org A <a static IPv4 address A.B.C.D>
|
||||||
In theory this might be solved via some scripting, maybe via a DNS
|
In theory this might be solved via some scripting, maybe via a DNS
|
||||||
server like powerDNS?
|
server like powerDNS?
|
||||||
|
|
||||||
|
## Alternative solution with BIND
|
||||||
|
|
||||||
|
The bind DNS server, which is not usually deployed in a kubernetes
|
||||||
|
cluster, supports **views**. Views enable different replies to the
|
||||||
|
same query depending on the source IP address. Thus in theory
|
||||||
|
something like that could be done, assuming a secondary zone
|
||||||
|
*example.org*:
|
||||||
|
|
||||||
|
* If the request comes from the kubernetes cluster, return a CNAME
|
||||||
|
back to example.com.
|
||||||
|
* If the request comes from outside the kubernetes cluster, return an
|
||||||
|
A entry with the static IP
|
||||||
|
* Unsolved: how to match on the AAAA entries (because we don't CNAME
|
||||||
|
with the added A entry)
|
||||||
|
|
||||||
|
|
||||||
## Other solution?
|
## Other solution?
|
||||||
|
|
||||||
As you can see, mixing the dynamic IP generation and coupling it with
|
As you can see, mixing the dynamic IP generation and coupling it with
|
||||||
|
|
Loading…
Reference in a new issue