Solved

Adding DNS entries in SunOS 5.6

Posted on 2004-08-11
6
770 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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…
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…

939 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

4 Experts available now in Live!

Get 1:1 Help Now