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
dns linux centos with webmin
General support questions
-
- Posts: 4
- Joined: 2019/01/16 17:14:21
Return to “CentOS 7 - General Support”
Jump to
- CentOS General Purpose
- ↳ CentOS - FAQ & Readme First
- ↳ Announcements
- ↳ CentOS Social
- ↳ User Comments
- ↳ Website Problems
- CentOS 8 / 8-Stream / 9-Stream
- ↳ 8 /8-Stream / 9-Stream - General Support
- ↳ 8 /8-Stream / 9-Stream - Hardware Support
- ↳ 8 /8-Stream / 9-Stream - Networking Support
- ↳ 8 /8-Stream / 9-Stream - Security Support
- CentOS 7
- ↳ CentOS 7 - General Support
- ↳ CentOS 7 - Software Support
- ↳ CentOS 7 - Hardware Support
- ↳ CentOS 7 - Networking Support
- ↳ CentOS 7 - Security Support
- CentOS Legacy Versions
- ↳ CentOS 5
- ↳ CentOS 5 - General Support
- ↳ CentOS 5 - Software Support
- ↳ CentOS 5 - Hardware Support
- ↳ CentOS 5 - Networking Support
- ↳ CentOS 5 - Server Support
- ↳ CentOS 5 - Security Support
- ↳ CentOS 5 - Oracle Installation and Support
- ↳ CentOS 5 - Miscellaneous Questions
- ↳ CentOS 6
- ↳ CentOS 6 - General Support
- ↳ CentOS 6 - Software Support
- ↳ CentOS 6 - Hardware Support
- ↳ CentOS 6 - Networking Support
- ↳ CentOS 6 - Security Support