Solved

AIX Server

Posted on 2013-06-19
10
74 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
  • 4
  • 4
10 Comments
 
LVL 68

Accepted Solution

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

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
 
LVL 61

Expert Comment

by:gheist
ID: 41695103
https:#a39263710
Aix still defaults to nis, then dns, then local unless you change
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
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 61

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 61

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Audit HISTFILE for all users on AIX 9 91
ftpcommand 2 50
NTP Server in VMware 5 115
problem creating new luks volume on new VM disk 5 48
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
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…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

708 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now