• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Question Little help with DNS, Nameserver

Hey how are you?

Do you know to setup ns1 and ns2 to host multiple sites? I have a vps too and 2 ip address

Everything works well but when I try to access webmail.domain.com I can't

Any idea?
You should probably check what Rasp just said.

But anyway, depends on the registrar. You just change the nameservers to something like;

ns1.domain.com. A 12.345.67.8
ns2.domain.com. A 98.765.543.21

where domain.com (with the trailing dot!) is your domain and change the IP's to your VPS IP's.

But just make sure that everything is pointed to right address.
I use some of the following records:

Code:
ipv4.domain.com.                    A    12.345.67.8
_domainkey.domain.com.            TXT    o=-
default._domainkey.domain.com.    TXT    v=DKIM1; p=VERYLONGNUMBER;
mail.domain.com.                    A    12.345.67.8
domain.com.                        TXT    v=spf1 +a +mx ip4:12.345.67.8 a:h1234567.stratoserver.net a:domain.com ~all
www.domain.com.                    CNAME    domain.com.
domain.com.                        MX (10)    mail.domain.com.
_dmarc.domain.com.                TXT    v=DMARC1; p=none; rua=mailto:[email protected]
domain.com.                        A    12.345.67.8
ftp.domain.com.                    A    12.345.67.8
webmail.domain.com.                A    12.345.67.8

I just like to point out, I am no expert at all.
 
Does anyone have any experience enabling DKIM for all domains?

I tried to enable it following the steps in this link.

The first step works, but the second:

for domain in $(plesk db -Ne 'SELECT name FROM domains WHERE parentDomainId=0;'); do plesk bin domain_pref --update $domain -sign_outgoing_mail true; done

Isn't working, its giving me the error: "bash: syntax error near unexpected token `do' "

Anyone know why it isn't working?
 
Wow, stupid me. I thought that a sudo command would suffice. But it didn't. I switched to root and it worked!

Thanks! DKIM's are enabled!
 
Back
Top