Mise à jour de 'dns/README.md'
This commit is contained in:
parent
6173bcf9aa
commit
e88b2df947
@ -64,19 +64,25 @@ Let's try with that Service :
|
|||||||
First, let's retrieve DNS IP :
|
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
|
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
|
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
|
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
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user