add some host for mail client dns problem

leonep

Well-Known Member
Nov 18, 2014
249
24
68
Pescara
cPanel Access Level
Root Administrator
Hi,
i only want to add some hostnames for mail setup like pop3, smtp
so i added to dns zone template this new record:

..................................
..................................
%domain%. IN A %ip%
%domain%. IN AAAA %ipv6%
ipv6 IN AAAA %ipv6%
%domain%. IN MX 0 %domain%.
mail IN CNAME %maildomain%.
pop3 IN CNAME %maildomain%.
smtp IN CNAME %maildomain%.
www IN CNAME %domain%.
ftp IN CNAME %domain%.

after changes i reset my zone but hostnames does not work and dns does not resolve

# dig @host.example.com smtp.example.com A

; <<>> DiG 9.11.4-P2-RedHat-9.11.4-26.P2.el7_9.10 <<>> @host.example.com smtp.example.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 35265
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;smtp.example.com. IN A

;; Query time: 0 msec
;; SERVER: 1.1.1.1#53(1.1.1.1)
;; WHEN: Fri Oct 21 11:00:37 CEST 2022
;; MSG SIZE rcvd: 50

i have exim sending with domain IP address
i does not understand what can be the problem.
thanks for help
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
17,467
2,842
363
cPanel Access Level
Root Administrator
Hey there! Can you confirm that the DNS zone reset did indeed increment the serial number and also add the records you are expecting? If so, can you try that "dig" command again without the "A" at the end? Since you're using a CNAME the "A" could be causing confusion with that lookup.