Link to home
Start Free TrialLog in
Avatar of nelson97
nelson97

asked on

Info On Unix Box: Adding DNS and using telnet commands

Not too familiar with Unix, have had limited experience with it.  Here are my questions:

1.  How can I add our DNS address to that box.  I see where I can add the IP address, but that's it on that particular screen.

2.  I understand I can't use telnet commands to transfer a file from that unix box to my machine or other machines.  I have to use ssh/scp?  

Please advise.
Avatar of nodisco
nodisco
Flag of New Zealand image

1 What operating system of Unix is it - SCO, HP, AIX?
Do you mean you want to add your DNS suffix to the machine name - e.g. unixbox.yourdomain.com

2 You can use ftp to most unix boxes - ftpd runs on most of these and will allow incoming connections by default
e.g.

From PC

ftp <ip of unix box>

Login as root and its password

cd /u           changes directory on unix box to /u
lcd c:\windows          changes local directory to c:\windows
get filename             ftps filename from unix to pc
close                       close connection
bye                         ends ftp session


Avatar of nelson97
nelson97

ASKER

Hi Nodisco, sorry I forgot to mention that the FTP function doesn't appear to work.  That's why I was trying to see other ways to transfer files. Also, I wanted to add the dns IP address.

The os is Irix.

Thanks
nelson

I have never even seen an Irix box before so I'm afraid I can't help you.  Hopefully someone else will be able to assist
1. you need to change the bind configuration files, usually found in /var/named and /etc/named.conf
2. ssh is to connect interactively using a shell (replacement of telnet)
   scp is to copy files from/to the remote system
What do you want to perform:
- Add a DNS server on your Irix box? Or just make it DNS-aware?
 o To create a DNS server you will have to put zone files in /var/named, create a /etc/named.boot (or /etc/named.conf) file etc.
 o To make it DNS-aware (setiing up DNS client), create a file /etc/resolv.conf with these contents
      domain         my-domain.com
      nameserver  ip-address-of-primary-DNS-server
      nameserver  ip-address-of-secondary-DNS-server
If FTP is not working (what does that mean?) you may want to use ssh's (Secure Shell) sftp (secure tfp) or scp (secure copy) option
I want to make it dns aware.  I installed putty program on my machine to see if I can access it using ssh but haven't had any luck.  I've never used this program.  I entered in the ip to connect to and ran this command at the field where it says "Remote Command' in the SSH section:  ssh root@iris.   The dos window comes up but I get a Fatal Connection Refused message.

 
If there is no "sshd" server process (ssh daemon) running on your server, you will not be able to connect
Have you tried using telnet instead?
Whan you say "my machine" you mean a windoze PC?

You may also try: Start -> Run -> "telnet  server-address"
Yes, windows.  I can telnet to it just fine.  But it's getting files copied from that unix box to my machine I'm having trouble with.
How do you copy files? Which command? What happens?
You will have to use (in a DOS box) ftp to connect to your server

Inside of FTP:
dir    shows what files you have
get   copies (gets) a file from your server to your PC
put   copies a file from your PC to the server
cd    allows you to change the directory on server side
lcd   changes directory on your PC
bin   switches file transfer mode to binary (not text files)
bye  leaves ftp program

You may also want to install (and use) WSFTP or the like on Windoze
I can't connect using ftp.  It says Host Unreachable.  Although I can telnet to it.  I was able to ftp to it up until a few days ago.
if you can telnet to it, simpley start ftp there and connect to your other host to fetch the files you need
ASKER CERTIFIED SOLUTION
Avatar of Hanno P.S.
Hanno P.S.
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I was able to telnet to the Unix box and verify I can ftp to itself.  I've downloaded and installed cerburus and verified I can ftp to my machine from the unix box.  So basically from my machine, I am telnetting to the unix box, then ftp'ing to my machine.  

When I'm connected to my machine via ftp from unix, I can't seem to transfer unix files over.  It says no such file or directory.  Here are the steps I've taken:

1.  telnet to unix from my machine (windows)
2.  go the the target directory in unix
3.  ftp to my machine
4.  lcd c:\transfer  ( Error: no such file or directory)
4.  tried:   put display1.jpg and get display1.jpg.

I've created a folder on my root C: called Transfer to put these files into.
What am I missing here?

Thanks
> lcd c:\transfer
no.
you're on UNIX, hence lcd is on UNIX box, while cd is on remote windows box
I've tried cd c:\transfer and says Path does not exist.  
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial