[Pdns-users] error which prevented lookup Out of range exception

Oliver Dzombic info at layer7.net
Thu Sep 30 17:44:44 UTC 2021


Hello Brian,

thank you very much.

In the meanwhile i was also checking the sources:

  try {
    data.nameserver = DNSName(parts.at(0));
    data.hostmaster = DNSName(attodot(parts.at(1))); // ahu at ds9a.nl ->
ahu.ds9a.nl, piet.puk at ds9a.nl -> piet\.puk.ds9a.nl
    data.serial = pdns_stou(parts.at(2).c_str());
    data.refresh = pdns_stou(parts.at(3).c_str());
    data.retry = pdns_stou(parts.at(4).c_str());
    data.expire = pdns_stou(parts.at(5).c_str());
    data.minimum = pdns_stou(parts.at(6).c_str());
  }
  catch(const std::out_of_range& oor) {
    throw PDNSException("Out of range exception parsing "+content);
  }


seem _everything_ is a _mandatory_ field... i was not aware of this.

And yes, your example as well as filling out all according to

https://doc.powerdns.com/authoritative/appendices/types.html#soa

will work.

Thank you!

-- 
Mit freundlichen Gruessen / Best regards

Oliver Dzombic
Layer7 Networks

mailto:info at layer7.net

Anschrift:

Layer7 Networks GmbH
Zum Sonnenberg 1-3
63571 Gelnhausen

HRB 96293 beim Amtsgericht Hanau
Geschäftsführung: Oliver Dzombic
UST ID: DE259845632

On 30.09.21 18:43, Brian Candler wrote:
> On 30/09/2021 17:39, Oliver Dzombic via Pdns-users wrote:
>> In 4.3 Versions this SOA record worked:
>>
>> ns3.isp4p.net hostmaster at isp4p.net 2006040100
>>
>> Now with a new server
>>
>> ns3.cloud-interactive.de info at cloud-interactive.de 2021093000
>>
>> or
>>
>> ns3.cloud-interactive.de 2021093000
>>
>> or
>>
>> ns3.cloud-interactive.de
>>
>> nor other combinations do not work.
> 
> 
> 
> Those don't look like complete SOA records.  Can you try this?
> 
> ns3.cloud-interactive.de.info.cloud-interactive.de. 2021093000 14400
> 3600 2419200 60
> 
> As well as the extra fields, the contact E-mail address in the RNAME
> field needs the '@' changed to '.'
> 
> See: https://en.wikipedia.org/wiki/SOA_record
> 


More information about the Pdns-users mailing list