[Pdns-users] pdnsutil load-zone and ALIAS records

Markus Ehrlicher Markus.Ehrlicher at komsa.de
Thu May 16 09:35:03 UTC 2019


Okay, I can confirm this behavior:

mysql> select * from records where type ="ALIAS" AND name="provider.com";
+-----+-----------+--------------+-------+--------------------+-------+------+-------------+----------+-----------+------+
| id  | domain_id | name         | type  | content            | ttl   | prio | change_date | disabled | ordername | auth |
+-----+-----------+--------------+-------+--------------------+-------+------+-------------+----------+-----------+------+
| 146 |         7 | provider.com | ALIAS | cms.example.cloud. | 10800 |    0 |        NULL |        0 | NULL      |    1 |
+-----+-----------+--------------+-------+--------------------+-------+------+-------------+----------+-----------+------+

When I edit the zone (and add a record for testing), pdnsutil recognizes no errors/warning. Only if I check the zone, a warning appears:

root at markusehrlicher:~# pdnsutil edit-zone provider.com
May 16 11:30:39 [bindbackend] Parsing 0 domain(s), will report when done
May 16 11:30:39 [bindbackend] Done parsing domains, 0 rejected, 0 new, 0 removed
Checked 10 records of 'provider.com', 0 errors, 0 warnings.
Detected the following changes:
+test.provider.com 3600 IN A 10.10.10.10
(a)pply these changes, (e)dit again, (r)etry with original zone, (q)uit: a

root at markusehrlicher:~# pdnsutil check-zone provider.com
May 16 11:31:11 [bindbackend] Parsing 0 domain(s), will report when done
May 16 11:31:11 [bindbackend] Done parsing domains, 0 rejected, 0 new, 0 removed
[Warning] Parsed and original record content are not equal: provider.com IN ALIAS 'cms.example.cloud.' (Content parsed as 'cms.example.cloud')
Checked 10 records of 'provider.com', 0 errors, 1 warnings.

Markus

-----Ursprüngliche Nachricht-----
Von: Pdns-users <pdns-users-bounces at mailman.powerdns.com> Im Auftrag von Thomas Plant via Pdns-users
Gesendet: Donnerstag, 16. Mai 2019 11:24
An: pdns-users at mailman.powerdns.com
Betreff: Re: [Pdns-users] pdnsutil load-zone and ALIAS records

Am 16.05.2019 um 11:19 schrieb Markus Ehrlicher:
> Hi :)
>
> When I import your example with "pdnsutil load-zone provider.com provider.zone", the dot isn't there, when I lookup the zone with "pdnsutil edit-zone provider.com":
>
> ; Warning - every name in this file is ABSOLUTE!
> $ORIGIN .
> provider.com    10800   IN      SOA     ns1.provider.com domain.provider.com 2018110204 10800 3600 777600 3600
> provider.com    10800   IN      NS      ns1.provider.com
> provider.com    10800   IN      NS      ns2.provider.com
> provider.com    10800   IN      NS      ns3.provider.com
> provider.com    10800   IN      MX      5 mx1.provider.com
> provider.com    10800   IN      MX      5 mx2.provider.com
> provider.com    10800   IN      ALIAS   cms.example.cloud
> autodiscover.provider.com       10800   IN      CNAME   email.provider.com
> www.provider.com        10800   IN      CNAME   cms.example.cloud
>
> best regards,
> Markus
>
> -----Ursprüngliche Nachricht-----
> Von: Pdns-users <pdns-users-bounces at mailman.powerdns.com> Im Auftrag von Thomas Plant via Pdns-users
> Gesendet: Donnerstag, 16. Mai 2019 11:10
> An: pdns-users at mailman.powerdns.com
> Betreff: Re: [Pdns-users] pdnsutil load-zone and ALIAS records
>
> Am 15.05.2019 um 16:01 schrieb Thomas Plant via Pdns-users:
>> Sorry, forgot...I'm using pnds version 4.1.8 and MariaDB 10.3.15 on
>> CentOS 7 fully patched.
>>
>> Am 15.05.2019 um 15:51 schrieb Thomas Plant via Pdns-users:
>>> Hello all,
>>>
>>> I've seen that when an ALIAS record is loaded from a file via 'pdnsutil
>>> load-zone' it leaves the dot at the end intact.
>>> Shouldn'it be removed?
>>>
>>> Here is an example of a DNS zone file I import:
>>>
>>> ; Zone file for "testzone.com" exported from Simple DNS Plus at
>>> 19.11.2018 10:53:44
>>> $TTL 10800
>>> @               IN SOA  ( ns1.provider.com. ; Primary DNS server
>>>                           domain.provider.com. ; Responsible person
>>>                           2018110204   ; Serial number
>>>                           10800        ; Refresh
>>>                           3600         ; Retry
>>>                           777600       ; Expire
>>>                           3600       ) ; Minimum TTL
>>>                 NS      ns3.provider.com.
>>>                 NS      ns1.provider.com.
>>>                 NS      ns2.provider.com.
>>>                 MX      5 mx2.provider.com.
>>>                 MX      5 mx1.provider.com.
>>>                 ALIAS    cms.example.cloud.
>>> autodiscover            CNAME   email.provider.com.
>>> www             CNAME   cms.example.cloud.
>>>
>>>
>>> Greetings,
>>> Thomas
>>> _______________________________________________
>>> Pdns-users mailing list
>>> Pdns-users at mailman.powerdns.com
>>> https://mailman.powerdns.com/mailman/listinfo/pdns-users
>> _______________________________________________
>> Pdns-users mailing list
>> Pdns-users at mailman.powerdns.com
>> https://mailman.powerdns.com/mailman/listinfo/pdns-users
> Was this a kind of stupid question? If yes, sorry for that.
> Or should I file a bug report about this?
> _______________________________________________
> Pdns-users mailing list
> Pdns-users at mailman.powerdns.com
> https://mailman.powerdns.com/mailman/listinfo/pdns-users
> _______________________________________________
> Pdns-users mailing list
> Pdns-users at mailman.powerdns.com
> https://mailman.powerdns.com/mailman/listinfo/pdns-users
Hi,

yes in 'pdnsutil edit-zone' I did not see the dot. Just in the database
table. Should have written that.
When I tried to edit the zone with pdnsutil it gave me an error on
saving. When I deleted the dot from the record in the database it was ok.

Regards,
Thomas
_______________________________________________
Pdns-users mailing list
Pdns-users at mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/pdns-users


More information about the Pdns-users mailing list