Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

FTP to server using DNS name

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: FTP to server using DNS name
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

Site Director


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

PostPosted: Wed May 09, 2007 12:10 am    Post subject:
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    Post subject: Re: FTP to server using DNS name
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

Moderator Team Head


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

PostPosted: Wed May 09, 2007 12:45 am    Post subject: Re: FTP to server using DNS name
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    Post subject:
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    Post subject: Re: FTP to server using DNS name
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

Site Director


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

PostPosted: Wed May 09, 2007 7:20 pm    Post subject:
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    Post subject: Reply to: FTP to server using DNS name
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

Senior Member


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

PostPosted: Thu Jun 11, 2009 10:42 pm    Post subject: Reply to: FTP to server using DNS name
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: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Thu Jun 11, 2009 10:45 pm    Post subject:
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    Post subject: Reply to: FTP to server using DNS name
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: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Fri Jun 12, 2009 1:18 am    Post subject:
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    Post subject: Reply to: FTP to server using DNS name
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: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Wed Jun 20, 2012 6:29 pm    Post subject:
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: 686
Location: Earth

PostPosted: Wed Jun 20, 2012 6:54 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Liberty Angel Server using RACF Keyring martin9 CICS 0 Tue May 02, 2017 5:49 pm
No new posts FTP Server and FTP.DATA vasanthz All Other Mainframe Topics 2 Wed Oct 12, 2016 11:49 pm
No new posts FTP from windows server into Mainfram... sathyajes All Other Mainframe Topics 24 Wed Jul 20, 2016 1:33 pm
No new posts How to perform Digest Access Authenti... vasanthz All Other Mainframe Topics 0 Tue Mar 15, 2016 4:47 pm
No new posts Any Mobile Apps use Mainframe Server? jobseeker All Other Mainframe Topics 2 Wed Feb 24, 2016 3:58 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us