dnsmasq+named together (was: Re: Forward Domain)

2012-01-19 Thread /dev/rob0
On Sun, Jan 15, 2012 at 04:41:15PM +, Markus Braun wrote:
 i googled the last daysi cant run DNSMASQ and BIND9 both on
 the same port or?

Obviously not, but I have set them both up on the same machine: 
dnsmasq(8) as DHCP and authoritative DNS server, named(8) as 
the upstream caching resolver for dnsmasq.

Excerpt from the dnsmasq config:


...
server=127.0.0.1#1053
# to use nameserver 127.0.0.1 in resolv.conf(5)
no-resolv
...


And the entire named.conf(5) is simple:


# directory might not be necessary if not making reference to any
# files. Also, I chose to enable DNSSEC; you might not want that.
options {
directory /var/named;
listen-on port 1053 { 127.0.0.1; };
dnssec-lookaside auto;
dnssec-validation auto;
};

# With named on two unprivileged ports, it could run as non-root, if
# desired. But if you're going to run as root, this controls stanza
# isn't necessary.
controls {
inet 127.0.0.1 port 1035 allow { localhost; };
};

# This is optional; without it and /var/named/named.root the
# built-in hints are used.
zone . IN {
type hint;
file named.root;
};


Each project is well-documented; refer to the manual pages as 
indicated and to the BIND 9 ARM for more information.
-- 
  http://rob0.nodns4.us/ -- system administration and consulting
  Offlist GMX mail is seen only if /dev/rob0 is in the Subject:
___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: dnsmasq+named together (was: Re: Forward Domain)

2012-01-19 Thread WBrown
rob0 wrote on 01/19/2012 04:05:26 PM:

 ...
 server=127.0.0.1#1053
 # to use nameserver 127.0.0.1 in resolv.conf(5)
 no-resolv
 ...

 listen-on port 1053 { 127.0.0.1; };

Are both of these listening on port 1053?  That ain't gonna work.  Put one 
of them back on 53 or on some other port such as 2053.



Confidentiality Notice: 
This electronic message and any attachments may contain confidential or 
privileged information, and is intended only for the individual or entity 
identified above as the addressee. If you are not the addressee (or the 
employee or agent responsible to deliver it to the addressee), or if this 
message has been addressed to you in error, you are hereby notified that 
you may not copy, forward, disclose or use any part of this message or any 
attachments. Please notify the sender immediately by return e-mail or 
telephone and delete this message from your system.
___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users