<div dir="ltr"><div dir="ltr">Yes, I didn't realize that the 'content' column is not indexed. It's actually a much bigger problem then. <div>Is there any other smarter way to perform IP address updates?<input name="virtru-metadata" type="hidden" value="{"email-policy":{"state":"closed","expirationUnit":"days","disableCopyPaste":false,"disablePrint":false,"disableForwarding":false,"enableNoauth":false,"persistentProtection":false,"expandedWatermarking":false,"expires":false,"isManaged":false},"attachments":{},"compose-id":"16","compose-window":{"secure":false}}"><div>I know powerdns has a strong plugin support, is this something that I can write a plugin for ?</div></div></div><br><div class="gmail_quote" style=""><div dir="ltr" class="gmail_attr">On Mon, Mar 22, 2021 at 11:10 PM Thomas Mieslinger via Pdns-users <<a href="mailto:pdns-users@mailman.powerdns.com">pdns-users@mailman.powerdns.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The content column is not indexed, so it might take a long time for the<br>
database to figure out which records need to be changed.<br>
<br>
At mysql/mariadb is mvcc (multi version concurrency control) so your<br>
table stays readable (powerdns can create answers) during updates.<br>
<br>
On 3/23/21 1:22 AM, Kevin P. Fleming via Pdns-users wrote:<br>
> If it's 10K records all pointing to the same host, then yes... making<br>
> those CNAMEs to a single name (with an A record) will be much quicker<br>
> to update than if they were all A records. There are many reasons why<br>
> that might be a bad idea though, so be careful :-)<br>
><br>
> On Mon, Mar 22, 2021 at 6:36 PM Chhavi Mittal via Pdns-users<br>
> <<a href="mailto:pdns-users@mailman.powerdns.com" target="_blank">pdns-users@mailman.powerdns.com</a>> wrote:<br>
>><br>
>> Yes I am using mysql backend to store the records. But if I have 10K records and I am updating frequently then every time I do a sql update query my table will be locked and it takes some time to update that many records. So that's why I'm looking for a better solution.<br>
>><br>
>> On Mon, Mar 22, 2021 at 3:28 PM Larry Wapnitsky <<a href="mailto:larry@wapnitsky.com" target="_blank">larry@wapnitsky.com</a>> wrote:<br>
>>><br>
>>> Are you storing the records in a database? If so, a select and replace would work<br>
>>><br>
>>> On Mon, Mar 22, 2021, 17:43 Chhavi Mittal via Pdns-users <<a href="mailto:pdns-users@mailman.powerdns.com" target="_blank">pdns-users@mailman.powerdns.com</a>> wrote:<br>
>>>><br>
>>>> Hello,<br>
>>>><br>
>>>> I am new to powerdns and trying to set it up based on my requirements. One issue that I am facing is how to update an IP address for all my records? For example, if I have 10K records that are pointing to one host/IP address but that host goes down and I want to update to a new host ip address, do I have to update all 10K records?<br>
>>>> Or is there a better way to set this up? Maybe I can add 'cname' to all these 10K records and that 'cname' could somehow resolve to an IP address so essentially when I run the 'dig' command the end result would be the new IP address.<br>
>>>> Also is there a powerdns supported plugin that can be written for this to make updates simpler?<br>
>>>><br>
>>>> Best,<br>
>>>> Chhavi<br>
>>>> _______________________________________________<br>
>>>> Pdns-users mailing list<br>
>>>> <a href="mailto:Pdns-users@mailman.powerdns.com" target="_blank">Pdns-users@mailman.powerdns.com</a><br>
>>>> <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__mailman.powerdns.com_mailman_listinfo_pdns-2Dusers&d=DwICAg&c=sWW_bEwW_mLyN3Kx2v57Q8e-CRbmiT9yOhqES_g_wVY&r=zhXmtZOB8qouWS1ukhEyCOSrM390DVZ1dg-asUtrEKo&m=HvVlmpVYyrMRm_bjyEDrTlfBRCuHN0dIWdIIHiWNapQ&s=Sz97QkI6XgJ6OKf6VlNdI_WYMiDYL5zo5jnTDPazWSk&e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.com/v2/url?u=https-3A__mailman.powerdns.com_mailman_listinfo_pdns-2Dusers&d=DwICAg&c=sWW_bEwW_mLyN3Kx2v57Q8e-CRbmiT9yOhqES_g_wVY&r=zhXmtZOB8qouWS1ukhEyCOSrM390DVZ1dg-asUtrEKo&m=HvVlmpVYyrMRm_bjyEDrTlfBRCuHN0dIWdIIHiWNapQ&s=Sz97QkI6XgJ6OKf6VlNdI_WYMiDYL5zo5jnTDPazWSk&e=</a> <br>
>><br>
>> _______________________________________________<br>
>> Pdns-users mailing list<br>
>> <a href="mailto:Pdns-users@mailman.powerdns.com" target="_blank">Pdns-users@mailman.powerdns.com</a><br>
>> <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__mailman.powerdns.com_mailman_listinfo_pdns-2Dusers&d=DwICAg&c=sWW_bEwW_mLyN3Kx2v57Q8e-CRbmiT9yOhqES_g_wVY&r=zhXmtZOB8qouWS1ukhEyCOSrM390DVZ1dg-asUtrEKo&m=HvVlmpVYyrMRm_bjyEDrTlfBRCuHN0dIWdIIHiWNapQ&s=Sz97QkI6XgJ6OKf6VlNdI_WYMiDYL5zo5jnTDPazWSk&e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.com/v2/url?u=https-3A__mailman.powerdns.com_mailman_listinfo_pdns-2Dusers&d=DwICAg&c=sWW_bEwW_mLyN3Kx2v57Q8e-CRbmiT9yOhqES_g_wVY&r=zhXmtZOB8qouWS1ukhEyCOSrM390DVZ1dg-asUtrEKo&m=HvVlmpVYyrMRm_bjyEDrTlfBRCuHN0dIWdIIHiWNapQ&s=Sz97QkI6XgJ6OKf6VlNdI_WYMiDYL5zo5jnTDPazWSk&e=</a> <br>
> _______________________________________________<br>
> Pdns-users mailing list<br>
> <a href="mailto:Pdns-users@mailman.powerdns.com" target="_blank">Pdns-users@mailman.powerdns.com</a><br>
> <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__mailman.powerdns.com_mailman_listinfo_pdns-2Dusers&d=DwICAg&c=sWW_bEwW_mLyN3Kx2v57Q8e-CRbmiT9yOhqES_g_wVY&r=zhXmtZOB8qouWS1ukhEyCOSrM390DVZ1dg-asUtrEKo&m=HvVlmpVYyrMRm_bjyEDrTlfBRCuHN0dIWdIIHiWNapQ&s=Sz97QkI6XgJ6OKf6VlNdI_WYMiDYL5zo5jnTDPazWSk&e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.com/v2/url?u=https-3A__mailman.powerdns.com_mailman_listinfo_pdns-2Dusers&d=DwICAg&c=sWW_bEwW_mLyN3Kx2v57Q8e-CRbmiT9yOhqES_g_wVY&r=zhXmtZOB8qouWS1ukhEyCOSrM390DVZ1dg-asUtrEKo&m=HvVlmpVYyrMRm_bjyEDrTlfBRCuHN0dIWdIIHiWNapQ&s=Sz97QkI6XgJ6OKf6VlNdI_WYMiDYL5zo5jnTDPazWSk&e=</a> <br>
><br>
_______________________________________________<br>
Pdns-users mailing list<br>
<a href="mailto:Pdns-users@mailman.powerdns.com" target="_blank">Pdns-users@mailman.powerdns.com</a><br>
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__mailman.powerdns.com_mailman_listinfo_pdns-2Dusers&d=DwICAg&c=sWW_bEwW_mLyN3Kx2v57Q8e-CRbmiT9yOhqES_g_wVY&r=zhXmtZOB8qouWS1ukhEyCOSrM390DVZ1dg-asUtrEKo&m=HvVlmpVYyrMRm_bjyEDrTlfBRCuHN0dIWdIIHiWNapQ&s=Sz97QkI6XgJ6OKf6VlNdI_WYMiDYL5zo5jnTDPazWSk&e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.com/v2/url?u=https-3A__mailman.powerdns.com_mailman_listinfo_pdns-2Dusers&d=DwICAg&c=sWW_bEwW_mLyN3Kx2v57Q8e-CRbmiT9yOhqES_g_wVY&r=zhXmtZOB8qouWS1ukhEyCOSrM390DVZ1dg-asUtrEKo&m=HvVlmpVYyrMRm_bjyEDrTlfBRCuHN0dIWdIIHiWNapQ&s=Sz97QkI6XgJ6OKf6VlNdI_WYMiDYL5zo5jnTDPazWSk&e=</a> <br>
</blockquote></div></div>