Solved

How to add name servers for name resolution

Posted on 1998-08-18
2
222 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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
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.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

778 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