AIX, identity problem

Posted on 2012-09-05
Medium Priority
Last Modified: 2012-09-06
The NIC on my LPAR is set to, which I can ping as  follows

# ping
PING ( 56 data bytes
64 bytes from icmp_seq=0 ttl=255 time=0 ms
64 bytes from icmp_seq=1 ttl=255 time=0 ms
64 bytes from icmp_seq=2 ttl=255 time=0 ms

Open in new window

my hostname is lp2

# hostname

Open in new window

However, when I ping lp2, I get the following

# ping lp2
PING lp2.localdomain.com: ( 56 data bytes

Open in new window

No response is ever returned

The following is the end of my hosts file    lp2
#####       wlpar1  lp2
######    localdomain.com

Open in new window

( commented out the localdomain part when I noticed the problem

How can I fix this so that I can properly ping lp2 ?

Question by:Los Angeles1
1 Comment
LVL 68

Accepted Solution

woolmilkporc earned 2000 total points
ID: 38370301
Seems that lp2 is in your DNS (Domain Name Server) as, an address which is different from what you set in /etc/hosts and, moreover, is not reachable from your LPAR.

To make /etc/hosts take precedence over DNS take care to set in /etc/netsvc.conf

hosts = local,bind4

which means: Query /etc/hosts first, query DNS only if nothing is found in that file.

Alternatively, if you don't have a DNS in your network: Could it be that lp2 has a second entry somewhere (not at the end) in your /etc/hosts file under the wrong address

Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses
Course of the Month16 days, 13 hours left to enroll

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question