dns linux centos with webmin

General support questions
Post Reply
josesalazmit
Posts: 4
Joined: 2019/01/16 17:14:21

dns linux centos with webmin

Post by josesalazmit » 2019/01/16 17:29:39

Hello
I have tried to configured a dns service in linux centos using webmin.
I have connected my server in a network behind a pfsense firewall. (I opened the port 53 for udp and tcp)
The IP of my server is 192.168.1.15
the default gateway is 192.168.1.5 which is a router cisco which goes to the firewall with IP 192.168.1.1

The webmin installation didn't show any error but when I use nslookup for my own IP it says:
** server can't find 15.1.168.192.in-addr.arpa.: NXDOMAIN


When I use nslookup for www.google.ca it says:
** server can't find www.google.ca: NXDOMAIN



This is my configuration:

named.conf
******************************
options {
listen-on port 53 { 127.0.0.1; 192.168.1.15; };
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";
recursing-file "/var/named/data/named.recursing";
secroots-file "/var/named/data/named.secroots";
allow-query { localhost; 192.168.1.0/24; };

recursion yes;

dnssec-enable yes;
dnssec-validation yes;

/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";

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

pid-file "/run/named/named.pid";
session-keyfile "/run/named/session.key";

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

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

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

zone "mobile.com" {
type master;
file "/var/named/mobile.com.hosts";
allow-transfer {
10.0.1.220;
};
allow-query {
any;
};
};

*********************************
mobile.com.hosts
*************************
$ttl 38400
mobile.com. IN SOA dnslinux.mobile.com. josesalazmit.gmail.com. (
604801
60
3600
604800
38400 )
mobile.com. IN NS dnslinux.mobile.com.
dnslinux.mobile.com. IN A 192.168.1.15
dnslinux.mobile.com. IN NS dnslinux.mobile.com.
*************************************************

resolv.conf
***********
search mobile.com
nameserver 192.168.1.15

********************
the nic settings
TYPE="Ethernet"
BOOTPROTO="none"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_FAILURE_FATAL="no"
IPV6_ADDR_GEN_MODE="stable-privacy"
NAME="enp0s3"
UUID="e20340d0-e975-4b9a-9ebf-f5a0e7f0bafa"
DEVICE="enp0s3"
ONBOOT="yes"
IPADDR="192.168.1.15"
PREFIX="24"
GATEWAY="192.168.1.5"
IPV6_PEERDNS="yes"
IPV6_PEERROUTES="yes"
IPV6_PRIVACY="no"
~
********************************************

I tried a different solution with another OS and the dns is working there in the same network. So, I don't think is the firewall

however, the tail -f says
Jan 16 13:34:38 dnslinux named[17337]: network unreachable resolving './NS/IN': 2001:503:c27::2:30#53
Jan 16 13:34:38 dnslinux named[17337]: network unreachable resolving './NS/IN': 2001:dc3::35#53
Jan 16 13:36:02 dnslinux named[17337]: network unreachable resolving 'www.google .ca/A/IN': 2001:7fe::53#53

I don`t use IPV6 ?????

What is missing in my settings?
I will appreciate any suggestion

Regards,

Jose

Post Reply