Re: [Dnsmasq-discuss] SOA serial increase

2020-03-28 Thread Simon Kelley
On 20/03/2020 11:15, William Edwards wrote:
> Hi Simon!
>> If you don't explicitly set the serial, then it should start at the
>> current epoch  time (ie seconds since 1/1/1970) which avoids the problem
>> unless you average more than one new DHCP lease per second.
> After setting 'auth-server', this behaviour has been 'fixed'.
> Without 'auth-server':
> --
> vlan5.hosts.cyberfusion.space. 600 IN    SOA    . . 1 1200 180 1209600 600
> --
> With 'auth-server':
> --
> vlan5.hosts.cyberfusion.space. 600 IN    SOA    
> vlan5.hosts.cyberfusion.space. hostmaster.vlan5.hosts.cyberfusion.space. 
> 1584702843 1200 180 1209600 600
> --
> So this seems like a combination of 1) possibly some room for improvement in 
> docs (there is little mention of serials there at all) and 2) working too 
> late at night.
> William


The forthcoming 2.81 release errors in startup is auth-server is not set
under these circumstances.

http://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=08933475abd0580cff747e3d1e0db3865207a200


Cheers,

Simon.

> 
> On 20/03/2020 08:18, William Edwards wrote:
>>
>> Op 20 mrt. 2020 om 00:39 heeft Simon Kelley > > het volgende geschreven:
>>
>>> On 19/03/2020 17:28, William Edwards wrote:
 Hello,

 Does dnsmasq increase SOA serial when adding a new DNS record after DHCP
 lease is requested?
>>>
>>> Yes.
>>>

 I am not sure because docs say '--auth-soa' allows for specifying serial.
>>>
>>> It does, but it's optional: dnsmasq will generate one for you. If you do
>>> specify a serial, it will still get incremented after a new DHCP lease
>>> is created.
>>
>> Thanks.
>>
>> I noticed that serial is reset back to 1 when dnsmasq is restarted. This
>> would cause the serial to be lower on dnsmasq than its slaves after a
>> restart, even when DHCP leases are handed out and DNS records are added.
>>
>> Is this intentional behaviour?
>>
>>>
>>>
>>> Cheers,
>>>
>>> Simon.
>>>

 Met vriendelijke groeten,

 William Edwards
 T. 040 - 711 44 96
 E. wedwa...@cyberfusion.nl 





 ___
 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 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 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] SOA serial increase

2020-03-20 Thread William Edwards
Hi Simon!
> If you don't explicitly set the serial, then it should start at the
> current epoch  time (ie seconds since 1/1/1970) which avoids the problem
> unless you average more than one new DHCP lease per second.
After setting 'auth-server', this behaviour has been 'fixed'.
Without 'auth-server':
--
vlan5.hosts.cyberfusion.space. 600 IN    SOA    . . 1 1200 180 1209600 600
--
With 'auth-server':
--
vlan5.hosts.cyberfusion.space. 600 IN    SOA    vlan5.hosts.cyberfusion.space. 
hostmaster.vlan5.hosts.cyberfusion.space. 1584702843 1200 180 1209600 600
--
So this seems like a combination of 1) possibly some room for improvement in 
docs (there is little mention of serials there at all) and 2) working too late 
at night.
William

On 20/03/2020 08:18, William Edwards wrote:
>
> Op 20 mrt. 2020 om 00:39 heeft Simon Kelley  > het volgende geschreven:
>
>> On 19/03/2020 17:28, William Edwards wrote:
>>> Hello,
>>>
>>> Does dnsmasq increase SOA serial when adding a new DNS record after DHCP
>>> lease is requested?
>>
>> Yes.
>>
>>>
>>> I am not sure because docs say '--auth-soa' allows for specifying serial.
>>
>> It does, but it's optional: dnsmasq will generate one for you. If you do
>> specify a serial, it will still get incremented after a new DHCP lease
>> is created.
>
> Thanks.
>
> I noticed that serial is reset back to 1 when dnsmasq is restarted. This
> would cause the serial to be lower on dnsmasq than its slaves after a
> restart, even when DHCP leases are handed out and DNS records are added.
>
> Is this intentional behaviour?
>
>>
>>
>> Cheers,
>>
>> Simon.
>>
>>>
>>> Met vriendelijke groeten,
>>>
>>> William Edwards
>>> T. 040 - 711 44 96
>>> E. wedwa...@cyberfusion.nl 
>>>
>>>
>>>
>>>
>>>
>>> ___
>>> 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 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 mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] SOA serial increase

