APIs and documentation

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 http://looking-glass.aql.com/lookingGlassApi.php?domain=aql.com

A form version of this api is available on the Network Lookup page.

Exit CodeDescription
206Command missing
400Error processing response
401Not authorized
500Internal server error
504Gateway timeout
600Command 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 dependant 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


whoisonPerform whois search
<whois server="whois.internic.net">
<status>clientTransferProhibited http://www.icann.org/epp</status>

Dig query


digonPerform DNS lookup
recordTypeMX,NS,A,CNAME,PTR,TXT,SOA,allDNS record type

Ping query


pingonPerform 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


traceonPerform 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


portscanonPerform 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


220 inderstar3.a-q.co.uk ESMTP Mon, 5 Oct 2015 14:36:13 +0100
<SMTPSession>EHLO aql.com</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>

Back to Documentation and APIs

Follow us on Twitter

Like us on Facebook

Connect to us on LinkedIn

Where we are

13-15 Hunslet Road
LS10 1JQ
Telephone 01133 20 30 40