-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from kotso/master
Implements Reverse DNS lookup based on netbox
- Loading branch information
Showing
6 changed files
with
176 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# cache, if entry is found it will be saved in the cache and not be | ||
# asked again | ||
|
||
. { | ||
debug | ||
template IN SOA in-addr.arpa { | ||
answer "{{ .Name }} 86400 IN SOA ns1.example.com. sysmasters.example.com. (20230215 3600 600 86400 3600)" | ||
authority "{{ .Name }} 86400 IN NS ns1.example.com." | ||
authority "{{ .Name }} 86400 IN NS ns2.example.com." | ||
fallthrough | ||
} | ||
|
||
netbox { | ||
token 0123456789abcdef0123456789abcdef01234567 | ||
url http://localhost:8000/api/ipam/ip-addresses | ||
fallthrough | ||
} | ||
|
||
cache 300 # see docs for the cache Plugin about config | ||
} | ||
|
||
# To make coredns authoritative for reverse zone you need to have soa record provided by template plugin | ||
# and netbox plugin handled ptr record resolution via netbox api |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters