Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/michaelbeaumont/coredns-libvirt
Resolve names to libvirt domain names and hostnames
https://github.com/michaelbeaumont/coredns-libvirt
coredns coredns-plugin libvirt
Last synced: 2 months ago
JSON representation
Resolve names to libvirt domain names and hostnames
- Host: GitHub
- URL: https://github.com/michaelbeaumont/coredns-libvirt
- Owner: michaelbeaumont
- License: mit
- Created: 2023-08-05T01:55:40.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-19T07:49:03.000Z (5 months ago)
- Last Synced: 2024-10-12T23:59:39.780Z (3 months ago)
- Topics: coredns, coredns-plugin, libvirt
- Language: Go
- Homepage:
- Size: 80.1 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# coredns-libvirt
This plugin allows CoreDNS to resolve names matching libvirt domains. It is
similar to the `nss` plugin `libvirt_guest`.## Usage
Currently this plugin can only be used in the `guest` mode.
### Guest name
The functionality of `libvirt guest` is analogous to the `libvirt_guest` `nss`
plugin, where we look for a match on the name of the libvirt domain, not
necessarily a hostname.### Zones
If your zone isn't root `.`, you'll likely want to include the `trim_suffix`
directive so you search for the correct name in your guests.### Filtering by network
If only some of the IPs assigned to the guests are reachable, you can filter
them with the `keep` directive.## Example
```
vm:1053 {
libvirt guest {
trim_suffix vm
keep 10.101.0.0/24
}
}
```