[Pdns-users] Strange behaviour with ALIAS/CNAME records

Andrea Biancalani a.biancalani at conmet.it
Mon Apr 17 12:49:15 UTC 2023


Hello Brian,

you're totally right about that, this is some system info

> root at ns1:~#*lsb_release -a*
> No LSB modules are available.
> Distributor ID: Ubuntu
> Description:    Ubuntu 22.04.2 LTS
> Release:        22.04
> Codename:       jammy
>
> root at ns1:~# *uname -a*
> Linux /ns1.fqdn.name/ 5.15.0-69-generic #76-Ubuntu SMP Fri Mar 17 
> 17:19:29 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
>
> root at ns1:~# *pdns_server -v*
> Apr 17 14:44:14 Loading '/usr/lib/x86_64-linux-gnu/pdns/libbindbackend.so'
> Apr 17 14:44:14 [bind2backend] *This is the bind backend version 
> 4.7.4* (Apr 17 2023 07:23:58) (with bind-dnssec-db support) reporting
> Apr 17 14:44:14 Loading 
> '/usr/lib/x86_64-linux-gnu/pdns/libgmysqlbackend.so'
> Apr 17 14:44:14 [gmysqlbackend] *This is the gmysql backend version 
> 4.7.4* (Apr 17 2023 07:23:58) reporting
> Apr 17 14:44:14 This is a standalone pdns
> Apr 17 14:44:14 Previous controlsocket 
> '/var/run/pdns/pdns.controlsocket' is in use



Il 17/04/2023 14:23, Brian Candler ha scritto:
> I suggest you specify the version of pdns authoritative you're 
> running, otherwise this isn't reproducible by anyone.  Also what 
> backend you're using and how you're adding/removing records, although 
> I'm guessing it's probably the bind backend.
>
>
> On 17/04/2023 12:50, Andrea Biancalani via Pdns-users wrote:
>
>> 4) edit the zone example.com and modify contents like this
>>
>>>     @    IN ALIAS 60 mytest.example.com.
>>>     www IN CNANE 60 @.
>>
>>
>>
>> 5) commit changes, it will popup an error
>>
>> *RRset www.example.com. IN CNAME: Conflicts with pre-existing RRSET*
>>
>
> (assuming you meant "CNAME" not "CNANE")
>
> The implication is that there is some other record for "www.example.com"
>
> What does the following command show at that point?
>
> dig @x.x.x.x www.example.com. any
>
> (where x.x.x.x is your pdns-auth server's address)
>
>
>
>> 6) delete now the www record and commit changes
>> 7) create now the same record, as before
>>
>>>     @    IN ALIAS 60 mytest.example.com.
>>>     www IN CNANE 60 @.
>>
>>
>>
>> 8) commit changes, and /voilà /... *SUCCESS: Applied changes 
>> successfully.
>> *
>
> Is it possible that you deleted other records for "www.example.com" at 
> the same time?
>
> Again, what does "dig @x.x.x.x www.example.com. any" show at this 
> point, and is it different to case 5?
>
>
>

-- 
Andrea Biancalani - /Rep. Commerciale e Tecnico/
*Connessioni Metropolitane srl*
Via G. Valentini, 14 - Prato (PO) - 59100
Sito web: https://www.conmet.it
Tel. 0574 536553
Fax. 0574 536554
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20230417/364f9e77/attachment.htm>


More information about the Pdns-users mailing list