- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Search for DNS name that contains...
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2023 01:48 AM - edited 05-30-2023 01:50 AM
Hello,
When in GUI I can search the database and use the filter "DNS name" And the operator "contains" and I can use just a short hostname (no FQDN !) to find all objects matching that contains that short hostname.
Now I want to do the same using a WAPI call, but somehow the WAPI tells me that zone is a mandatory search parameter.
"Error": "AdmConProtoError: zone is a mandatory search parameter for allrecords searches",
I have a bulk list of short hostnames that I need to lookup what type of record it is, as these are all mixed up like A, host and even cname records.
Re: Search for DNS name that contains...
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2023 02:13 PM
I know it's been a while since you posted your question; but I just recently had to do something similar and ended up using the /search object. You can provide the fqdn=xxx field but unlike it's name, it doesn't appear it has to be fully qualified. It's possible to just provide hostname and it will return matches. Not sure this will be of any help to you (might be too late) but wanted to share back. Cheers!
Re: Search for DNS name that contains...
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2023 07:35 PM
Re: Search for DNS name that contains...
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2023 04:15 PM
Hi GreenMotion,
Could you please share your code?
Thanks,
Reza.