[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 288
  • Last Modified:

Name Resolution Solaris 2.5

I have a Solaris machine which is connected to the internet. I do not run DNS, but my ISP provides 2 name servers. During the boot process I can see a default route being added so that is there and I can ping machines using their IP addresses, but I cannot reolve any names.

In Irix, there is a file /etc/resolv.conf which contains (on my machines):

hostresorder local bind
domain foo.bar.com
nameserver x.x.x.x
nameserver y.y.y.y

I have tried creating similar files on the Solaris machine, but it doesn't work.

If I run nslookup, it even knows to look at the nameservers - why can't any applications find them!

What else is missing? This should be easy for you Sun admins!
0
cpranderia
Asked:
cpranderia
1 Solution
 
n0thingCommented:
Hi,

  Edit /etc/nsswitch.conf in the hosts part add:

hosts: files dns

  Save it, it should work. Keep your resolv.conf as it.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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