[Dnsmasq-discuss] DNAME or domain to domain transltion?
Adrian Lewis
adrian at alsiconsulting.co.uk
Tue Mar 17 01:33:53 GMT 2015
Would it be fair to assume that there is no trick to this and if so, is
there any interest in a feature request for supporting DNAME records?
Unfortunately I'm simply a (very grateful) freeloader with no programming
skills whatsoever. I have no idea whether implementing this would be
something really simple or the opposite.
Many thanks,
Adrian
-----Original Message-----
From: Adrian Lewis [mailto:adrian at alsiconsulting.co.uk]
Sent: 11 March 2015 19:06
To: 'dnsmasq-discuss at lists.thekelleys.org.uk'
Subject: DNAME or domain to domain transltion?
Hi,
I've tried to find this out through reading and googling and I can't find
any obvious solution so I was hoping someone might know a trick that would
help me. I'm trying to do some sort of domain to domain translation so
that when a query for the a record of host1.firstdomain.tld is received,
dnsmasq does a lookup for host1.seconddomain.tld and returns the IP as if
the client had asked for host1.seconddomain.tld.
For an individual host this is much the same as a CNAME record but I need
to be able to specify the hostname dynamically so that
%anything%.firstdomain.tld is a CNAME for %anything%.seconddomain.tld.
Wildcards don't help either as this is not a case of
%anything%.firstdomain.tld being a CNAME for
specifichost.seconddomain.tld.
>From what I gather, this is what a DNAME record will do although support
for this type of record seems a little scarce and dnsmasq doesn't support
these directly. The purpose is not nefarious and it is all being done for
internal to internal translation. I've not gone into why I need this in
any great detail but it's nothing dodgy.
The --synth-domain feature suggests that there is some sort of engine to
create dynamic replies based on the query but I need the equivalent of:
--synth-domain=firstdomain.tld,seconddomain.tld
Can anyone help?
TIA,
Adrian
More information about the Dnsmasq-discuss
mailing list