Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Does the WAPI strip whitespace in response?
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2024 07:51 AM
557     0
The name of a delegated server for some zones in our Infoblox contain an extra space at the end. e.g. 10.0.0.0/24 is delegated to "something.example.com "
Notice the trailing space added by mistake.
When a slave running bind downloads this zone, the check-names option gives error
Apr 12 12:50:15 randomServer named[53664]: zone 10.in-addr.arpa/IN: 0.0.10.in-addr.arpa : something.example.com\032: bad name (check-names)
But the API response does not contain this extra space so I am not able to filter faulty ones out from all our delegated zones:
{'_ref': 'zone_delegated/blahBlah:10.0.0.0%2F24/viewName', 'delegate_to': [{'address': '255.255.255.255', 'name': 'something.example.com'}], 'fqdn': '10.0.0.0/24', 'view': 'viewName'}
Is the API stripping this trailing space?
Any way I can stop it from happening?