Re: [Dnsmasq-discuss] Funny came behaviour

2017-07-09 Thread Gareth Howell
> "expand-hosts" doesn't apply to CNAME records created with the "cname"
> option, which explains the odd behaviour you're seeing --- you'll need
> to manually add the FQDN to the record:
>
> cname=dashticz.agdon.net,domoticz.agdon.net
> cname=piaware.agdon.net,d15c087.agdon.net
>
> This shouldn't be a problem, since dnsmasq will be pushing the domain
> search list "agdon.net" via DHCP so your Mac's resolver will look up
> dashticz.agdon.net when given dashticz anyway.

Hmm, I now get “Duplicate CNAME” errors and dnsmasq won’t start.

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


Re: [Dnsmasq-discuss] Funny came behaviour

2017-07-09 Thread Chris Novakovic
On 09/07/2017 09:17, Gareth Howell wrote:
> I have dnsmasq serving IP addresses. I also have domain=agdon.net
>  and a couple of cname= lines
> (see https://pastebin.com/aGLrWa5K for more detail)
> 
> However, if you look at the transcript
> at https://pastebin.com/YdVpx7y1  you will see that dig behaves properly
> but pings behave oddly. The client is a Mac.

"expand-hosts" doesn't apply to CNAME records created with the "cname"
option, which explains the odd behaviour you're seeing --- you'll need
to manually add the FQDN to the record:

cname=dashticz.agdon.net,domoticz.agdon.net
cname=piaware.agdon.net,d15c087.agdon.net

This shouldn't be a problem, since dnsmasq will be pushing the domain
search list "agdon.net" via DHCP so your Mac's resolver will look up
dashticz.agdon.net when given dashticz anyway.

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


Re: [Dnsmasq-discuss] Tag from interface name?

2017-07-09 Thread Chris Novakovic
On 08/07/2017 20:46, Simon Kelley wrote:
> On 04/07/17 09:06, Chris Novakovic wrote:
>> On 03/07/2017 15:53, Brian Rak wrote:
>>> I'd like to be able to classify DHCP requests based on the interface
>>> they come in on.  I'd like to have a tag based on the interface name
>>> (so, if the request came in over br0, I'd have a br0 tag to match on).
>>>
>>> Is there any way of accomplishing this with dnsmasq currently?  My
>>> interfaces don't actually have an IP address assigned, so I can't match
>>> by IP.
>>
>> Dnsmasq provides this for you already --- it's just not mentioned in the
>> man page for some reason.
>>
> 
> You just have to look harder :)
> 
> "The  tag  system  works as follows: For each DHCP request, dnsmasq col‐
>  lects a set of valid tags from active configuration lines which include
>  set:,  including  one  from  the  dhcp-range  used to allocate the
>  address, one from any matching dhcp-host (and "known"  if  a  dhcp-host
>  matches)  The  tag  "bootp"  is set for BOOTP requests, and a tag whose
>  name is the name of the interface on which the request arrived is  also
>  set."

Consider me sufficiently schooled :)


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


[Dnsmasq-discuss] Funny came behaviour

2017-07-09 Thread Gareth Howell
Hi
I have dnsmasq serving IP addresses. I also have domain=agdon.net and a
couple of cname= lines (see https://pastebin.com/aGLrWa5K for more detail)

However, if you look at the transcript at https://pastebin.com/YdVpx7y1  you
will see that dig behaves properly but pings behave oddly. The client is a
Mac.

Any ideas?


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