View previous topic :: View next topic
|
Author |
Message |
Paul Smith
New User
Joined: 08 May 2007 Posts: 3 Location: Maryland
|
|
|
|
Is there a way to ftp a file from TSO/ISPF to a server using the fully qualified DNS name instead of the IP address of the server? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Welcome to the forum
Will running the ftp in batch do what you want?
You should be able to use the name rather than the ip.address.nodes so long as your mainframe is set up to use DNS (several that i've worked with are not). |
|
Back to top |
|
|
Paul Smith
New User
Joined: 08 May 2007 Posts: 3 Location: Maryland
|
|
|
|
Thanks for the quick response. This is a batch job. I'm using the ftp facility as the second step in a proc. The first statement in my ftp source is "open 99.99.999.99" Just plugging in the DNS name doesn't fly (I figured it wouldn't, but gave it a shot). I don't know if the M/F is set up to use DNS. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
PING or TRACERTE the DNS name and you'll find out. |
|
Back to top |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
In our BATCH JCL we do
(Ftp server name) and not the IP Address. This is bcos the IP address changes occasionally and hence we use DNS name.
Instead of doing
Quote: |
open 99.99.999.99" |
directly connect using FTP DNSNAME and see what happens. |
|
Back to top |
|
|
Paul Smith
New User
Joined: 08 May 2007 Posts: 3 Location: Maryland
|
|
|
|
I tried ping, tracerte and ftp "servername" but kept getting command not recognized. This server has a dynamic ip address, but our network people are supposed to assign it a static one, so that should fix the problem.
If anybody has any other suggestions, I'll try them just for my own information.
Thanks for the help |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
On your pc, go to start, run, and enter command.com. At the drive:\> prompt, enter ping dnsname or ip.address.nodes and hit enter. Your pc should have DNS available.
Once that works, try the same thing from your mainframe ftp job. Your location may not support ping/tracert from a mainframe session.
You might ask your support people if they have DNS working for the mainframe. It may be that you need to add something to your batch job.
If they don't set up a static ip address and they don't support DNS, you may need to pull the data from the other end rather than push it from the mainframe. |
|
Back to top |
|
|
yogeshpawar
New User
Joined: 01 Mar 2006 Posts: 37 Location: Sussex-UK
|
|
|
|
Hi Dick,
Is it possible to give TRACERT kind of commands from mainframe command option?
If TRACERT does not work then what other commands can be used? |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Quote: |
but kept getting command not recognized. |
It seems you need to get something added to linklist. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Try TRACERTE -- it's in the SEZALOAD library. |
|
Back to top |
|
|
yogeshpawar
New User
Joined: 01 Mar 2006 Posts: 37 Location: Sussex-UK
|
|
|
|
Thanks. TRACERTE command works for me. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Glad to hear it's working. |
|
Back to top |
|
|
smiley Warnings : 1 New User
Joined: 08 Feb 2006 Posts: 27
|
|
|
|
hi,
I am facing the same issue for doing an FTP from Mainframe to another system using DNS Name. I tried pinging to the server with both IP and the DNS as mentioned above. It worked fine with the IP but DNS I am getting an error unknown server.
1) How to check whether the Mainframe system is compatable with the DNS
2) Is there any parameters that we need to set for using the DNS NAME IN jobs. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
1, As long as your machine is using z/OS or OS/390, it is compatible with DNS -- the TCP/IP set up for these operating systems includes DNS support.
2. You need to check with your site support group -- there are TCP/IP set up parameters that must be set correctly in order for DNS to work on your mainframe. Not all mainframes are set up to use DNS, and the DNS used can be either based on the mainframe or based on a DNS server in your network. Which, if any, is set up -- only your site support group (or somebody else working at your site) can tell you. If your site is not set up to use DNS, there's no parameter I'm aware of that you can set in your job to use DNS. |
|
Back to top |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
I think the terminology used by OP is little odd. The correct term is FQDN.
(DNS - Domain Name Server translates the FQDN to its corresponding IP address.)
Why would you expect to reach the intended ftp server by using DNS address?
I agree with Robert's suggestion to check with site support group to translate the hardcoded ip address to a FQDN. Alternative approach that may work in some cases is to try to connect to the server using hardcoded IP and pay attention 220 messages that show the sitename.
Code: |
H:\>ftp 999.999.1.999
Connected to 999.999.1.999.
220-FTPD1 IBM FTP CS V1R12 at test.ftpservername.com, 09:15:56 on 2012-06-20.
220 Connection will close if idle for more than 5 minutes. |
You may be able to use test.ftpservername.com instead of IP address. |
|
Back to top |
|
|
|