A simple DNS client command line implemented by Golang.
75
A simple DNS client command line implemented by Golang.
Using library: https://github.com/miekg/dns
Usage:
kubectl run dns-client -it --restart='Never' --image joxrays/dns-client:v1.0.0 --command -- bash
docker run -it --name dns-client joxrays/dns-client:v1.0.0 bash
cd /./dns_client query <DNS-SERVER> <DOMAIN> <DNS-RECORD> : Query the ip address of domain name by DNS server../dns_client http <DNS-SERVER> <TARGET> : Send a http request to target server. The target ip address was parsed by DNS serverExample:
./dns_client query 8.8.8.8:53 www.google.com AAAA./dns_client http 8.8.8.8:53 https://www.google.com./dns_client query kube-dns.kube-system.svc.cluster.local:53 http-echo-service.default.svc.cluster.local A./dns_client http kube-dns.kube-system.svc.cluster.local:53 http://http-echo-service:5678test docker image: https://hub.docker.com/r/joxrays/simple-http-echo
Content type
Image
Digest
sha256:61090f839…
Size
32.3 MB
Last updated
over 3 years ago
docker pull joxrays/dns-client:v1.0.0