Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google site



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

Closed Thread
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-07-2002
Registered User
 

Join Date: Mar 2002
Posts: 44
TCP/IP name resolution

We have 2 Unix boxes.

AIX 4.3 RS/6000
Linux RedHat 6.1 Intel

There is a name server running on the linux machine. This is not used on the AIX machine ( it simply uses /etc/hosts ).

Now i have rsh permission denied problems and i suspect our AIX and tcp/ip name resolution.
I was told to login from the client to the server and run "last | head" to see what hostname the server is seeing.

First case: from LINUX to AIX ( rsh from linux to AIX works fine )
/bunolleken/users/joeri> last | head
joeri pts/20 linuxnol May 07 10:48 still logged in.

Hostname is "linuxnol". I have put this in /etc/hosts.equiv. everything OK

Second case: from AIX to LINUX ( rsh gives permission denied )
( last -a | head )
joeri pts/2 Tue May 7 10:51 still logged in ibm250.nollekens.be.220.4.125.in-addr.arpa

Hostname is "ibm250.nollekens.be.220.4.125.in-addr.arpa".
Weird name. It should simply be "ibm250"

Like i said. There i NO nameserver active on the AIX. simply hosts file.
This is comming from our AIX, right? But from where?

Joeri
Sponsored Links
  #2 (permalink)  
Old 05-07-2002
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,150
No, it is comming from the nameserver on linux. The linux box knows the ip address that connected to it. It then uses dns to get the hostname. If you use nslookup (or dig or whatever linix uses) to lookup the ip address of the aix system on the linux system you will get the same result.

This is probably because the reverse entry needs a trailing dot.
  #3 (permalink)  
Old 05-07-2002
Registered User
 

Join Date: Apr 2002
Location: Argentine - that better than to eat meat and to drink wine (both Argentineans)?.
Posts: 132
a- Add the IP, host_name and aliases in the /etc/hosts in both machines.

In the AIX machine

if [ ! f /etc/netsvc.conf ]
then
echo "hosts=local,bind" > /etc/netsvc.conf
else
echo "review the hosts definitions in the /etc/netsvc.conf"
echo "hosts=local,bind"
fi

In the linux machine:

in the /etc/nsswitch.conf
hosts: files dns

b- Add the .rhosts in the home directory of the user in both machines:
example for root:

linux box:
echo "server_aix root" >> $HOME/.rhosts

aix box:
echo "server_linux root" >> $HOME/.rhosts


c- Permit the root login in both machines

linux box:

Add the apropiate entry in the /etc/securetty

aix box:

chuser login=true rlogin=true root

Good luck. Hugo.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
DNS name resolution e250user Solaris 1 07-25-2006 12:13 PM
Monitor Resolution nikk UNIX for Advanced & Expert Users 1 08-01-2003 12:26 PM
Monitor Resolution AreaMan UNIX for Advanced & Expert Users 2 05-25-2002 05:54 PM
AIX hostname ( see also TCP/IP name resolution ) progressdll UNIX for Advanced & Expert Users 4 05-07-2002 12:32 PM
Resolution..?? Linux_fan UNIX Desktop for Dummies Questions & Answers 3 03-06-2002 11:33 AM



All times are GMT -4. The time now is 02:49 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2010. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0