LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-16-2021, 08:00 AM   #1
n00b_noob
Member
 
Registered: Sep 2020
Posts: 436

Rep: Reputation: Disabled
Post Some questions about domain controller, DNS and DHCP servers.


Hello,
I want to use CentOS as an Active Directory Domain Controller, DNS and DHCP servers and join Windows OS clients to my domain and user could use their Usernames and passwords for logging into their systems.
I have some questions:

1- Is "dnsmasq" OK to launch a DNS and DHCP server? Why some Linux administrators prefer it and why others prefer DNS and DHCP services separately?

2- I visited https://wiki.samba.org/index.php/Set...D_DNS_back_end, could Samba acts as a DNS server?

Thank you.
 
Old 04-16-2021, 10:00 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by n00b_noob View Post
1- Is "dnsmasq" OK to launch a DNS and DHCP server?
Yes.
Quote:
2- I visited https://wiki.samba.org/index.php/Set...D_DNS_back_end, could Samba acts as a DNS server?
Also visit https://wiki.samba.org/index.php/Sam...l_DNS_Back_End. It can be used as a DNS server for active directory, and as a DNS forwarder for other domains.
 
1 members found this post helpful.
Old 04-17-2021, 07:44 AM   #3
n00b_noob
Member
 
Registered: Sep 2020
Posts: 436

Original Poster
Rep: Reputation: Disabled
Thank you.
Why someone prefers BIND? Any "dnsmasq" disadvantage?
Is it reasonable to use Samba as a DNS Server?
 
Old 04-17-2021, 08:48 AM   #4
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,341

Rep: Reputation: Disabled
In an Active Directory domain, the DNS server serving the Active Directory DNS zone must be AD-integrated. The internal Samba DNS server is obviously capable of this, and so is BIND, using the BIND9_DLZ module.

dnsmasq knows nothing of AD, and cannot function as a DNS server for an AD zone.
 
2 members found this post helpful.
Old 04-17-2021, 09:24 AM   #5
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Was it you who asked that question in another thread? Samba's DNS server is a full DNS server only for AD. It can't be used as a full DNS server otherwise; it can only function as a forwarder. If that sounds reasonable to you, go ahead.
 
1 members found this post helpful.
Old 04-19-2021, 05:04 AM   #6
n00b_noob
Member
 
Registered: Sep 2020
Posts: 436

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ser Olmy View Post
In an Active Directory domain, the DNS server serving the Active Directory DNS zone must be AD-integrated. The internal Samba DNS server is obviously capable of this, and so is BIND, using the BIND9_DLZ module.

dnsmasq knows nothing of AD, and cannot function as a DNS server for an AD zone.
Thanks.
If I follow https://wiki.samba.org/index.php/Set...ain_Controller, then I must launch a DHCP server too. Am I right?
What is the main usage of "dnsmasq"?
 
Old 04-19-2021, 09:56 AM   #7
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by n00b_noob View Post
What is the main usage of "dnsmasq"?
It's commonly used as DNS and DHCP server for virtual machines connected to virtual networks.
 
Old 04-23-2021, 09:35 AM   #8
n00b_noob
Member
 
Registered: Sep 2020
Posts: 436

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
It's commonly used as DNS and DHCP server for virtual machines connected to virtual networks.
Thanks.
Thus, "dnsmasq" is not an enterprise solution is not a good option for a large network?
 
Old 04-25-2021, 02:32 AM   #9
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by n00b_noob View Post
Thanks.
Thus, "dnsmasq" is not an enterprise solution is not a good option for a large network?
It is an enterprise solution, but in the context of virtual networks. For example, it's used as the default DHCP and DNS server for virtual networks in OpenStack clouds. I guess it's not suitable as a robust solution for an enterprise network, but I can't explain what deficits it has compared to, say, BIND or PowerDNS, and the standard ISC dhcpd.
 
Old 05-04-2021, 03:52 PM   #10
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,665
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
I'd just like to "chime in" here with a few "terminology clarifications." To briefly explain what each of these three server (roles ...) are, conceptually what they do, and conceptually why they exist. They're in no particular order.

(1) In a Windows environment, a domain controller is a fundamental part of the shared-control mechanism that's a hallmark of the way that they allow a single management-point to control an entire network. It provides many services in a centrally-manageable way. It might provide some of the other services described below, and the purpose of it doing so is so that they, also, can be "centrally managed." If you're not participating in – or being managed by – a Windows network, you won't use this.

(2) "DNS" is the "Domain Name Server" which acts as the "master telephone directory." What's the "telephone number" (IP address) of linuxquestions.org? DNS knows the answer.

(3) "DHCP" is a service that's usually provided by router hardware. When a new computer, phone, or whatchamacallit "powers on," it needs a unique IP-address that it can use. DHCP servers dole them out.

Also:

(4) "LDAP" is a method of providing structured data – such as configuration entries or authentication credentials. "Active DirectoryŽ" is Microsoft's trademark for their own particular flavor of more-or-less the same thing. For instance, if you want every computer in your network to present the same set of userids and passwords, and if you want to centrally manage their characteristics, one good way to do this (with or without Windows ...) is to arrange for each computer to consult LDAP instead of using local password-files. Web servers and even Linux itself can be programmed to do this.

"HTH!"

Last edited by sundialsvcs; 05-04-2021 at 03:54 PM.
 
  


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
What kind of Domain Controller do I have? - RHEL 5.1 Samba File server also supposedly acting as Domain Controller AHGoodwin Linux - Server 3 06-20-2017 03:37 PM
replace the existing dns servers with OPEN DNS servers in fedora 13 z99 Linux - Newbie 3 03-23-2011 09:29 AM
Replace windows Domain controller( Active directory , DNS, DHCP) with Linux box mid_nightslover Linux - Enterprise 1 03-26-2010 10:19 AM
DNS Questions Multiple DNS Servers with single domain linuxcrazyguy Linux - Networking 1 01-27-2009 12:21 PM
How to set DNS servers? How to stop auto change of DNS servers? newtovanilla Linux - Newbie 1 10-29-2008 09:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:20 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