Solved

Adding DNS entries in SunOS 5.6

Posted on 2004-08-11
6
772 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
ID: 11778545
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
ID: 11778659
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
ID: 11778947
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
ID: 11779971
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
ID: 12160943
PAQed - no points refunded (of 500)

CetusMOD
Community Support Moderator
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

772 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