Visit Our UNIX and Linux User Community


TCP/IP name resolution


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users TCP/IP name resolution
# 1  
Old 05-07-2002
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
# 2  
Old 05-07-2002
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  
Old 05-07-2002
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.

Previous Thread | Next Thread
Test Your Knowledge in Computers #246
Difficulty: Easy
By 1973, e-mail constituted 95% of the ARPANET traffic.
True or False?

10 More Discussions You Might Find Interesting

1. Solaris

Too much TCP retransmitted and TCP duplicate on server Oracle Solaris 10

I have problem with oracle solaris 10 running on oracle sparc T4-2 server. Os information: 5.10 Generic_150400-03 sun4v sparc sun4v Output from tcpstat.d script TCP bytes: out outRetrans in inDup inUnorder 6833763 7300 98884 0... (2 Replies)
Discussion started by: insatiable1610
2 Replies

2. Windows & DOS: Issues & Discussions

netbios name resolution + w7

Hello guys, At windows 7, when multiple ip addresses used on one nic, starting "network" from desktop is able to resolve samba machine's name (freebsd + samba3.5.9 from ports) but does not want to open machine (error: unexisting) nor ping it by name. Works fine if specified by ipv4/ipv6 address... (2 Replies)
Discussion started by: hachik
2 Replies

3. Solaris

Screen Resolution

Hi all. I have a very peculiar problem in Solaris 10. The output of the m64config -prconf command with regards the Card Adapter is the following. Card possible resolutions: 720x400x85, 640x480x60, 640x480x72, 640x480x75 800x600x56, 800x600x60, 800x600x72, 800x600x75, 1024x768x60 ... (0 Replies)
Discussion started by: lynxman
0 Replies

4. Solaris

screen resolution

how to change screen resolution in CDE prompt (2 Replies)
Discussion started by: tirupathi
2 Replies

5. Solaris

Desktop Resolution

Hi friends, i had small problem in my home pc i install solaris 10 but GUI is very big cannot view any thing, but i can open terminal where with very difficulty is there any command to re size my resolution some thing like 1024. if not i want to log in default console other than GUI only terminal... (5 Replies)
Discussion started by: kurva
5 Replies

6. IP Networking

Problem with name resolution?

I have an AIX4.3 box on our subnet, called LIMEST3.OURDOMAIN.CO.UK, with IP address 10.103.1.13 It has the following entry in its own /etc/hosts: 10.103.1.13 limest3 limest3.ourdomain.co.uk Now, if I ping limest3.ourdomain.co.uk or ping 10.103.1.13, the result is instant. However if I ping... (4 Replies)
Discussion started by: grimbleshanks
4 Replies

7. Solaris

DNS name resolution

Hi, I got solaris 10 installed on a E250 and i am expericing issues resolving dns. from some research i think it's becuase where i haven't set-up NIS and i don't intend too as i am just setting up a box to poke communigate pro. Any help or advice please? Thanks in advance Alan (1 Reply)
Discussion started by: e250user
1 Replies

8. UNIX for Advanced & Expert Users

Monitor Resolution

Guys, We are going to order the wide screen monitor with 1920*1200 resolution for one U60 in our client side, that their current graphic card is Elite3D-m6 and the higher resolution which this card supports is 1280*1024. I just want to make sure wehther we are able to work with this monitor via... (1 Reply)
Discussion started by: nikk
1 Replies

9. UNIX for Advanced & Expert Users

Monitor Resolution

My machine (Sun Blade 100) has just had it's OS reinstalled (solaris 8). For some reason the monitor resolution has changed (decreaded so that I have less monitor real esate). Does anybody know the command to change monitor resolution in Solaris? Cheers AreaMan (2 Replies)
Discussion started by: AreaMan
2 Replies

10. UNIX Desktop Questions & Answers

Resolution..??

When i start my pc after the installation of suse linux it ask me for resolution but not for graphical interface, for console, can i run a command to change it again? Thanx! (3 Replies)
Discussion started by: Linux_fan
3 Replies

Featured Tech Videos