2020-03-20 Thread Simon Kelley
If you don't explicitly set the serial, then it should start at the
current epoch  time (ie seconds since 1/1/1970) which avoids the problem
unless you average more than one new DHCP lease per second.

Not sure which you are seeing it reseting to zero: no RTC and starting
dnsmasq before running NTP, maybe?


Simon.


On 20/03/2020 08:18, William Edwards wrote:
> 
> Op 20 mrt. 2020 om 00:39 heeft Simon Kelley  > het volgende geschreven:
> 
>> On 19/03/2020 17:28, William Edwards wrote:
>>> Hello,
>>>
>>> Does dnsmasq increase SOA serial when adding a new DNS record after DHCP
>>> lease is requested?
>>
>> Yes.
>>
>>>
>>> I am not sure because docs say '--auth-soa' allows for specifying serial.
>>
>> It does, but it's optional: dnsmasq will generate one for you. If you do
>> specify a serial, it will still get incremented after a new DHCP lease
>> is created.
> 
> Thanks.
> 
> I noticed that serial is reset back to 1 when dnsmasq is restarted. This
> would cause the serial to be lower on dnsmasq than its slaves after a
> restart, even when DHCP leases are handed out and DNS records are added.
> 
> Is this intentional behaviour?
> 
>>
>>
>> Cheers,
>>
>> Simon.
>>
>>>
>>> Met vriendelijke groeten,
>>>
>>> William Edwards
>>> T. 040 - 711 44 96
>>> E. wedwa...@cyberfusion.nl 
>>>
>>>
>>>
>>>  
>>>
>>> ___
>>> 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 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] SOA serial increase

2020-03-20 Thread William Edwards

> Op 20 mrt. 2020 om 00:39 heeft Simon Kelley  het 
> volgende geschreven:
> 
>> On 19/03/2020 17:28, William Edwards wrote:
>> Hello,
>> 
>> Does dnsmasq increase SOA serial when adding a new DNS record after DHCP
>> lease is requested?
> 
> Yes.
> 
>> 
>> I am not sure because docs say '--auth-soa' allows for specifying serial.
> 
> It does, but it's optional: dnsmasq will generate one for you. If you do
> specify a serial, it will still get incremented after a new DHCP lease
> is created.

Thanks.

I noticed that serial is reset back to 1 when dnsmasq is restarted. This would 
cause the serial to be lower on dnsmasq than its slaves after a restart, even 
when DHCP leases are handed out and DNS records are added.

Is this intentional behaviour?

> 
> 
> Cheers,
> 
> Simon.
> 
>> 
>> Met vriendelijke groeten,
>> 
>> William Edwards
>> T. 040 - 711 44 96
>> E. wedwa...@cyberfusion.nl
>> 
>> 
>> 
>>  
>> 
>> ___
>> 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 mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] SOA serial increase

2020-03-19 Thread Simon Kelley
On 19/03/2020 17:28, William Edwards wrote:
> Hello,
> 
> Does dnsmasq increase SOA serial when adding a new DNS record after DHCP
> lease is requested?

Yes.

> 
> I am not sure because docs say '--auth-soa' allows for specifying serial.

It does, but it's optional: dnsmasq will generate one for you. If you do
specify a serial, it will still get incremented after a new DHCP lease
is created.


Cheers,

Simon.

> 
> Met vriendelijke groeten,
> 
> William Edwards
> T. 040 - 711 44 96
> E. wedwa...@cyberfusion.nl
> 
> 
> 
>  
> 
> ___
> 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] SOA serial increase

2020-03-19 Thread William Edwards

Hello,

Does dnsmasq increase SOA serial when adding a new DNS record after DHCP lease 
is requested?

I am not sure because docs say '--auth-soa' allows for specifying serial.


Met vriendelijke groeten,

William Edwards
T. 040 - 711 44 96
E. wedwa...@cyberfusion.nl




 

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