[Dnsmasq-discuss] delegations?

Carla Schroder carla at bratgrrl.com
Sun Apr 22 06:44:09 BST 2007


On Saturday 21 April 2007 15:35, Carla Schroder wrote:
> On Saturday 21 April 2007 01:39, Simon Kelley wrote:
> > Carla Schroder wrote:
> > > Does dnsmasq support delegations?
> > >
> > > Here is the setup: I'm running a SipX server which runs BIND and
> > > generates its own configuration files, which is such a lovely thing to
> > > do I could cry with happiness. It creates nice SRV records and
> > > everything.
> > >
> > > So can I create a delegation in dnsmasq pointing to the SipX
> > > nameserver?
> >
> > You can delegate a domain like this:
> >
> > server=/domain.handled.by.sipx/<ip of sipx server>
> >
> > HTH
> >
> > Simon.
>
> Aw man, that's too easy. Thanks. :)

Aaarg, easy, and not working. Here's the setup:

router w/Dnsmasq 192.168.1.50;
pyramid.alrac.net

server w/SipX and BIND  192.168.1.90;
server1.sipx.alrac.net

dnsmasq.conf:

domain-needed
bogus-priv
local=/alrac.net/
expand-hosts
domain=alrac.net
listen-address=127.0.0.1
listen-address=192.168.1.50
listen-address=192.168.2.50
bind-interfaces
#delegation to sipx nameserver
server=/server1.sipx.alrac.net/192.168.1.90
#upstream ISP nameservers
server=[upstream dns]
server=[upstream dns]

The sub-domain I want to delegate is sipx.alrac.net. I have tried these 
variations:

server=/sipx.alrac.net/192.168.1.90
server=/ns1.server1.sipx.alrac.net/192.168.1.90

None of them work. I can query the sipx DNS server from the router:

pyramid:~# dig @192.168.1.90 -t A ns1.sipx.alrac.net

; <<>> DiG 9.3.1 <<>> @192.168.1.90 -t A ns1.sipx.alrac.net
<snip>

;; QUESTION SECTION:
;ns1.sipx.alrac.net.            IN      A

;; ANSWER SECTION:
ns1.sipx.alrac.net.     86400   IN      CNAME   server1.sipx.alrac.net.
server1.sipx.alrac.net. 86400   IN      A       192.168.1.90

;; AUTHORITY SECTION:
sipx.alrac.net.         86400   IN      NS      ns1.sipx.alrac.net.

;; Query time: 27 msec
;; SERVER: 192.168.1.90#53(192.168.1.90)
;; WHEN: Mon Jan  3 12:57:30 2000
;; MSG SIZE  rcvd: 88

Querying server1.sipx.alrac.net also succeeds. But Dnsmasq does not see it at 
all, and returns NXDOMAIN. I get the same results from other LAN PCs.

Yes, I am restarting dnsmasq after making changes.

Any brilliant ideas?

thanks!


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Carla Schroder
Linux geek and random computer tamer
check out my Linux Cookbook! 
http://www.oreilly.com/catalog/linuxckbk/
best book for sysadmins and power users
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



More information about the Dnsmasq-discuss mailing list