Supported Input Formats

FQDN input variable can be sent to API in different forms, such as punycode, unicode, lower-case and upper-case. Multiple DNS types can be given to get multiple types in a single request.

Examples of Supported Input Formats

Domain in punycode form

$ curl https://api.deepinfo.com/v1/lookup/dns?domain=xn--deepinfo-s0e.com?type=A (deepİnfo.com)
https://api.deepinfo.com/v1/lookup/dns?domain=xn--deepinfo-s0e.com?type=A (deepİnfo.com)

Domain in unicode form

$ curl https://api.deepinfo.com/v1/lookup/dns?domain=deep%c4%b0nfo.com?type=A (deepİnfo.com)
https://api.deepinfo.com/v1/lookup/dns?domain=deep%c4%b0nfo.com?type=A (deepİnfo.com)

Domain in punycode form with subdomain

$ curl https://api.deepinfo.com/v1/lookup/dns?domain=www.xn--deepinfo-s0e.com?type=A (www.deepİnfo.com)
https://api.deepinfo.com/v1/lookup/dns?domain=www.xn--deepinfo-s0e.com?type=A (www.deepİnfo.com)

Domain in Unicode form with subdomain

$ curl https://api.deepinfo.com/v1/lookup/dns?domain=www.deep%c4%b0nfo.com?type=A (www.deepİnfo.com)
curl https://api.deepinfo.com/v1/lookup/dns?domain=www.deep%c4%b0nfo.com?type=A (www.deepİnfo.com)

Upper-cased domain in punycode form

$ curl https://api.deepinfo.com/v1/lookup/dns?domain=xn--DEEPINFO-s0e.COM?type=A
https://api.deepinfo.com/v1/lookup/dns?domain=xn--DEEPINFO-s0e.COM?type=A

Upper-cased domain in Unicode form

$ curl https://api.deepinfo.com/v1/lookup/dns?domain=%C5%9EEHIR.COM?type=A
https://api.deepinfo.com/v1/lookup/dns?domain=%C5%9EEHIR.COM?type=A

Upper-cased domain in punycode form with subdomain

$ curl https://api.deepinfo.com/v1/lookup/dns?domain=WWW.xn--DEEPINFO-s0e.COM?type=A (WWW.DEEPİNFO.COM)
https://api.deepinfo.com/v1/lookup/dns?domain=WWW.xn--DEEPINFO-s0e.COM?type=A (WWW.DEEPİNFO.COM)

Upper-cased domain in Unicode form with subdomain

$ curl https://api.deepinfo.com/v1/lookup/dns?domain=WWW.DEEP%c4%b0NFO.COM?type=A
https://api.deepinfo.com/v1/lookup/dns?domain=WWW.DEEP%c4%b0NFO.COM?type=A

Did this page help you?