Re: [Dnsmasq-discuss] can't get multiple domains to work

2017-02-20 Thread Spike
I didn't because it seemed wrong, generally speaking the last entry for a
given keyword should override former if dups are allowed at all. In any
case I just tried and that's what happened, with

domain=good
domain=better

host.better started to resolve and host.good no longer resolved.

that said it's true that the most recent hit on the ML for "multiple
domain" did mention a similar setup with two domain lines altho it had two
diff ranges.

thanks,

Spike

On Mon, Feb 20, 2017 at 6:55 PM richardvo...@gmail.com <
richardvo...@gmail.com> wrote:

> Have you tried using more than one domain= line?
>
> On Mon, Feb 20, 2017 at 6:57 PM, Spike  wrote:
>
> Dear all,
>
> first time poster here so first things first, thanks to all of you that
> have worked on dnsmasq, all of us here have greatly benefited for years
> from this great piece of software.
>
> Second, my google-fu and manpage reading are failing me and I can't seem
> to find a way to have dnsmasq resolve queries for multiple domains. I've
> found some posts from 2008 about introducing the feature and a recent one
> about multiple domains, but for different ranges.
>
> What I'm dealing with is a change of domain, so right now dnsmasq.conf has
> domain=good and eventually it will be domain=better , but during the
> transition phase it would be useful if it could be domain=good,better so
> that queries for host.good and host.better resolve to the same dhcp-host
> definition.
>
> is that possible? what's the actual syntax? The manual mentions "domainS",
> plural, but not if there is a particular syntax to specify them and comma
> does not work (for example for local it specifically mentions
> /domain/domain/).
>
> I guess the alternative if the above isn't possible would be to allow any
> kind of domain to basically be ignored so that entries are returned as long
> as the host path matches (this is just during the transition phase so it
> would be ok)
>
> thanks,
>
> Spike
>
> ___
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss@lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
>
>
___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] can't get multiple domains to work

2017-02-20 Thread richardvo...@gmail.com
Have you tried using more than one domain= line?

On Mon, Feb 20, 2017 at 6:57 PM, Spike  wrote:

> Dear all,
>
> first time poster here so first things first, thanks to all of you that
> have worked on dnsmasq, all of us here have greatly benefited for years
> from this great piece of software.
>
> Second, my google-fu and manpage reading are failing me and I can't seem
> to find a way to have dnsmasq resolve queries for multiple domains. I've
> found some posts from 2008 about introducing the feature and a recent one
> about multiple domains, but for different ranges.
>
> What I'm dealing with is a change of domain, so right now dnsmasq.conf has
> domain=good and eventually it will be domain=better , but during the
> transition phase it would be useful if it could be domain=good,better so
> that queries for host.good and host.better resolve to the same dhcp-host
> definition.
>
> is that possible? what's the actual syntax? The manual mentions "domainS",
> plural, but not if there is a particular syntax to specify them and comma
> does not work (for example for local it specifically mentions
> /domain/domain/).
>
> I guess the alternative if the above isn't possible would be to allow any
> kind of domain to basically be ignored so that entries are returned as long
> as the host path matches (this is just during the transition phase so it
> would be ok)
>
> thanks,
>
> Spike
>
> ___
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss@lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
>
___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


[Dnsmasq-discuss] can't get multiple domains to work

2017-02-20 Thread Spike
Dear all,

first time poster here so first things first, thanks to all of you that
have worked on dnsmasq, all of us here have greatly benefited for years
from this great piece of software.

Second, my google-fu and manpage reading are failing me and I can't seem to
find a way to have dnsmasq resolve queries for multiple domains. I've found
some posts from 2008 about introducing the feature and a recent one about
multiple domains, but for different ranges.

What I'm dealing with is a change of domain, so right now dnsmasq.conf has
domain=good and eventually it will be domain=better , but during the
transition phase it would be useful if it could be domain=good,better so
that queries for host.good and host.better resolve to the same dhcp-host
definition.

is that possible? what's the actual syntax? The manual mentions "domainS",
plural, but not if there is a particular syntax to specify them and comma
does not work (for example for local it specifically mentions
/domain/domain/).

I guess the alternative if the above isn't possible would be to allow any
kind of domain to basically be ignored so that entries are returned as long
as the host path matches (this is just during the transition phase so it
would be ok)

thanks,

Spike
___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] Support of labels in --interface

2017-02-20 Thread Petr Mensik
I think it is automatic if there is already IP from the same subnet on that 
interface.

$ ip a add 192.168.122.1/24 dev virbr0
# no secondary flag yet, first address of 192.168.122.0/24
$ ip a add 192.168.122.254/24 dev virbr0 label virbr0:1
# secondary flag present, it is second address of 192.168.122.0/24 on that 
device
--
Petr Menšík
Software Engineer
Red Hat, http://www.redhat.com/
email: pemen...@redhat.com  PGP: 65C6C973

