Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

AIX Server

Posted on 2013-06-19
10
Medium Priority
?
106 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
9 Comments
 
LVL 68

Accepted Solution

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

Assisted Solution

by:gheist
gheist earned 500 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 500 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

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

 
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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 …
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses
Course of the Month9 days, 11 hours left to enroll

877 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