Looking Glass API


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:


Exit code Description
206 Command missing
400 Error processing response
401 Not authorized
500 Internal server error
504 Gateway timeout
600 Command not valid

Parameters and values

domain (type string) –
The domain that is to be monitored. This parameter is Optional. Requires a value of a valid domain

ping (type bool) –
calls the ping function, pinging the destination given in the domain parameter. This parameter is Optional. Requires Domain to be set.

dig (type bool) –
calls the dig function to analyse the domain records of domain. The type of record that will be looked up will be dependent on the parameter given in recordType. This parameter is Optional. 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.

portscan (type bool) –
scans common network ports 21,25,80,110 and 143 of the given domain to see if they are open. This parameter is Optional. Requires domain to be set.

emailAddress (type string) –
specifies the email address that is to be analysed. This parameter is Optional.

Whois query


Parameter Value Description
whois On Perform whois search


<whois server=”whois.internic.net”>
<status>clientTransferProhibited http://www.icann.org/epp</status><updatedDate>29-oct-2014</updatedDate>


Dig query


Parameter Value Description
dig On Perform DNS lookup
recordType MX,NS,A,CNAME,PTR,TXT,SOA,all DNS record type


Ping query


Parameter Value Description
ping On Perform ping

<packet1 icmp_req=”1″ ttl=”62″ rtt=”6.92″ from=”″/>
<packet2 icmp_req=”2″ ttl=”62″ rtt=”6.43″ from=”″/>
<packet3 icmp_req=”3″ ttl=”62″ rtt=”6.22″ from=”″/>
<packet4 icmp_req=”4″ ttl=”62″ rtt=”6.29″ from=”″/>
<packet5 icmp_req=”5″ ttl=”62″ rtt=”6.83″ from=”″/>
<stats packetsSent=”5″ packetsReceived=”5″ packetLoss=”0″ time=”4004″/>

Trace query


Parameter Value Description
trace On Perform trace

<traceRoute TraceTo=”aql.com”/>
<traceRoute hop1=”traceroute to (, 30 hops max, 60 byte packets “/>
<traceRoute hop2=”rt.the.aql.com ( 2.706 ms 2.663 ms 2.652 ms”/>
<traceRoute hop3=”unassigned.aql.com ( 7.691 ms 7.700 ms 7.713 ms”/>
<traceRoute hop4=”rt1.hex.aql.com ( 9.036 ms 9.037 ms 9.029 ms”/>

Portscan query


Parameter Value Description
portscan On Perform portscan

HTTP/1.1 200 OK
Date: Mon, 05 Oct 2015 13:32:15 GMT
Server: Apache
Set-Cookie: PHPSESSID=d34d5d1fda4372c6abd684a699acfa6f; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Content-Type: text/html; charset=iso-8859-1

Email query


<SMTPSession>220 inderstar3.a-q.co.uk ESMTP Mon, 5 Oct 2015 14:36:13 +0100
<SMTPSession>EHLO aql.com</SMTPSession>
<SMTPSession>250-inderstar3.a-q.co.uk Hello service.aql.com [], pleased to meet you
<SMTPSession>250 HELP</SMTPSession>
<SMTPSession>MAIL FROM: <looking-glass@uk.aql.com></SMTPSession>
<SMTPSession>250 2.1.0 <looking-glass@uk.aql.com>… Sender ok</SMTPSession>
<SMTPSession>RCPT TO:<support@aql.com></SMTPSession>
<SMTPSession>553 5.3.0 <support@aql.com>… >support<@aql.com.</SMTPSession>
<SMTPSession>250 2.0.0 Reset state</SMTPSession>
<SMTPSession>221 2.0.0 inderstar3.a-q.co.uk closing connection</SMTPSession>