[Dnsmasq-discuss] SOA serial increase

Simon Kelley simon at thekelleys.org.uk
Sat Mar 28 17:01:25 GMT 2020


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 <simon at thekelleys.org.uk
>> <mailto:simon at thekelleys.org.uk>> 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. wedwards at cyberfusion.nl <mailto:wedwards at cyberfusion.nl>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Dnsmasq-discuss mailing list
>>>> Dnsmasq-discuss at lists.thekelleys.org.uk
>>>> <mailto: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
>>> <mailto: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
>>
> 
> _______________________________________________
> 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
> 




More information about the Dnsmasq-discuss mailing list