Blog Informatique

Administration systèmes et réseaux
  • rss
  • Accueil
  • Contact

Installation serveur DNS sous Solaris 8

hazem.nasri | 22 mars 2009

Implementing a DNS Server on the Solaris 8 OS

First, we provide steps for a SPARC processor-based machine. Instructions for the x86 platform appear below.

Steps for the SPARC Platform

1.

Download bind software from Sunfreeware.com. The latest version is bind-9.2.3-sol8-sparc-local.gz.
2.

Gunzip the package that you downloaded and install it.

# gunzip bind-9.2.3-sol8-sparc-local.gz
# pkgadd -d bind-9.2.3-sol8-sparc-local
# pkginfo | grep -I SMCbind
application SMCbind  bind

3.

Create a DNS server configuration file named.conf in the /etc database file in the /var/named directory:

# vi /etc/named.conf

Here is the example named.conf file:

acl “internal” {
20.195.109.0/24;
};

options {
directory “/var/named”;
forwarders { 161.142.2.17; 161.142.212.17; 202.188.0.183; 202.188.1.8;
};
forward only;
allow-recursion { internal; };
recursive-clients 10000;
};

zone “0.0.127.IN-ADDR.ARPA” {
type master;
file “db.127.0.0″;
forwarders { };
allow-transfer { none; };
};

zone “uesd.com” {
type master;
file “db.uesd.com”;
forwarders { };
allow-transfer { none; };
};

zone “109.195.20.IN-ADDR.ARPA” {
type master;
file “db.20.195.109″;
forwarders { };
allow-transfer { none; };
};

# mkdir /var/named
# cd /var/named
# vi  db.127.0.0

Here is a sample db.127.0.0 file:

$TTL 86400
@        IN  SOA dns.uesd.com. Postmaster.dns.uesd.com. (
10    ; Serial
10800   ; Refresh
3600    ; Retry
604800  ; Expire
86400 ) ; Minimum
IN    NS    dns.uesd.com.

1        IN    PTR    localhost.

# vi db.20.195.109

The following is an example of the db.20.195.109 file:

$TTL 86400
@        IN    SOA    dns.uesd.com. Postmaster.dns.uesd.com. (
11
10800
3600
604800
86400 )
IN    NS    dns.uesd.com.

2.109.195.20.in-addr.arpa.    IN    PTR    web.uesd.com.
3.109.195.20.in-addr.arpa.    IN    PTR    dns.uesd.com.

# vi db.uesd.com

This is a sample db.uesd.com file:

$TTL 86400
@           IN      SOA     localhost Postmaster.dns.uesd.com. (
32
10800
3600
604800
86400 )
IN      NS      dns.uesd.com.

localhost        IN      A       127.0.0.1
dns            IN      A       20.195.109.3
web            IN      A       20.195.109.2
www            IN      CNAME   web

4.

The DNS server daemon is /usr/sbin/in.named. In the Solaris 8 OS, the script to start the DNS server is included in the /etc/init.d/inetsvc file. You can restart inetsvc to start the in.named daemon.

# /etc/init.d/inetsvc stop
# /etc/init.d/inetsvc start

To check the in.named service, enter this command:

# ps -ef | grep named
root  553    1     0   09:59:42  ?     0:00 /usr/sbin/in.named

5.

You can use the nslookup command to check your DNS server. For example:

# nslookup
Default Server: dns.uesd.com
Address:    20.195.109.3

> www
Server: dns.uesd.com
Address:    20.195.109.3

Name: web.uesd.com
Address:    20.195.109.2
Aliases:   www.uesd.com

Catégories
Solaris
Trackback
Trackback

« Installation des paquets sous solaris à la façon debian Sécuriser un Serveur WEB Apache »

2 réponses

Sites We Like... [...]just below, are some totally unrelated sites to

musicians friend kansas city clearance center | 24 janvier 2012

Sites We Like…

[...]just below, are some totally unrelated sites to ours, however, they are definitely worth checking out[...]…

... [Trackback] ... [...] Informations on that Topic: blog.lepc.fr/2009/03/22/installation-serveur-dns-sous-solaris-8.html [...]

Implantes Dentales | 1 février 2012

… [Trackback] …

[...] Informations on that Topic: blog.lepc.fr/2009/03/22/installation-serveur-dns-sous-solaris-8.html [...] …

Navigation

  • Conversion
  • Copie de DVD
  • Les Réseaux sans fil
  • Mysql
  • Non classé
  • Qmail
  • Référencement
  • serveur d'applications
  • serveur linux
  • Solaris
  • Vista
  • VoIP
  • Web 3.0

Recherche

rss Flux rss des commentaires valid xhtml 1.1 design by jide powered by Wordpress get firefox