Infoblox’s global team of threat hunters uncovers a DNS operation with the ability to bypass traditional security measures and control the Great Firewall of China. Read about “Muddling Meerkat” and the many other threat actors discovered by Infoblox Threat Intel here.

API & Integration, DevOps,NetOps,SecOps

Reply

Get Extensible attribute AND limit to a DNS View.

[ Edited ]
New Member
Posts: 2
2264     0

I have a  CURL command that works at the moment to grab the Extensible attribute of a   Diocese, however, I also want to limit that data to a specific DNS view .  We use two, an "internal" and "external" view.

 

This is the curl command:

 

$CURL --tlsv1 --insecure -u "$USERNAME:$PASSWORD" -X GET "https://xxx.xxx.xxx.xxx/wapi/v2.11/zone_auth?_return_fields%2B=extattrs&*Diocese:=$1"

Where $1 is the Diocese name passed by the BASH Script

 

This will return ALL zones that have the matching "Diocese" attribute - I also want to limit this to a DNS view.

I am aware of  view:<viewname> - But I can't work out how to implement that here.

 

Thank you. 

Re: Get Extensible attribute AND limit to a DNS View.

[ Edited ]
Superuser
Posts: 81
2265     0

Hello AFrodsham,

 

Based on the way you're doing this, here's a minor change to accommodate the use-case in your curl request : 

 

$CURL --tlsv1 --insecure -u "$USERNAME:$PASSWORD" -X GET "https://xxx.xxx.xxx.xxx/wapi/v2.11/zone_auth?view=$view_name&_return_fields%2B=extattrs&*Diocese:=$1"

While, $view_name is where the name of your DNS view should be fed. Hope this helps!

 

Best regards,

 

Re: Get Extensible attribute AND limit to a DNS View.

New Member
Posts: 2
2265     0

Thanks Mohammed!     

 

So easy when you see it wrote out! Smiley Happy 

Showing results for 
Search instead for 
Did you mean: 

Recommended for You