?
Solved

How to add name servers for name resolution

Posted on 1998-08-18
2
Medium Priority
?
237 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 200 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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…
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.
Suggested Courses

807 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