Configuring A Basic DNS Server _PLUS_ Client In Solaris 11
Enviado por PilyBotello • 1 de Diciembre de 2014 • 363 Palabras (2 Páginas) • 147 Visitas
Configuring a Basic DNS Server + Client in Solaris 11
By paulie on Mar 04, 2013
https://blogs.oracle.com/paulie/entry/configuring_a_basic_nfs_server
Configuring the Server
The default install of Solaris 11 does not come with a DNS server, but this can be added
easily through IPS like so:
[paulie@griff ~]$ sudo pkg install service/network/dns/bind
Before enabling this service, the named.conf file needs to be modified to support the DNS
structure. Here's what mine looks like:
[paulie@griff ~]$ cat /etc/named.conf
options {
directory "/etc/namedb/working";
pidfile
"/var/run/named/pid";
dumpfile
"/var/dump/named_dump.db";
statisticsfile
"/var/stats/named.stats";
forwarders { 208.67.222.222; 208.67.220.220; };
};
zone "hillvalley" {
type master;
file "/etc/namedb/master/hillvalley.db";
};
zone "1.168.192.inaddr.
arpa" {
type master;
file "/etc/namedb/master/1.168.192.db";
};
My forwarders use the OpenDNS servers, so any request that the local DNS server can't
process goes through there. I've also setup two zones: hillvalley.db for my forward zone and
1.168.192.db for my reverse zone. We need both for a proper configuration. We also need to
create some directories to support this file:
[paulie@griff ~]$ sudo mkdir /var/dump
[paulie@griff ~]$ sudo mkdir /var/stats
[paulie@griff ~]$ sudo mkdir p
/var/run/namedb
[paulie@griff ~]$ sudo mkdir p
/etc/namedb/master
[paulie@griff ~]$ sudo mkdir p
/etc/namedb/working
Now, let's populate the DNS server with a forward and reverse file.
Forward file
[paulie@griff ~]$ cat /etc/namedb/master/hillvalley.db
$TTL 3h
@ IN SOA griff.hillvalley. paulie.griff.hillvalley. (
2013022744 ;serial (change after every update)
3600 ;refresh (1 hour)
3600 ;retry (1 hour)
604800 ;expire (1 week)
38400 ;minimum (1 day)
)
hillvalley. IN NS griff.hillvalley.
delorean IN A 192.168.1.1 ; Router
biff IN A 192.168.1.101 ; NFS Server
griff IN A 192.168.1.102 ; DNS Server
buford IN A 192.168.1.103 ; LDAP Server
marty IN A 192.168.1.104 ; Workstation
doc IN A 192.168.1.105 ; Laptop
jennifer IN A 192.168.1.106 ; Boxee
lorraine IN A 192.168.1.107 ; Boxee
Reverse File
[paulie@griff ~]$ cat /etc/namedb/master/1.168.192.db
$TTL 3h
@ IN SOA griff.hillvalley. paulie.griff.hillvalley. (
2013022744 ;serial (change after every update)
3600 ;refresh (1 hour)
3600
...