etc host entry problem


 
Thread Tools Search this Thread
Operating Systems Solaris etc host entry problem
# 1  
Old 06-03-2008
etc host entry problem

Dear Members,

My app server is running in sun solaris. When i am trying to invoke another application running in a different m/c by calling its ip aa.bb.cc.dd , i am succeeding.

But, when i maintain the same ip in etc host and try to invoke the application using the host name, it is failing.

etc host entry: aa.bb.cc.dd appname

Please suggest what could be the problem.

Regards,
Kandy
# 2  
Old 06-03-2008
check /etc/nsswitch.conf, should have the following:
Code:
hosts:      files dns
ipnodes:   files dns

# 3  
Old 06-03-2008
Also check that your syntax in /etc/hosts is correct. Do you get an error message in the system log and/or the application which does the hostname lookup?
# 4  
Old 06-04-2008
Hi.. the application log does not show any error message.
# 5  
Old 06-04-2008
Please post your /etc/hosts so we can look at it.
# 6  
Old 06-04-2008
Hi,

which version of solaris y use? /etc/inet/hosts and /etc/inet/ipnodes are 1 file or 2 different files? if it 2 files make the same entry in ipnodes .

use `arp appname` to check the IP.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. How to Post in the The UNIX and Linux Forums

Help me, write a bash script to delete parent entry with all their child entry in LDAP UNIX server

Hi All, Please help me and guide me to write a bash/shell script on Linux box to delete parent entry with all their child entries. example: Parent is : ---------- dn: email=yogesh.kumar@wipro.com, o=wipro, o=in child is: ---------- dn: cn: yogesh kumar, email=yogesh.kumar@wipro.com,... (1 Reply)
Discussion started by: Chand
1 Replies

2. Shell Programming and Scripting

Problem with crontab entry

Hi, I have a shell script which needs to be run at 5 am everyday.I have crontab entry as "0 5 * * 0-6 /wfsdev1/app/edw/bin/HealthCh.sh" but this job is not running at scheduled time.What can be the possible reasons for this? Thanks, Anil (5 Replies)
Discussion started by: anil029
5 Replies

3. Shell Programming and Scripting

Problem with crontab entry log

Hi, Please help me with below scenerio... i have a shell script.. which should be scheduled in cron and should get the log when executed. example, script.ksh : echo "narayana" >$HOME/script.log * * * * * bash -x $HOME/script.ksh >$HOME/script_cron.log My question is: I am... (2 Replies)
Discussion started by: lnviyyapu
2 Replies

4. AIX

problem with host route

Hi, I have a system with network interfaces en0 and en1 en0: physical ip: 1.1.1.10 virtual ip1: 192.168.100.11 virtual ip2: 192.168.100.12 en1: physical ip: 1.1.1.20 virtual ip1: 192.168.100.20 virtual ip2: 192.168.100.21 default gateway ist 192.168.100.254 when I open a... (12 Replies)
Discussion started by: funksen
12 Replies

5. AIX

Host Resources Problem

I still trying to monitorice an AIX server. hrSWRun is defined on mib.defs but I don't know why there is no data below the hrSWRun branch (1.3.6.1.2.1.25.4) What can i do??? (2 Replies)
Discussion started by: MikelCV
2 Replies

6. HP-UX

Adding printer entry into host file

Hi relatively new to unix so sorry if this is a stupid question: How do i add a printer entry into the host file. I know how to add the printer using sam, but i am required to add the host file entry into /etc/hosts which i am unaware of how to do. Any help would be greatly appreciated. (2 Replies)
Discussion started by: Wade Gava
2 Replies

7. Shell Programming and Scripting

Grep table entry problem

Hi, I have a table which looks like this Line a b c 0 10 0 0 1 0 0 2 0 ... (1 Reply)
Discussion started by: ahjiefreak
1 Replies

8. Linux

problem in adding an extra entry in a dir:fuse imlementation

Well the problem comes when i try to add an extra file into the existing filesystem mounted at some mountpoint containing a single file hello. suppose i add a file say "TANVIR"(c it on d line next to line no:49) , it gives me abnormal results...... like 1)d file can't be opened 2)no file... (0 Replies)
Discussion started by: Tanvirk
0 Replies

9. Shell Programming and Scripting

adding a host entry on another machine

I have written this small script to add an entry to a remote /etc/hosts file which needs to be run from our central admin box and is passed one parameter $1 <hostname> #!/bin/ksh echo "Which host entry would you like to add to $1" read host_to_add echo "what is the IP address?" read ip ... (4 Replies)
Discussion started by: hcclnoodles
4 Replies

10. Shell Programming and Scripting

Problem with logging into remote host

Hi All, I am using a script for remotely logging into a rhost using telnet and shutdown a server. The script is as follows. IP = 10.24.12.23; export IP UNAME = username ; export UNAME PWD = password; export PWD CRDIR = /etc/rc.d/init.d ; export CRDIR echo "logging into remote... (4 Replies)
Discussion started by: patil_reddy
4 Replies
Login or Register to Ask a Question