Posts Tagged ‘port 53’

Setting Dns Server Fedora 9

Written by admin on July 29th, 2008. Posted in Dns, Fedora-9, linux

Guys, kalau lu sudah install Redhat fedora 9 neh. ceritanya and sudah include install dns server waktu pertama x install, gw disini cuman ngebahas cara setting Dns nya doang, kalau mau cara installasinya cari disini aja deh

nah.. yang perlu lu perhatiin adalah :

listen-on port 53 { 127.0.0.1;192.168.1.1;10.33.2.253; };

diatas sudah saya tambahkan ip local gw, yaitu 192.168.1.1 dan 10.33.2.253 , artinya port 53 dibuka untuk ip tersebut.

allow-query { localhost; 192.168.1.0/24; 10.33.2.0/24;};

nah yang diatas ini juga harus lo tambahkan, ip network local loe, biar ip tersebut bisa query dns server loe. contohnya waktu loe ketik NSLOOKUP di client windows maka dengan otomatis windows loe query ke dns server ini.

sepertinya untuk named.conf sudah cukup , karena emang itu sih yang vitalnya, kalau untuk zone zone domain loe pasti dah tau deh…

ini gw lampirkan settingan named.conf gw

[root@web ~]# cat /etc/named.conf
//
// named.caching-nameserver.conf
//
// Provided by Red Hat caching-nameserver package to configure the
// ISC BIND named(8) DNS server as a caching only nameserver
// (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
// DO NOT EDIT THIS FILE – use system-config-bind or an editor
// to create named.conf – edits to this file will be lost on
// caching-nameserver package upgrade.
//

options {
listen-on port 53 { 127.0.0.1;192.168.1.1;10.33.2.253; };
listen-on-v6 port 53 { ::1; };
directory “/var/named”;
dump-file “/var/named/data/cache_dump.db”;
statistics-file “/var/named/data/named_stats.txt”;
memstatistics-file “/var/named/data/named_mem_stats.txt”;
allow-query { localhost; 192.168.1.0/24; 10.33.2.0/24;};
recursion yes;
};

logging {
channel default_debug {
file “data/named.run”;
severity dynamic;
};
};

zone “.” IN {
type hint;
file “named.ca”;
};

zone “istp.ac.id” {
type master;
file “zone.istp.ac.id.db”;
};

zone “2.33.10.IN-ADDR.ARPA” {
type master;
file “zone.2.33.10.db”;
};

zone “1.168.192.IN-ADDR.ARPA” {
type master;
file “zone.1.168.192.db”;
};

include “/etc/named.rfc1912.zones”;

[root@web ~]#

Share