AIX, netsvc.conf

Posted on 2012-09-06
Last Modified: 2012-09-10
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

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:

Open in new window

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

Does this make sense ?

Question by:Los Angeles1
    LVL 68

    Accepted 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.

    Author Comment

    by:Los Angeles1
    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

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. Please see for the updated article. It is avail…
    Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap ( Version 1.2 2.      Jpcap( Version 0.6 Prerequisite: 1.      GCC …
    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 navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    729 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

    20 Experts available now in Live!

    Get 1:1 Help Now