Solved

Adding DNS entries in SunOS 5.6

Posted on 2004-08-11
6
769 Views
Last Modified: 2013-12-27
I'm not familiar with how the DNS is setup on our sun box.  We don't have BIND running which is what I'm familiar with, it appears we have something else running which I don't know.  What I want to do is add a few entries into our DNS so these computers can be resolved correctly.  Is it like a zones file in BIND you just have to modify?  Any help would be greatly appreciated.  
0
Comment
Question by:kevin_ma
6 Comments
 
LVL 40

Expert Comment

by:jlevie
Comment Utility
Does /etc/named.conf exist? Does 'ps -ef | grep named | grep -v grep' return a PID for a named process?

Does the network use NIS or NIS+? If so it could be where name resolution is being done and you can tell if either is active by looking at the contents of /etc/nsswitch.conf.
0
 
LVL 48

Expert Comment

by:Tintin
Comment Utility
DNS runs pretty much the same on a Solaris box as any other box.  Can't remember what version of bind that Solaris 2.6 comes with, but you'd be better off installing a Bind 8 or 9.

Are you sure you sun box is setup as a DNS server?  Do you have a /var/named directory?
0
 
LVL 40

Expert Comment

by:jlevie
Comment Utility
His/her Bind could well be configured to store zone files someplace other than /var/named, but that will be obvious from /etc/named.conf, or perhaps /usr/local/etc/named.conf
0
 
LVL 38

Expert Comment

by:yuzh
Comment Utility
If you use "ps -ef | grep named | grep -v grep" command cann't see the DNS server
is running, and "named.boot" doesn't exist, then the box is not a  DNS server!

It might use NIS/NIS+ or simply files,
grep hosts /etc/nsswitch.conf

to see what's in use.

also check
/etc/resolv.conf

To see which DNS server is used (the DNS server IP should be in the file).

If you want to setup the BOX as a DNS server, here's the easy way to do it:
  1.You can down the template files from the following site:
     http://developers.sun.com/solaris/technotes/named.html
     please read the README file inside the package
  2. Following the instructions on the page, it should get your DNS going.
     You can find more information about how to set-up DNS in:

         DNS-HOWTO.html">http://www.redhat.com/mirrors/LDP/HOWTO/DNS-HOWTO.html

                   and:
         http://www.ludd.luth.se/~kavli/BIND-FAQ.html

PS: for Solaris 6 or older, you need to use name.boot, Solaris 7 or newer, use
      named.conf
 
0
 

Accepted Solution

by:
CetusMOD earned 0 total points
Comment Utility
PAQed - no points refunded (of 500)

CetusMOD
Community Support Moderator
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
CPU monthly average? 12 90
SSH commands for Nas4free 21 295
IBM flash storage 840 15 50
How to find files recursively in ftp server quickly? 7 92
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…
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 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.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now