Looking Glass
Introduction
The Looking Glass API is for checking domains and email addresses. You do not have to be logged in to use this facility.
The API endpoint can be reached at:
http://looking-glass.aql.com/lookingGlassApi.php?domain=aql.com
| Exit Code | Description |
|---|---|
| Exit Code: 206 | Description: Command missing |
| Exit Code: 00 | Description: Error processing response |
| Exit Code: 401 | Description: Not authorized |
| Exit Code: 500 | Description: Internal server error |
| Exit Code: 504 | Description: Gateway timeout |
| Exit Code: 600 | Description: Command not valid |
Parameters and Values
domain (type string)
The domain that is to be monitored. This parameter is optional and requires a value of a valid domain.
dig (type bool)
Calls the ping function, pinging the destination given in the domain parameter. This parameter is optional and requires domain to be set.
recordType (type string)
Defines the record that is to be looked up. The default is A. If dig is set then this parameter is mandatory.
emailAddress (type string)
Specifies the email address that is to be analysed. This parameter is optional.
WHOIS Query
domain=aql.com&whois=on
| Parameter | Value | Description |
|---|---|---|
| Parameter: whois | Value: On | Description: Perform WHOIS search |
<response>
<Address>
<IP>194.145.189.106</IP>
<DomainName>aql.com</DomainName>
</Address>
<whois server="whois.internic.net">
<domainName>AQL.COM</domainName>
<registrar>
CSL COMPUTER SERVICE LANGENBACH GMBH D/B/A JOKER.COM
</registrar>
<whoisServer>whois.joker.com</whoisServer>
<referralUrl>http://www.joker.com</referralUrl>
<nameServer>NS0.AQ.NET.UK</nameServer>
<nameServer>NS1.AQ.NET.UK</nameServer>
<nameServer>NS2.AQ.NET.UK</nameServer>
<nameServer>NS3.AQ.NET.UK</nameServer>
<status>clientTransferProhibited http://www.icann.org/epp</status>
<updatedDate>29-oct-2014</updatedDate>
<creationDate>10-nov-1997</creationDate>
<expirationDate>09-nov-2020</expirationDate>
</whois>
</response>
Dig Query
domain=aql.com&dig=on&recordType=MX
| Parameter | Value | Description |
|---|---|---|
| Parameter: dig | Value: On | Description: Perform DNS lookup |
| Parameter: recordType | Value: MX,NS,A,CNAME,PTR,TXT,SOA,all | Description: DNS record type |
<response>
<Address>
<IP>194.145.189.106</IP>
<DomainName>aql.com</DomainName>
</Address>
<Dig>
<MX>
<host>aql.com</host>
<pri>0</pri>
<target>inderstar3.a-q.co.uk</target>
<class>IN</class>
<ttl>600</ttl>
</MX>
</Dig>
</response>
Trace Query
domain=aql.com&trace=on
| Parameter | Value | Description |
|---|---|---|
| Parameter: trace | Value: On | Description: Perform trace |
<response>
<Address>
<IP>194.145.189.106</IP>
<DomainName>aql.com</DomainName>
</Address>
<traceRoute>
<traceRoute TraceTo="aql.com"/>
<traceRoute hop1="traceroute to 194.145.189.106 (194.145.189.106), 30 hops max, 60 byte packets "/>
<traceRoute hop2="rt.the.aql.com (194.145.190.1) 2.706 ms 2.663 ms 2.652 ms"/>
<traceRoute hop3="unassigned.aql.com (194.145.188.182) 7.691 ms 7.700 ms 7.713 ms"/>
<traceRoute hop4="rt1.hex.aql.com (194.145.189.246) 9.036 ms 9.037 ms 9.029 ms"/>
</traceRoute>
</response>
Email Query
<response>
<EmailCheck>
<preference>0</preference>
<exchange>inderstar3.a-q.co.uk</exchange>
<ip>78.40.242.17</ip>
<SMTPSession>220 inderstar3.a-q.co.uk ESMTP Mon, 5 Oct 2015 14:36:13 +0100</SMTPSession>
<SMTPSession>EHLO aql.com</SMTPSession>
<SMTPSession>250-inderstar3.a-q.co.uk Hello service.aql.com [109.239.103.15], pleased to meet you</SMTPSession>
<SMTPSession>250-ENHANCEDSTATUSCODES</SMTPSession>
<SMTPSession>250-PIPELINING</SMTPSession>
<SMTPSession>250-8BITMIME</SMTPSession>
<SMTPSession>250-SIZE</SMTPSession>
<SMTPSession>250-DSN</SMTPSession>
<SMTPSession>250-ETRN</SMTPSession>
<SMTPSession>250-DELIVERBY</SMTPSession>
<SMTPSession>250 HELP</SMTPSession>
<SMTPSession>MAIL FROM: <[email protected]></SMTPSession>
<SMTPSession>250 2.1.0 <[email protected]>… Sender ok</SMTPSession>
<SMTPSession>RCPT TO:<[email protected]></SMTPSession>
<SMTPSession>553 5.3.0 <[email protected]>… >support<@aql.com.</SMTPSession>
<SMTPSession>RSET</SMTPSession>
<SMTPSession>250 2.0.0 Reset state</SMTPSession>
<SMTPSession>QUIT</SMTPSession>
<SMTPSession>221 2.0.0 inderstar3.a-q.co.uk closing connection</SMTPSession>
</EmailCheck>
</response>