× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I found some RPG code from Carsten, CBX1065, that could be modified(enhanced) to either create or update /etc/resolv.conf .

https://apimymymy.wordpress.com/

find the TIPSRC download

Bryan



Franz.Rauscher@xxxxxxxxxxx wrote on 4/29/2019 7:06 AM:
Could be so.

IBM told me that you have to configure /etc/resolv.conf for the
name-resolution in the pase-env to work correctly. seems to be documented
somewhere. I should do a RFE.

When you dont have a resolv.conf dig and nslookup try 127.0.0.1
(localhost) which causes a timeout if you dont have a running dns on your
IBMi

Greetings,
Franz



From: "Mihael Schmidt" <mihael@xxxxxxxxxxxxxx>
To: midrange-l@xxxxxxxxxxxxxxxxxx
Date: 26.04.2019 20:18
Subject: Re: nslookup in qsh
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxxxxxxxx>



Some months ago I tried to use some web service using
SYSTOOLS.HTTPGETCLOBVERBOSE and also tried with HTTPAPI service program
from SK. Initially HTTPAPI took way longer than the SQL solution with
SYSTOOLS. Domain name resolving was the issue. The configuration of the
DNS server was not correct. What irritated me then was that the SYSTOOLS
method of calling the web service ignored the name solving issue. It
seemed that it used some other DNS servers for name resolving. Does this
behavior falls in the same category?

Best regards

Mihael


On 26.04.19 09:26, Franz.Rauscher@xxxxxxxxxxx wrote:
yes dig an nslookup have the same behavoir



From: "Bryan Dietz" <bdietz400@xxxxxxxxx>
To: "Midrange Systems Technical Discussion"
<midrange-l@xxxxxxxxxxxxxxxxxx>
Date: 25.04.2019 20:24
Subject: Re: nslookup in qsh
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxxxxxxxx>



Have you opened a PMR?

Seems like a "miss" from IBM.

"dig" and "host" exhibit the same behavior

Bryan




Franz.Rauscher@xxxxxxxxxxx wrote on 4/25/2019 8:37 AM:
i manually added /etc/resolf.conf with the right parameters and now it
works but i dont think that this is a good solution.

so you have two separate configurations. one for the AS400 Environment
and
one for PASE.

Any opinions?

Greetings,
Franz



From: Franz.Rauscher@xxxxxxxxxxx
To: midrange-l@xxxxxxxxxxxxxxxxxx
Date: 25.04.2019 14:32
Subject: nslookup in qsh
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxxxxxxxx>



hi!

i have a strange problem with nslookup when run in qsh or ssh shell.

i have configured my nameserver with cfgtcp

nslookup, when run from command in a normal 5250 session works fast and
as
expected.

when i run the nslookup command in a qsh shell session i get a timeout
with the message:
;; connection timed out; no servers could be reached

when i add my nameserver to the end of the nslookup like this: nslookup
www.ibm.com 172.25.100.1 than it works
why does nslookup when run in the qsh session not query my nameserver
and
how can i find out which nameserver it tries to query.

Greetings,
Franz


My Data: IBM i 7.3 TR5


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.