[Dnsmasq-discuss] Redirect internal non existent hosts

Nikita N. nikitan at operamail.com
Wed Jan 15 18:27:00 GMT 2014


Hi Robert,
if that can be of help, Im doing like that in my dnsmasq.conf
[...]
address=/mysite1.mydomain.com/192.168.0.2
address=/mysite2.mydomain.com/192.168.0.3
address=/#/192.168.0.1
[...]
if its not mysite1 or mysite2, all the rest goes to 192.168.0.1 :)
Regards,

On Wed, Jan 15, 2014, at 09:35 AM, Simon Kelley wrote:
> On 14/01/14 09:35, Robert Sweetnam wrote:
> > Hi all,
> >
> > We've been using dnsmasq very successfully now for nearly a year. However I just have one quick query and unfortunately all my searching has come up with nothing.
> >
> > As we use dnsmasq internally we would like to redirect unknown hosts to an internal server.
> >
> > e.g. there's no host called ghost.mydomain.com so it should instead return an address of portal.mydomain.com
> >
> > Is this possible? I was exploring the use of NXDOMAIN but it didn't seem to fit the bill.
> 
> No, it's generally considered to be a bad thing to do, and dnsmasq has a 
> function (bogus-nxdomain) which attempt to reverse it, when ISPs play 
> this trick. It's worth Googling "Verisgn NXDOMAIN" for why it's a bad
> idea.
> 
> Cheers,
> 
> Simon.
> 
> >
> > We're currently running dnsmasq 2.62 as shipped with Debian Wheezy.
> >
> > Thanks in advance.
> >
> > Best regards,
> > Robert
> >
> > _______________________________________________
> > Dnsmasq-discuss mailing list
> > Dnsmasq-discuss at lists.thekelleys.org.uk
> > http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
> >
> 
> 
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss

-- 
http://www.fastmail.fm - Faster than the air-speed velocity of an
                          unladen european swallow




More information about the Dnsmasq-discuss mailing list