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

AIX, netsvc.conf

Sorry about the .conf extension in the previous thread.  Not thinking

Anyway, I have the following hosts file:

# cat hosts
...               loopback localhost      # loopback (lo0) name/address
::1                     loopback localhost      # IPv6 loopback (lo0) name/address    lp2
#####       wlpar1  lp2    localdomain.com

Open in new window

I have the following netsvc.conf file

# cat netsvc.conf
# aliases = nis, files
hosts = local,bind4

Open in new window

And get the following from the lookup

# nslookup controller2

Non-authoritative answer:
Name:   controller2.localdomain.com

Open in new window

I still do not know where I get the IP address of from

Does this make sense ?

Los Angeles1
Los Angeles1
1 Solution
You're still using "nslookup"!

I thought I told you that nslookup doesn't care about /etc/netsvc.conf and /etc/hosts.

nslookup queries the nameserver exclusively, in your case obviously the one with this address:

There is a file /etc/resolv.conf used to determine which nameserver to query.
Please check this file! is a private address, so it must belong to a server residing in your company's network.

controller2 is a regular host in your network, and so it's quite OK that its address is returned by nslookup.
Are you "Shallotte Enom Incorporated " (DemandMedia) or one of their customers? If so, ask Albert Valerio or Ben Svobodny what it's all about.

"nslookup lp2" will either return nothing (if lp2 is not configured in DNS) or it will return an address probably different from the one in your /etc/hosts (if it is the address of an already existing server somewhere else in your network).

If you want to bypass DNS for tools like "ping", "host" etc. (not for nslookup!) remove "bind4" from the "hosts=" line of /etc/netsvc.conf.

If you want to disable the DNS service for your machine completely (thus effectively also disabling nslookup) rename /etc/resolv.conf, or delete it.
Los Angeles1Author Commented:
I was confused by the address, its not on my network and I have another IP for that node,  I thought the 98 address was something else, not the node IP returned from the DNS.

Thanks for your help

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

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