• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 109
  • Last Modified:

AIX Server

How can I find the host table in a AIX server? I want to delete one host
0
Tarso
Asked:
Tarso
  • 4
  • 4
3 Solutions
 
woolmilkporcCommented:
/etc/hosts
0
 
gheistCommented:
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
 
madunixChief Information Security Officer Commented:
/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
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
gheistCommented:
https:#a39263710
Aix still defaults to nis, then dns, then local unless you change
0
 
woolmilkporcCommented:
And if you change or don't have a resolv.conf/ypbind (which is also the default) it's https:#a39261444
0
 
woolmilkporcCommented:
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
 
gheistCommented:
It will actually send DNS request to localhost in absence of resolv.conf...
0
 
woolmilkporcCommented:
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
 
gheistCommented:
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

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now