- Original Message -
From: "Simon Kelley" 
To: dnsmasq-disc...@thekelleys.org.uk
Sent: Friday, February 17, 2017 1:16:59 PM
Subject: Re: [Dnsmasq-discuss] Support of labels in --interface

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256



On 15/02/17 17:38, Petr Mensik wrote:
> Hi!

> Let's say my configuration is: 4: virbr0:
>  mtu 1500 qdisc noqueue state UP
> group default qlen 1000 link/ether 52:54:00:2b:ee:d3 brd
> ff:ff:ff:ff:ff:ff inet 192.168.122.1/24 brd 192.168.122.255 scope
> global virbr0 valid_lft forever preferred_lft forever inet
> 192.168.122.254/24 scope global secondary virbr0:1 valid_lft
> forever preferred_lft forever
> 

Quick question from the lazy: how do you set the "secondary" flag on
the second address?

ip addr add  dev virbr0 label virbr0:1

doesn't seem to.

Dunno if it matters, just want to replicate this exactly


Cheers,

Simon.
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.22 (GNU/Linux)

iQIcBAEBCAAGBQJYpum7AAoJEBXN2mrhkTWi74gP/A1nDuRres/jwNlJBBa1Ooa1
GFS3gGsMTxlZpank4bsH9MUnezzLMwkTa/F3Pz2jztnVzGwSplmZqtqFQErYaLWR
wyJXGGeNNlRt/u2dChLMWTO/qyf2AVfa+Ght66npzwJ0laVVkBishPHDcCKPhLIY
Rv5+WSsgqFgUwMFpjj8xj0WJJU7iNjCG4G9dwlmHu9kElwnW9xiL9dC6dDZuLOrd
GHlDodp7c5L5R7UQkvnfmlLWCOgz6/21Z1LkLBlsDyjpQcX+e7G5shb7r2UEEX0o
5RX2+3utnyGAGysiaVF9logiGCN7Hx/dBhvwtrvdcDSxa944GavLtHVSftuwIGZG
RDZIMea2DixSJUuOjGJ0MIfLg6IeoigSGIlNgLP++EupOz6fqxT2iJbaQ0M4Mqtm
H6haQkMT7Xj5OUfdfptXmR89idQRoPP7WIGU8CPQrs70vLpdGwKoF7nbT3KqeVpK
C+9CvHAxFKtWoElIzVPn7Oa2Zz/alXBBXdIfRg5TEP0QrJZCgPBixZ9Yy5F2fVxE
fP88SazdH7Yq6HDlS6KfPPq6N+0IklD0Y6GoBcchxxPpJpKFCkhXAS8EKFb04QLg
ZgPOzu73LFmed9YAXSFggR+eMmxN2M5ImPidiW8/xLCvHgtvn3/EOEi3VcU2gOS6
wczS9ivnbdarmpyPP4i/
=8wXW
-END PGP SIGNATURE-

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] [OT] A question about MX records

2017-02-20 Thread Chris Green
On Sun, Feb 19, 2017 at 09:25:01PM -0600, richardvo...@gmail.com wrote:
>If by "alias", you mean a second A record for 84.92.49.234, then the
>common practice is to use a hostname of mail.domain.tld

Yes, this is what I intended to mean. My question is whether it's
necessary to do this so that the MX record points at mail.zbmc.eu or
is my existing setup where it simply points at the 'root' A record OK? 

>If by "alias", you mean a CNAME, you should know that listing a CNAME
>in an MX record violates the RFC.  It often works, but some servers
>check for this and reject all mail originating from a domain whose MX
>is misconfigured.
> 
>On Sun, Feb 19, 2017 at 3:26 PM, Chris Green <[1]c...@isbd.net> wrote:
> 
>  I'm afraid this is a little off topic for dnsmasq but I don't know
>  where else I could ask.
>  If I have a small server that is both a basic internet host *and*
>  the
>  mail server for that host how does one set up the MX record in the
>  zone file?
>  I.e. I have a server for the domain [2]zbmc.eu and 'host [3]zbmc.eu'
>  returns
>  the following:-
>  chris@cheddar$ host [4]zbmc.eu
>  [5]zbmc.eu has address 84.92.49.234
>  [6]zbmc.eu mail is handled by 10 [7]zbmc.eu.
>  chris@cheddar$
>  Is this correct or should there be an alias so the mail server has a
>  different name?
>  --
>  Chris Green
>  ___
>  Dnsmasq-discuss mailing list
>  [8]Dnsmasq-discuss@lists.thekelleys.org.uk
>  [9]http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
> 
> References
> 
>1. mailto:c...@isbd.net
>2. http://zbmc.eu/
>3. http://zbmc.eu/
>4. http://zbmc.eu/
>5. http://zbmc.eu/
>6. http://zbmc.eu/
>7. http://zbmc.eu/
>8. mailto:Dnsmasq-discuss@lists.thekelleys.org.uk
>9. http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss

> ___
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss@lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


-- 
Chris Green

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss