LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-20-2014, 09:12 AM   #1
glennbtn
Member
 
Registered: Dec 2009
Posts: 154

Rep: Reputation: 19
Dnsmasq advise


Hi All

I am running a Zimbra box on my local network. I have dnsmasq installed rather than dealing with split dns. I am a bit of a novice with it so was after a bit of advised as only using purely for Zimbra, no dhcp or anything.

1. I have 2 domains. Should I be adding both and if so how should I do this? (config below)
2. I enclose my basic config which I found online. IS this correct

server=8.8.8.8

server=8.8.4.4

mx-host=thisismydomain.co.uk,mail.thisismydomain.co.uk,5

listen-address=127.0.0.1


Thanks

Glenn
 
Old 05-18-2014, 03:35 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by glennbtn View Post
(..) I have dnsmasq installed rather than dealing with split dns. (..) was after a bit of advised as only using purely for Zimbra, no dhcp or anything.
As far as I'm aware "split horizon" DNS means restricting who may ask for what. Commonly one configures two or more "views" if a name server serves as a caching-only DNS for LAN users and as authoritative name server for tEh IntarWebs. While it may compound things if you never read the Dnsmasq manual and examples, if one needs to force DNS lookups through the local cache it makes perfect sense to force clients to use Dnsmasq as DHCP daemon since it is easier to have it modify DNS server entries while handing out leases.


Quote:
Originally Posted by glennbtn View Post
(..) I have 2 domains. Should I be adding both and if so how should I do this? (config below)
If you intend to use it for local purposes only then see the Dnsmasq manual, you could for example use a different hosts file with "--addn-hosts". If you intend to use Dnsmasq as an authoritative Name Server then you should not be running an authoritative DNS on the same system as Whatever Else is running (plus you should have slaves in different networks) and the "listen-address" you gave won't work as it needs to listen on all interfaces. The MX record solution is something you can test, for example using 'dig' with "-t MX" for your local domain. Personally I doubt Dnsmasq will work as a split horizon DNS, let's hope you or somebody else proves me wrong.


//NTLB
 
Old 05-18-2014, 08:13 AM   #3
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
As ever, there is much information on DNS Servers on the Wikipedia page. In particular, this note

Quote:
Dnsmasq can do basic split-horizon DNS based on the interface of the source request using the localise-queries configuration parameter.
seems relevant. I assume that this means that it can't do any more general split-horizon DNS than that described. Note also that I haven't tried it and hope not to. In part, this is because the link above refers to the DNSMasq manual and that says:

Quote:
-y, --localise-queries
Return answers to DNS queries from /etc/hosts which depend on the interface over which the query was received. If a name in /etc/hosts has more than one address associated with it, and at least one of those addresses is on the same subnet as the interface to which the query was sent, then return only the address(es) on that subnet. This allows for a server to have multiple addresses in /etc/hosts corresponding to each of its interfaces, and hosts will get the correct address based on which network they are attached to. Currently this facility is limited to IPv4.
and that makes my brain hurt, particularly trying to think whether there are any circumstances in which making use of this facility might be a good idea (and, in particular, thinking about whether the lack of ipv6 support could have negative consequences, is not something that I want to do).

Note also that DNSMasq is a good, simple, product which really does one thing and does it well (and you can compare and contrast that description with any description of BIND, for example). There does come a point at which you are stretching the product beyond what it will reasonably do, and at that point you will find that you should consider either a different set of requirements, which might imply a different architecture, or using a product which is actually intended for a job of the complexity required, which will, of necessity, be much more interesting to configure.

HTH.

Last edited by salasi; 05-18-2014 at 08:14 AM. Reason: thoughtless cut and paste!
 
  


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
Do I need dnsmasq? rng Linux - General 7 05-17-2013 03:17 AM
dnsmasq harinathreddy.c Linux - Software 2 11-03-2012 12:46 AM
Dnsmasq imas Linux - Newbie 2 04-13-2012 06:12 AM
DNSMASQ anyone? Help! JeffC1 Linux - Software 3 03-31-2009 10:23 AM
Dnsmasq dunkyb Linux - Software 0 03-16-2003 02:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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