Configure DNS

Issues related to configuring your network
Post Reply
Unknown User
Posts: 1
Joined: 2018/03/06 02:34:56

Configure DNS

Post by Unknown User » 2018/03/06 02:42:39

Hi can somebody help me.. i cant figure out what to do any more so here's the detail

Here's my named.conf
//
// named.conf
//
// Provided by Red Hat bind 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.
//

options {
listen-on port 53 { 127.0.0.1; 203.160.179.244; };
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; 203.160.179.244/29; };
//allow-transfer { localhost; };

recursion yes;

dnssec-enable yes;
dnssec-validation yes;
dnssec-lookaside auto;
/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";

managed-keys-directory "/var/named/dynamic";
};

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

zone "." IN {
type hint;
file "named.ca";
};

zone "olps.edu.ph" IN {
type master;
file "/var/named/olpssvr.fwd";
allow-query { none; };
};
zone "179.160.203.in-addr.arpa." IN {
type master;
file "/var/named/olpssvr.rev";
allow-update { none; };
};

include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";





Here's my forward zone:

$TTL 60
@ IN SOA olpssvr.olps.edu.ph. root.olps.edu.ph. (
20120917 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ; minimum TTL
)

IN NS olpssvr.olps.edu.ph.
IN NS ns2.cloudns.net.
IN NS ns3.cloudns.net.
IN NS ns4.cloudns.net.

IN MX 1 ASPMX.L.GOOGLE.COM.
IN MX 5 ALT1.ASPMX.L.GOOGLE.COM.
IN MX 5 ALT2.ASPMX.L.GOOGLE.COM.
IN MX 10 ASPMX2.L.GOOGLEMAIL.COM.
IN MX 10 ASPMX3.L.GOOGLEMAIL.COM.
IN MX 10 ASPMX4.L.GOOGLEMAIL.COM.
IN MX 10 ASPMX5.L.GOOGLEMAIL.COM.
mail CNAME ghs.googlehosted.com.
@ TXT v=spf1 include:_spf.google.com ~all


IN A 203.160.179.244
olpssvr IN A 203.160.179.244
www IN A 203.160.179.244
olps.edu.ph. IN A 203.160.179.244
www.olps.edu.ph. IN A 203.160.179.244
www.olps.edu.ph. IN A 188.241.116.117
www.olps.edu.ph. IN A 108.59.1.205
www.olps.edu.ph. IN A 46.165.223.182
elearning IN CNAME olps.edu.ph.
studentportal IN CNAME olps.edu.ph.
ftp IN CNAME olps.edu.ph.


here's my reverse zone:

$TTL 1D
@ IN SOA olpssvr.olps.edu.ph. root.olps.edu.ph. (
20120914 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ; minimum TTL

)
IN NS olpssvr.olps.edu.ph.
IN PTR olps.edu.ph.
IN A 255.255.255.248
179.160.203.in-addr.arpa. IN NS olpssvr.olps.edu.ph.
244 IN PTR olpssvr.olps.edu.ph.




Can you trace where's my mistake? i cant use olps.edu.ph to search for the website.. only the public ip address which is 203.160.179.244

pjsr2
Posts: 314
Joined: 2014/03/27 20:11:07

Re: Configure DNS

Post by pjsr2 » 2018/03/06 11:17:11

Did you run named-checkconf ?
Is port 53 in the firewall open?

Post Reply