Skip to content

Commit

Permalink
Update README - Release v0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
oz123 committed Dec 30, 2021
1 parent cab96e0 commit b545358
Showing 1 changed file with 14 additions and 24 deletions.
38 changes: 14 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,51 +2,28 @@

This plugin gets an A record from NetBox[1]. It uses the REST API of netbox
to ask for a an IP address of a hostname:

```
curl https://netbox.example.org/api/ipam/ip-addresses/?dns_name=example-vm-host
{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"id": 426,
"family": {
"value": 4,
"label": "IPv4"
},
"address": "192.168.1.101/25",
"vrf": null,
"tenant": null,
"status": {
"value": 1,
"label": "Active"
},
"role": null,
"interface": {
"id": 452,
"url": "https://netbox.example.org/api/virtualization/interfaces/452/",
"device": null,
"virtual_machine": {
"id": 10,
"url": "https://netbox.example.org/api/virtualization/virtual-machines/10/",
"name": "VM22"
},
"name": "ens12"
},
"nat_inside": null,
"nat_outside": null,
"dns_name": "vm22-jump-host",
"description": "",
"tags": [],
"custom_fields": {
"dhcp_route": null
},
"created": "2020-03-04",
"last_updated": "2020-03-04T16:57:07.375937Z"
}
]
}
Expand Down Expand Up @@ -74,6 +51,19 @@ Then add it to Corefile:
```

The config parameters are mandatory.

## Changelog

0.2 - Cleanup add IPv6 support

* Refactor query.go
* Add tests for IPv6
* Enable IPv6 in ``query.go``

0.1 - Initial Naive release

* Got it somehow working
* Gather feedback
## Developing locally

You can test the plugin functionallity with CoreDNS by adding the following to
Expand Down

0 comments on commit b545358

Please sign in to comment.