LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 08-17-2006, 08:01 AM   #1
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 522

Rep: Reputation: 31
how to set up a DNS server on solaris 10?


Hi!
I'm running solaris 10 and the server is supposed to solve names for a 2 domains. I'm not very familiar with this dns server topic though.
The solaris server hosts also an apache server where 2 websites are hosted. The name for the 2 websites should be resolved from this solaris server itself, is it understandable? So I have 1 IP for 2 websites. The apache is well configured for the virtual hosts. I'm only missing the DNS server.

Do I just need to fill /etc/hosts and /etc/resolv.conf or is it a bit more complicated than this? Is ther a daemon for this?

Thanks for any help.
 
Old 08-17-2006, 09:10 AM   #2
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 522

Original Poster
Rep: Reputation: 31
I've imported the named.conf and all the files in namedb from the previous solaris server, which was replaced by the solaris that I'm using now (that means, that it has inherited the IP from the previous server). /etc/hosts and /etc/resolv.conf

Then I did: svcadm -v enable /network/dns/server
And got
Quote:
# svcs -l /network/dns/server
fmri svc:/network/dns/server:default
enabled true
state online
next_state none
state_time Thu Aug 17 16:02:18 2006
logfile /var/svc/log/network-dns-server:default.log
restarter svc:/system/svc/restarter:default
contract_id 116
dependency require_all/none file://localhost/etc/named.conf (online)
dependency require_all/none svc:/system/filesystem/minimal (online)
dependency require_any/error svc:/network/loopback (online)
dependency optional_all/error svc:/milestone/network (online)
the domains are still unreachable though.
In the log files is nothing wrong.
As I've mentioned before: the configurations (named.conf and all the files in namedb) comes from a previous solaris server (solaris 8) where it worked fine. This new server has replaces the old one (same IP, same domain...).
What did I forget?
 
Old 08-17-2006, 09:48 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,507

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
What do you mean by "the domains are still unreachable though" ?
 
Old 08-17-2006, 05:55 PM   #4
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 522

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by jlliagre
What do you mean by "the domains are still unreachable though" ?
when I try to reach the website by typing the address, I can't reach it. Just as before when the DNS Server wasn't started.

Last edited by xpucto; 08-17-2006 at 05:56 PM.
 
Old 08-17-2006, 11:22 PM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,507

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
From where are you trying to connect to the web sites, a different machine than the server or the same one ?

In any case, what are the DNS client settings on that machine ?
 
Old 08-21-2006, 02:55 AM   #6
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 522

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by jlliagre
From where are you trying to connect to the web sites, a different machine than the server or the same one ?

In any case, what are the DNS client settings on that machine ?
Yes, DNS Server and web-sites are on the same machine.

the settings are:
Quote:
cat /etc/hosts
127.0.0.1 localhost
111.111.11.1 mywebsite.com mywebsite loghost
Quote:
cat /etc/nsswitch.conf
#
# /etc/nsswitch.dns:
#
# An example file that could be copied over to /etc/nsswitch.conf; it uses
# DNS for hosts lookups, otherwise it does not use any other naming service.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.

# DNS service expects that an instance of svc:/network/dns/client be
# enabled and online.

passwd: files
group: files

# You must also set up the /etc/resolv.conf file for DNS name
# server lookup. See resolv.conf(4).
hosts: files dns

# Note that IPv4 addresses are searched for in all of the ipnodes databases
# before searching the hosts databases.
ipnodes: files dns

networks: files
protocols: files
rpc: files
ethers: files
netmasks: files
bootparams: files
publickey: files
# At present there isn't a 'files' backend for netgroup; the system will
# figure it out pretty quickly, and won't use netgroups at all.
netgroup: files
automount: files
aliases: files
services: files
printers: user files

auth_attr: files
prof_attr: files
project: files
Quote:
cat /etc/resolv.conf
domain mywebsite.com
nameserver 222.222.2.21
nameserver 222.222..22
search mywebsite.com
In the meantime, I found an explanation for 1 of the 2 websites: I forgot to allow DNS in ipf.conf!
Here are the added lines:
Quote:
block out proto udp all
pass out proto udp from any to any port = 53 keep state
pass out proto udp from any to any port = 53 keep state
block in proto udp all
the 2nd web-site still doesn't work though.

In the old web-sites (solaris 8) from the html-files come, apache was called http. In the new server (solaris 10), it is called webservd. html-files'ownerships are ether with users'names or still with http. I added http in passwd and in group like this:
Quote:
http:x:1000:100:http Server:/servers/http:/bin/bash
and
Quote:
http::100:http,user1,user2
http::201:user1,user,user3,http
Could it be a reaseon for my problem? Everything else works fine I must say. Should I change all files'ownership to webservd? If yes how (some files are owned by http, but other from other users. doing chown -R would change all files.
thanks.

Last edited by xpucto; 08-21-2006 at 02:57 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to setup a solaris 8 dhcp server to do dynamic dns updates smiller71 Solaris / OpenSolaris 0 04-02-2004 02:16 PM
Hostname not set with DNS server bcrisler Linux - Networking 3 03-18-2004 02:38 PM
need help to set up caching only dns server to with bogus DNS entries ullas Linux - Networking 1 10-28-2003 01:54 PM
DNS Server on Solaris 9 Pimple Solaris / OpenSolaris 2 08-21-2003 09:18 AM
How to set a static IP and DNS server phil1076 Linux - Networking 1 08-19-2003 06:20 PM


All times are GMT -5. The time now is 10:20 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration