Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How to add name servers for name resolution

Posted on 1998-08-18
2
226 Views
Last Modified: 2013-12-16
I have just installed solaris 2.5.1 and am trying to configure the network. I have set the /etc/defaultrouter file to the router, and I can now see the internet ok. But I can't get any name resolution, even after adding 2 dns servers to /etc/resolv.conf (syntax nameserver <ip addr>). Is there something else I need to do ? Thanks...
0
Comment
Question by:gburson
  • 2
2 Comments
 
LVL 2

Accepted Solution

by:
blowfish earned 50 total points
ID: 1812032
check the contents of /etc/nsswitch.conf, the line that starts with "hosts:" should be as follows;

hosts:      files dns

If it says "files" and not "files hosts", then your hostname lookups are only looking in your /etc/hosts files.  Make the change and everything should wook just fine; no need to reboot.  

--cheers
0
 
LVL 2

Expert Comment

by:blowfish
ID: 1812033
Sorry, what I meant to say in my explanation is;

If it says "files" and not "files dns", ...

--cheers
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone 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

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
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…
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.

808 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