- Server operating system version
- debian
- Plesk version and microupdate number
- Obsidian Version 18.0.45
Hello
Can I also use this explanation for other DNS record changes. I need to change MX and NS records all over the server but don't want to use the template feature. (Had a problem last time.) Does a command like this work.
for MX Record:
plesk db "update dns_recs set val='newmx.domain.com', displayVal='newmx.domain.com' where type='MX' and displayVal='oldmx.domain.com';"
and
plesk repair dns -y
for NS Record:
plesk db "update dns_recs set val='newns.domain.com', displayVal='newns.domain.com' where type='NS' and displayVal='oldns.domain.com';"
and
plesk repair dns -y
work that or not ?
with IP works i know.
plesk db "update dns_recs set val='203.0.113.3', displayVal='203.0.113.3' where type='A' and displayVal='203.0.113.2';"
thank you
Can I also use this explanation for other DNS record changes. I need to change MX and NS records all over the server but don't want to use the template feature. (Had a problem last time.) Does a command like this work.
for MX Record:
plesk db "update dns_recs set val='newmx.domain.com', displayVal='newmx.domain.com' where type='MX' and displayVal='oldmx.domain.com';"
and
plesk repair dns -y
for NS Record:
plesk db "update dns_recs set val='newns.domain.com', displayVal='newns.domain.com' where type='NS' and displayVal='oldns.domain.com';"
and
plesk repair dns -y
work that or not ?
with IP works i know.
plesk db "update dns_recs set val='203.0.113.3', displayVal='203.0.113.3' where type='A' and displayVal='203.0.113.2';"
thank you