Yes - it's a little go application. The first part of the link (8080 portion) is where the application is running. We have it running on a linux box with some other applications, but I would think it would run anywhere go will.
On Thu, 2021-07-08 at 19:47 +0000, Rob Berendt wrote:
I tried a few links just in a browser and they never connect
http://127.0.0.1:8080/127.0.0.1:53/x/10.10.6.33
http://10.10.4.250:8080/10.10.4.250:53/x/10.10.6.33
http://127.0.0.1:8080/10.10.4.250:53/x/10.10.6.33
http://10.10.4.250:53/x/10.10.6.33
Now, I suppose I have to read the suggested links to find out what setup is necessary?
10.10.4.250 is one of our dns servers.
10.10.6.33 is one of our known dns entries. (an lpar of IBM i)
Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1
Group Dekko
Dept 1600
Mail to: 7310 Innovation Blvd, Suite 104
Ft. Wayne, IN 46818
Ship to: 7310 Innovation Blvd, Dock 9C
Ft. Wayne, IN 46818
http://www.dekko.com
-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx<mailto:midrange-l-bounces@xxxxxxxxxxxxxxxxxx>> On Behalf Of Kevin Bucknum
Sent: Thursday, July 8, 2021 2:55 PM
To: midrange-l@xxxxxxxxxxxxxxxxxx<mailto:midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: SQL interface to DIG/NSLOOKUP
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
The 8080 is the service running internally. It can be started on any port. The next part tells it what dns server to use.
Making Queries
The following examples assume there is a resolver on localhost listening on port 53.
<
https://github.com/fcambus/rrda#getting-resources-records>Getting Resources Records
URL Scheme:
http://server:port/resolver:port/domain/querytype
* Example (using an IPv4 resolver):
http://127.0.0.1:8080/127.0.0.1:53/example.org/ns
* Example (using an IPv6 resolver):
http://127.0.0.1:8080/[::1]:53/example.org/ns<
http://127.0.0.1:8080/%5B::1%5D:53/example.org/ns>
<
https://github.com/fcambus/rrda#getting-reverse-ptr-records-for-both-ipv4-and-ipv6-addresses>Getting Reverse PTR Records (for both IPv4 and IPv6 addresses)
URL Scheme:
http://server:port/resolver:port/x/ip
* Example (IPv4):
http://127.0.0.1:8080/127.0.0.1:53/x/193.0.6.139
* Example (IPv6):
http://127.0.0.1:8080/127.0.0.1:53/x/2001:67c:2e8:22::c100:68b
On Thu, 2021-07-08 at 18:39 +0000, Rob Berendt wrote:
Do all DNS servers, including your average Windows domain controller, support that 8080 port on http?
Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1
Group Dekko
Dept 1600
Mail to: 7310 Innovation Blvd, Suite 104
Ft. Wayne, IN 46818
Ship to: 7310 Innovation Blvd, Dock 9C
Ft. Wayne, IN 46818
http://www.dekko.com
-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx<mailto:midrange-l-bounces@xxxxxxxxxxxxxxxxxx><mailto:midrange-l-bounces@xxxxxxxxxxxxxxxxxx<mailto:midrange-l-bounces@xxxxxxxxxxxxxxxxxx>>> On Behalf Of Kevin Bucknum
Sent: Thursday, July 8, 2021 2:26 PM
To: midrange-l@xxxxxxxxxxxxxxxxxx<mailto:midrange-l@xxxxxxxxxxxxxxxxxx><mailto:midrange-l@xxxxxxxxxxxxxxxxxx<mailto:midrange-l@xxxxxxxxxxxxxxxxxx>>
Subject: Re: SQL interface to DIG/NSLOOKUP
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
No but you could point to internal. I just pointed to google for this example out of habit.
On Thu, 2021-07-08 at 18:07 +0000, Rob Berendt wrote:
Based on this:
'
http://172.24.1.36:8080/8.8.8.8:53
I'm assuming that this would not work for doing a nslookup on internal dns entries, right?
Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1
Group Dekko
Dept 1600
Mail to: 7310 Innovation Blvd, Suite 104
Ft. Wayne, IN 46818
Ship to: 7310 Innovation Blvd, Dock 9C
Ft. Wayne, IN 46818
http://www.dekko.com
-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx<mailto:midrange-l-bounces@xxxxxxxxxxxxxxxxxx><mailto:midrange-l-bounces@xxxxxxxxxxxxxxxxxx<mailto:midrange-l-bounces@xxxxxxxxxxxxxxxxxx>><mailto:midrange-l-bounces@xxxxxxxxxxxxxxxxxx<mailto:midrange-l-bounces@xxxxxxxxxxxxxxxxxx><mailto:midrange-l-bounces@xxxxxxxxxxxxxxxxxx<mailto:midrange-l-bounces@xxxxxxxxxxxxxxxxxx>>>> On Behalf Of Kevin Bucknum
Sent: Thursday, July 8, 2021 1:00 PM
To: midrange-l@xxxxxxxxxxxxxxxxxx<mailto:midrange-l@xxxxxxxxxxxxxxxxxx><mailto:midrange-l@xxxxxxxxxxxxxxxxxx<mailto:midrange-l@xxxxxxxxxxxxxxxxxx>><mailto:midrange-l@xxxxxxxxxxxxxxxxxx<mailto:midrange-l@xxxxxxxxxxxxxxxxxx><mailto:midrange-l@xxxxxxxxxxxxxxxxxx<mailto:midrange-l@xxxxxxxxxxxxxxxxxx>>>
Subject: Re: SQL interface to DIG/NSLOOKUP
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
I'll second that. We have a little program that presents a rest api for dns type stuff. I've never really used the reverse stuff, but it works. Looks like it mostly returns a ptr record however. Not sure if that is what you are looking for.
https://github.com/fcambus/rrda is what we run, and combining it with a query we use to monitory for SSL 5250 connections looks like this.
WITH netstat AS (
SELECT *
FROM QSYS2.NETSTAT_INFO
WHERE local_port = 992
)
SELECT DISTINCT
(
SELECT COALESCE(
JSON_VALUE(httpresponse.responsemsg,
'$.answer.rdata' RETURNING VARCHAR(256)),
JSON_VALUE(httpresponse.responsemsg, '$.message' RETURNING VARCHAR(256)))
FROM TABLE (
SYSTOOLS.HTTPGETCLOBVERBOSE(
URL => CAST(
'
http://172.24.1.36:8080/8.8.8.8:53/x/' CONCAT
TRIM(netstat.remote_address) AS VARCHAR(255)),
HTTPHEADER => CAST(
'<httpHeader includeErrorMsg = "true"></httpHeader>' AS CLOB(1K)))) AS httpresponse) AS dns_lookup,
netstat.remote_address
FROM netstat
;
Gives me this
Some name that ought to exist, does not exist (NXDOMAIN) ::
068-117-204-187.res.spectrum.com. 68.117.204.187
Some name that ought to exist, does not exist (NXDOMAIN) 170.249.188.136
Some name that ought to exist, does not exist (NXDOMAIN) 172.24.1.226
wsip-70-183-112-48.no.no.cox.net. 70.183.112.48
45-25-16-60.lightspeed.nworla.sbcglobal.net. 45.25.16.60
Some name that ought to exist, does not exist (NXDOMAIN) 99.96.108.75
Some name that ought to exist, does not exist (NXDOMAIN) 192.168.2.140
Some name that ought to exist, does not exist (NXDOMAIN) 69.85.247.234
wsip-24-252-232-166.no.no.cox.net. 24.252.232.166
Some name that ought to exist, does not exist (NXDOMAIN) 10.2.7.115
107-195-140-211.lightspeed.nworla.sbcglobal.net. 107.195.140.211
66-208-198-233-Memphis.hfc.comcastbusiness.net. 66.208.198.233
104-56-70-137.lightspeed.nworla.sbcglobal.net. 104.56.70.137
Some name that ought to exist, does not exist (NXDOMAIN) 0.0.0.0
Some name that ought to exist, does not exist (NXDOMAIN) 172.24.1.225
99-188-191-112.lightspeed.brhmal.sbcglobal.net. 99.188.191.112
On Thu, 2021-07-08 at 10:10 -0500, David Gibbs via MIDRANGE-L wrote:
On 7/8/21 7:59 AM, Larry "DrFranken" Bolhuis wrote:
Is anyone aware of a way to translate an IP address returned by SQL to
its FQDN?
Although I haven't tried any of them, there are a number of web services
that offer DNS lookup's that should be relatively easy to consume from
SQL.
Here's one:
https://dns-lookup.whoisxmlapi.com/api
david
--
I'm riding in the American Diabetes Association's Tour de Cure to raise
money for diabetes research, education, advocacy, and awareness. You
can make a tax-deductible donation to my ride by visiting
https://mideml.diabetessucks.net.
You can see where my donations come from by visiting my interactive
donation map ...
https://mideml.diabetessucks.net/map (it's a geeky thing).
[
https://www.medtronsoftware.com/img/MedtronMinilogo.bmp] Kevin Bucknum
Senior Programmer Analyst
MEDDATA / MEDTRON
120 Innwood Drive
Covington LA 70433
Local: 985-893-2550
Toll Free: 877-893-2550
https://www.medtronsoftware.com
CONFIDENTIALITY NOTICE
This document and any accompanying this email transmission contain confidential information, belonging to the sender that is legally privileged. This information is intended only for the use of the individual or entity named above. The authorized recipient of this information is prohibited from disclosing this information to any other party and is required to destroy the information after its stated need has been fulfilled. If you are not the intended recipient, or the employee of agent responsible to deliver it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or action taken in reliance on the contents of these documents is STRICTLY PROHIBITED. If you have received this email in error, please notify the sender immediately to arrange for return or destruction of these documents.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx<mailto:MIDRANGE-L@xxxxxxxxxxxxxxxxxx><mailto:MIDRANGE-L@xxxxxxxxxxxxxxxxxx<mailto:MIDRANGE-L@xxxxxxxxxxxxxxxxxx>><mailto:MIDRANGE-L@xxxxxxxxxxxxxxxxxx<mailto:MIDRANGE-L@xxxxxxxxxxxxxxxxxx><mailto:MIDRANGE-L@xxxxxxxxxxxxxxxxxx<mailto:MIDRANGE-L@xxxxxxxxxxxxxxxxxx>>>
To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx<mailto:MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx><mailto:MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx<mailto:MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx>><mailto:MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx<mailto:MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx><mailto:MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx<mailto:MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx>>>
Before posting, please take a moment to review the archives
at
https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx<mailto:support@xxxxxxxxxxxxxxxxxxxx><mailto:support@xxxxxxxxxxxxxxxxxxxx<mailto:support@xxxxxxxxxxxxxxxxxxxx>><mailto:support@xxxxxxxxxxxxxxxxxxxx<mailto:support@xxxxxxxxxxxxxxxxxxxx><mailto:support@xxxxxxxxxxxxxxxxxxxx<mailto:support@xxxxxxxxxxxxxxxxxxxx>>> for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
https://amazon.midrange.com
[
https://www.medtronsoftware.com/img/MedtronMinilogo.bmp] Kevin Bucknum
Senior Programmer Analyst
MEDDATA / MEDTRON
120 Innwood Drive
Covington LA 70433
Local: 985-893-2550
Toll Free: 877-893-2550
https://www.medtronsoftware.com
CONFIDENTIALITY NOTICE
This document and any accompanying this email transmission contain confidential information, belonging to the sender that is legally privileged. This information is intended only for the use of the individual or entity named above. The authorized recipient of this information is prohibited from disclosing this information to any other party and is required to destroy the information after its stated need has been fulfilled. If you are not the intended recipient, or the employee of agent responsible to deliver it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or action taken in reliance on the contents of these documents is STRICTLY PROHIBITED. If you have received this email in error, please notify the sender immediately to arrange for return or destruction of these documents.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx<mailto:MIDRANGE-L@xxxxxxxxxxxxxxxxxx><mailto:MIDRANGE-L@xxxxxxxxxxxxxxxxxx<mailto:MIDRANGE-L@xxxxxxxxxxxxxxxxxx>>
To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx<mailto:MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx><mailto:MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx<mailto:MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx>>
Before posting, please take a moment to review the archives
at
https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx<mailto:support@xxxxxxxxxxxxxxxxxxxx><mailto:support@xxxxxxxxxxxxxxxxxxxx<mailto:support@xxxxxxxxxxxxxxxxxxxx>> for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
https://amazon.midrange.com
[
https://www.medtronsoftware.com/img/MedtronMinilogo.bmp] Kevin Bucknum
Senior Programmer Analyst
MEDDATA / MEDTRON
120 Innwood Drive
Covington LA 70433
Local: 985-893-2550
Toll Free: 877-893-2550
https://www.medtronsoftware.com
CONFIDENTIALITY NOTICE
This document and any accompanying this email transmission contain confidential information, belonging to the sender that is legally privileged. This information is intended only for the use of the individual or entity named above. The authorized recipient of this information is prohibited from disclosing this information to any other party and is required to destroy the information after its stated need has been fulfilled. If you are not the intended recipient, or the employee of agent responsible to deliver it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or action taken in reliance on the contents of these documents is STRICTLY PROHIBITED. If you have received this email in error, please notify the sender immediately to arrange for return or destruction of these documents.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx<mailto:MIDRANGE-L@xxxxxxxxxxxxxxxxxx>
To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx<mailto:MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx>
Before posting, please take a moment to review the archives
at
https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx<mailto:support@xxxxxxxxxxxxxxxxxxxx> for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
https://amazon.midrange.com
[
https://www.medtronsoftware.com/img/MedtronMinilogo.bmp] Kevin Bucknum
Senior Programmer Analyst
MEDDATA / MEDTRON
120 Innwood Drive
Covington LA 70433
Local: 985-893-2550
Toll Free: 877-893-2550
https://www.medtronsoftware.com
CONFIDENTIALITY NOTICE
This document and any accompanying this email transmission contain confidential information, belonging to the sender that is legally privileged. This information is intended only for the use of the individual or entity named above. The authorized recipient of this information is prohibited from disclosing this information to any other party and is required to destroy the information after its stated need has been fulfilled. If you are not the intended recipient, or the employee of agent responsible to deliver it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or action taken in reliance on the contents of these documents is STRICTLY PROHIBITED. If you have received this email in error, please notify the sender immediately to arrange for return or destruction of these documents.
As an Amazon Associate we earn from qualifying purchases.