- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Identify RRs with RFC1918 IPs in Public Authoritative DNS zones
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2019 04:18 AM - edited 01-17-2019 04:19 AM
Hello,
A customer that is centralizing his Public Authorative DNS zones on Infoblox woud like to identify RRs with RFC1918 IPs in Public Authoritative DNS zones.
A single API call allows to do that!
- Postman collection export attached
- details below:
Call
POST https://gm-ip/wapi/v2.9/request
body:
[{
"data": {
"view": "External",
"ipv4addr~": "(^127\\.)|(^10\\.)|(^172\\.1[6-9]\\.)|(^172\\.2[0-9]\\.)|(^172\\.3[0-1]\\.)|(^192\\.168\\.)"
},
"method": "GET",
"object": "record:host"
},
{
"data": {
"view": "External",
"ipv4addr~": "(^127\\.)|(^10\\.)|(^172\\.1[6-9]\\.)|(^172\\.2[0-9]\\.)|(^172\\.3[0-1]\\.)|(^192\\.168\\.)"
},
"method": "GET",
"object": "record:a"
},
{
"data": {
"view": "External",
"ipv4addr~": "(^127\\.)|(^10\\.)|(^172\\.1[6-9]\\.)|(^172\\.2[0-9]\\.)|(^172\\.3[0-1]\\.)|(^192\\.168\\.)"
},
"method": "GET",
"object": "recordtr"
}]
Output:
[
[
{
"_ref": "record:host/ZG5zLmhvc3QkLjQuY29tLmluZm9ibG94LnRlc3RlLXRpZ28:teste.infoblox.com/External",
"ipv4addrs": [
{
"_ref": "record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuNC5jb20uaW5mb2Jsb3gudGVzdGUtdGlnby4xOTIuMTY4LjEuMS4:192.168.1.1/teste.infoblox.com/External",
"configure_for_dhcp": false,
"host": "teste.infoblox.com",
"ipv4addr": "192.168.1.1"
}
],
"name": "teste.infoblox.com",
"view": "External"
}
],
[
{
"_ref": "record:a/ZG5zLmJpbmRfYSQuNC5jb20uaW5mb2Jsb3gsbTIsMTkyLjE2OC4xLjQ:m2.infoblox.com/External",
"ipv4addr": "192.168.1.4",
"name": "m2.infoblox.com",
"view": "External"
}
],
[
{
"_ref": "recordtr/ZG5zLmJpbmRfcHRyJC40LmFycGEuaW4tYWRkci4xMjcuMC4wLjEubG9jYWxob3N0:1.0.0.127.in-addr.arpa/External",
"ptrdname": "localhost",
"view": "External"
}
]
]