From e88b2df947c7d393da58b9217c0903bd48211aa9 Mon Sep 17 00:00:00 2001 From: Fabrice Didon Date: Tue, 24 Nov 2020 21:11:15 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'dns/README.md'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dns/README.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/dns/README.md b/dns/README.md index 5ab8a16..ec6b3ae 100644 --- a/dns/README.md +++ b/dns/README.md @@ -64,19 +64,25 @@ Let's try with that Service : First, let's retrieve DNS IP : ``` -kubectl -n dns get svc coredns +$ kubectl -n dns get svc coredns NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE -coredns LoadBalancer 10.97.35.253 192.168.5.201 53:32585/UDP 1d +coredns LoadBalancer 10.98.74.182 192.168.5.201 53:30690/UDP 2d1h ``` We can now try DNS resolution ``` -$ dig @192.168.5.201 nginx.open-it.intra -short +$ dig @192.168.5.201 nginx.open-it.intra +short +192.168.5.203 ``` or ``` -nslookup nginx.open-it.intra 192.168.5.201 +$ nslookup nginx.open-it.intra 192.168.5.201 +Server: 192.168.5.201 +Address: 192.168.5.201#53 + +Name: nginx.open-it.intra +Address: 192.168.5.203 ```