https://github.com/cosandr/coredns-vsphere-plugin
CoreDNS plugin returning the primary IP of VMs using the vSphere API
https://github.com/cosandr/coredns-vsphere-plugin
Last synced: 6 months ago
JSON representation
CoreDNS plugin returning the primary IP of VMs using the vSphere API
- Host: GitHub
- URL: https://github.com/cosandr/coredns-vsphere-plugin
- Owner: cosandr
- License: gpl-2.0
- Created: 2021-06-18T16:39:57.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-10-27T18:47:22.000Z (over 2 years ago)
- Last Synced: 2024-06-20T09:18:41.346Z (about 2 years ago)
- Language: Go
- Size: 7.34 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CoreDNS vSphere plugin
This plugin queries the vSphere API and looks for VM a matching name/hostname.
All VMs are fetched at once and cached, the cache is updated whenever a request is not found.
## Usage
To activate the plugin you need to compile CoreDNS with the plugin added
to `plugin.cfg`
```
vsphere:github.com/cosandr/coredns-vsphere-plugin
```
Then add it to Corefile:
```
. {
vsphere {
url ""
user ""
pass ""
insecure ""
}
}
```