Jeff Brown writes:
> We use MPE 5.5 and the FTP.ARPA.SYS program. Our site has a domain name
> server and our FTP "PUT" and "GET" actions connect to a remote host
> using the domain name (e.g., host1.pnl.gov).
>
> On our test system only I would like to redirect the "PUT" and "GET"
> actions without having to change the hardcoded domain names in batch
> jobs. I.E., if the batch job transmits a file to host1.pnl.gov I'd like
> it to actually go to test1.pnl.gov.
>
> Is this possible? How hard to accomplish?
Maybe. Easy.
> What would it take? Or where should I look to see how?
Add the IP address for test1.pnl.gov to HOSTS.NET.SYS and give it a name of
host1.pnl.gov.
Make sure that /etc/hosts exists as a symbolic link pointing to /SYS/NET/HOSTS.
I know that the BIND/iX resolver routines will first look in /etc/hosts before
trying DNS. But I've never tested this with the vanilla HP resolver routines
used by FTP.ARPA.SYS (i.e. hpgethostbyname).
--
Mark Bixby E-mail: [log in to unmask]
Coast Community College Dist. Web: http://www.cccd.edu/~markb/
District Information Services 1370 Adams Ave, Costa Mesa, CA, USA 92626-5429
Technical Support Voice: +1 714 438-4647
"You can tune a file system, but you can't tune a fish." - tunefs(1M)