You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| 27.0.200.0/24 | North America / NA | United States / US |
107
+
| 10.89.100.0/24 | Europe / EU | Ireland / IE |
108
+
| 10.89.200.0/24 | North America / NA | United States / US |
109
+
110
+
You can use `-b` option with dig to use any available to host machine IP addresses as a "source". E.G `dig @[nameserver] [hostname] -p [exposed-port] -b 127.0.100.1` will be associated with IE locale and `-b 127.0.200.1` with US
111
+
112
+
> **_NOTE:_** the demo DB contains only localhost addresses. I.E. will work only with CoreDNS instance running with `make coredns-run` (not in kind cluster) unless you specify desired subnet in dig with `+subnet=[subnet]`
113
+
114
+
To add more subnets, it is the best to generate a new DB file. Add your desired CIDR range to the constants and at the end of the file associate it with the desired record (IE or US).
115
+
116
+
For a deployment using a real-world database you could refer to the [maxmind](https://dev.maxmind.com/geoip/) for their free db. Once obtained it must be mounted and referenced in the Corefile instead of the demo-db.
117
+
106
118
### Misc Commands
107
119
108
120
Get all CoreDNS Deployments:
@@ -117,7 +129,7 @@ kubectl get service -A -l app.kubernetes.io/name=coredns,app.kubernetes.io/compo
117
129
118
130
Get all CoreDNS service external IPs for multi deployment:
119
131
```shell
120
-
kubectl get service -A -l app.kubernetes.io/name=coredns,app.kubernetes.io/component!=metrics,app.kubernetes.io/part-of=coredns-multi -o json | jq -r .items[].status.loadBalancer.ingress[].ip
132
+
kubectl get service -A -l app.kubernetes.io/name=coredns,app.kubernetes.io/component!=metrics,app.kubernetes.io/part-of=coredns-multi -o json | jq -r '.items[].status.loadBalancer.ingress[].ip'
0 commit comments