IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

FTP to server using DNS name


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Paul Smith

New User


Joined: 08 May 2007
Posts: 3
Location: Maryland

PostPosted: Tue May 08, 2007 11:56 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed May 09, 2007 12:10 am
Reply with quote

Welcome to the forum icon_smile.gif

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
View user's profile Send private message
Paul Smith

New User


Joined: 08 May 2007
Posts: 3
Location: Maryland

PostPosted: Wed May 09, 2007 12:29 am
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed May 09, 2007 12:45 am
Reply with quote

PING or TRACERTE the DNS name and you'll find out.
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Wed May 09, 2007 10:47 am
Reply with quote

In our BATCH JCL we do
Code:
FTP DNSNAME
(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
View user's profile Send private message
Paul Smith

New User


Joined: 08 May 2007
Posts: 3
Location: Maryland

PostPosted: Wed May 09, 2007 5:40 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed May 09, 2007 7:20 pm
Reply with quote

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
View user's profile Send private message
yogeshpawar

New User


Joined: 01 Mar 2006
Posts: 37
Location: Sussex-UK

PostPosted: Thu Jun 11, 2009 9:23 pm
Reply with quote

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
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Thu Jun 11, 2009 10:42 pm
Reply with quote

Quote:
but kept getting command not recognized.

It seems you need to get something added to linklist.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Jun 11, 2009 10:45 pm
Reply with quote

Try TRACERTE -- it's in the SEZALOAD library.
Back to top
View user's profile Send private message
yogeshpawar

New User


Joined: 01 Mar 2006
Posts: 37
Location: Sussex-UK

PostPosted: Fri Jun 12, 2009 1:14 am
Reply with quote

Thanks. TRACERTE command works for me.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Jun 12, 2009 1:18 am
Reply with quote

Glad to hear it's working.
Back to top
View user's profile Send private message
smiley
Warnings : 1

New User


Joined: 08 Feb 2006
Posts: 27

PostPosted: Wed Jun 20, 2012 6:22 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Jun 20, 2012 6:29 pm
Reply with quote

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
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Wed Jun 20, 2012 6:54 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Z Monitoring server fails to start IBM Tools 1
No new posts FTP datasets to server CLIST & REXX 13
No new posts Anyone using the HTTP server, web app... All Other Mainframe Topics 0
No new posts Using Virtual Tape Server TS7700 as c... All Other Mainframe Topics 0
No new posts SMF logging in RDT server - Steps inv... PL/I & Assembler 1
Search our Forums:

Back to Top