Solved

AIX Server

Posted on 2013-06-19
10
99 Views
Last Modified: 2016-07-08
How can I find the host table in a AIX server? I want to delete one host
0
Comment
Question by:Tarso
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
10 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 250 total points
ID: 39261444
/etc/hosts
0
 
LVL 62

Assisted Solution

by:gheist
gheist earned 125 total points
ID: 39263710
Actually dns is preferred over hosts and default libc resolver caches any names forever
Step 1) change system to prefer /etc/hosts
netsvcs.conf
Step 2) Chnage the host record
Step 3) restart each and every process which is running.
0
 
LVL 25

Assisted Solution

by:madunix
madunix earned 125 total points
ID: 40255047
/etc/hosts                contains the hostnames and their address for hosts in the network
host <hostname>    searches through the /etc/hosts file, and display the ip address of the hostname
host <ip address>   searches through the /etc/hosts file, and display the hostname
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 62

Expert Comment

by:gheist
ID: 41695103
https:#a39263710
Aix still defaults to nis, then dns, then local unless you change
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 41695154
And if you change or don't have a resolv.conf/ypbind (which is also the default) it's https:#a39261444
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 41695291
To avoid misunderstandings- what I wanted to say is that by default AIX neither ships a resolv.conf file (just a skeleton) nor does a NIS client get installed by default, so the /etc/hosts file will take effect, as mentioned in https:#a39261444, regardless of what's in the irs.conf/netsvc.conf files.
0
 
LVL 62

Expert Comment

by:gheist
ID: 41699479
It will actually send DNS request to localhost in absence of resolv.conf...
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 41699489
Yes, and it will  (by default) neither find a running named nor a DNS data base there, so which source will be used for name resolution?
0
 
LVL 62

Expert Comment

by:gheist
ID: 41699501
The question if DNS quick failure is usage is merely philosophical...

The real problem is stone age tools hidden in AIX. Nowadays normal resolvers have 2 or 5 or 15 sec timeout while on AIX one gets 45s unless in quickly fails against loopback.
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
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.:

628 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