LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-28-2020, 10:50 AM   #1
jpedvis
LQ Newbie
 
Registered: Apr 2020
Posts: 3

Rep: Reputation: Disabled
Bind DNS server not working Centos7


Hi, I'm trying to setup a DNS server on my Centos7 virtual machine for 3 nested vms. It isn't working. I've tried so many things but nothing is working. Here are my named.conf and zone files:
options {
directory "/var/named/";
allow-query {any; };
forwarders { 208.67.222.222; }; # This one works at home
listen-on { any; };
#forwarders { 10.102.100.21; }; # This one works at Seneca
};
zone "localhost" {
type master;
file "named.localhost";
};
zone "jpedvis" {
type master;
file "mydb-for-jpedvis-ops";
};

$TTL 3D
@ IN SOA host.jpedvis.ops. root.jpedvis.ops.(
2018042901 ; Serial
8H ; Refresh
2H ; Retry
1W ; Expire
1D ; Negative Cache TTL
)

@ IN NS host
@ IN A 192.168.90.1
host IN A 192.168.90.1
vm1 IN A 192.168.90.2
vm2 IN A 192.168.90.3





Thanks!
 
Old 04-28-2020, 11:34 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,175
Blog Entries: 1

Rep: Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042
Hi and welcome to LQ,

You should define the "Bind DNS server not working" by giving more details like logs, answers to queries etc.

Anyway at a first look your zone name is wrong in named.conf. It should be jpedvis.ops instead of just jpedvis according to the zonefile, e.g:
Code:
options {
directory "/var/named/";
allow-query {any; };
forwarders { 208.67.222.222; }; # This one works at home
listen-on { any; };
#forwarders { 10.102.100.21; }; # This one works at Seneca
};
zone "localhost" {
type master;
file "named.localhost";
};
zone "jpedvis.ops" {
type master;
file "mydb-for-jpedvis-ops";
};
 
1 members found this post helpful.
Old 04-28-2020, 12:07 PM   #3
jpedvis
LQ Newbie
 
Registered: Apr 2020
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bathory View Post
Hi and welcome to LQ,

You should define the "Bind DNS server not working" by giving more details like logs, answers to queries etc.

Anyway at a first look your zone name is wrong in named.conf. It should be jpedvis.ops instead of just jpedvis according to the zonefile, e.g:
Code:
options {
directory "/var/named/";
allow-query {any; };
forwarders { 208.67.222.222; }; # This one works at home
listen-on { any; };
#forwarders { 10.102.100.21; }; # This one works at Seneca
};
zone "localhost" {
type master;
file "named.localhost";
};
zone "jpedvis.ops" {
type master;
file "mydb-for-jpedvis-ops";
};
How could I be so dumb... anyways thanks a ton
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Any problem if I install CENTOS7 Workstation over CENTOS7 Server? Rich Strebendt Linux - Software 5 05-03-2018 11:05 PM
HELP!!!! centOS7 How to setup BIND Andreevic17 Linux - Server 1 03-21-2018 07:00 AM
[SOLVED] can't ping cname in CentOS7 dns server with Unbound rhinolt Linux - Distributions 1 01-20-2017 03:32 PM
[SOLVED] BIND~~ Bind working on Localhost but not not working from remotehost abhishekdixit98 Linux - Server 7 09-01-2015 04:04 AM
BIND - reverse dns queries only working locally, forward dns works fine. SloS13 Linux - Networking 3 08-25-2011 12:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration