?
Solved

AIX, netsvc

Posted on 2012-09-06
1
Medium Priority
?
622 Views
Last Modified: 2012-09-06
I did not have a /etc/netsvc file

So I created one as follows:

# pwd
/etc
#
# cat netsvc
hosts = local,bind4
#
# ls -la netsvc
-rwxrwxrwx    1 root     system           20 Sep 06 13:27 netsvc
#

Open in new window


Below is my hosts file:

# 2000:1:1:1:209:6bff:feee:2b7f         ipv6sample      # ipv6 name/address
127.0.0.1               loopback localhost      # loopback (lo0) name/address
::1                     loopback localhost      # IPv6 loopback (lo0) name/address
10.14.52.224    lp2
#####10.14.52.223       wlpar1  lp2
######10.14.10.10    localdomain.com

Open in new window


From smitty mktcpip, I have the following configuration for the adapter

[TOP]                                                   [Entry Fields]
* HOSTNAME                                           [lp2]
* Internet ADDRESS (dotted decimal)                  [10.14.52.224]
  Network MASK (dotted decimal)                      [255.255.0.0]
* Network INTERFACE                                   en0
  NAMESERVER
           Internet ADDRESS (dotted decimal)         [10.14.10.10]
           DOMAIN Name                               [localdomain.com]
  Default Gateway
       Address (dotted decimal or symbolic name)     [10.14.10.10]
       Cost                                          [0]                      #
       Do Active Dead Gateway Detection?              no                     +

Open in new window



However, when I perform an nslookup, I get the following:

# nslookup controller2
Server:         10.14.10.10
Address:        10.14.10.10#53

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

Where is it getting this strange IP of 98.124.199.1 from ?

What file contains the DNS IP address ?

Thanks
0
Comment
Question by:Los Angeles1
1 Comment
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 2000 total points
ID: 38373692
The actual name is /etc/netsvc.conf

AIX should ship such a file by default.

nslookup does not take /etc/netsvc.conf into account! It always queries your nameserver, whose address is in /etc/resolv.conf

Use the host command instead, which respects /etc/netsvc.conf

DNS names are not in a local file, but in a central repository residing on the nameserver.

Address resolution can be done with DNS, /etc/hosts or a NIS hosts map.

Do you use NIS?
What do you see with

ypwhich -m

?
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses
Course of the Month16 days, 23 hours left to enroll

864 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