• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question DNS, "dig" doesn't display CNAME's

Simon123

New Pleskian
Hi all,

Doing a dig on a domain hosted on our Plesk server doesn't show CNAME records, results below, the domain name has been mangled..

How do I get a dump of DNS including any CNAME's :)






[slackware]/root: dig oraboxtra.com any

; <<>> DiG 9.16.16 <<>> oraboxtra.com any
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34748
;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 4

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4000
; COOKIE: 0ab05b9be3d8dac8 (echoed)
;; QUESTION SECTION:
;oraboxtra.com. IN ANY

;; ANSWER SECTION:
oraboxtra.com. 41567 IN A 1.2.3.4
oraboxtra.com. 84849 IN NS ns1.domain.com.
oraboxtra.com. 84849 IN NS ns2.domain.com.
oraboxtra.com. 84849 IN SOA ns1.domain.com. domains.domain.com. 162730885 10800 3600 604800 10800
oraboxtra.com. 41662 IN MX 10 mail.oraboxtra.com.
oraboxtra.com. 84849 IN TXT "v=spf1 +a +mx ip4:1.2.3.4 ?all"

;; ADDITIONAL SECTION:
ns1.domain.com. 3893 IN A 1.2.3.4
ns2.domain.com. 3893 IN A 1.2.3.4
mail.oraboxtra.com. 41662 IN A 1.2.3.4
 
That's normal. You can't use any to list every single record

Consider using an AXFR zone transfer query to do that. ANY isn't an active standard and may not be supported by every single NS (RFC 8482)
 
Hi John, thanks for the reply, bit of Googling gets me two possible commands.. these ran directly on the Plesk server..

[www] host -a -l oraboxtra.com. 1.2.3.4 (1.2.3.4 is internal IP of Plesk server)
Trying "oraboxtra.com"
Using domain server:
Name: 1.2.3.4
Address: 1.2.3.4#53
Aliases:
Host oraboxtra.com not found: 5(REFUSED)
Received 39 bytes from 1.2.3.4#53 in 4 ms
; Transfer failed.

[www] dig -t axfr oraboxtra.com
; <<>> DiG 9.11.4-P2-RedHat-9.11.4-26.P2.el7_9.5 <<>> -t axfr oraboxtra.com
;; global options: +cmd
; Transfer failed.

Any idea what I may be missing?
 
Did you specify your IP in the allow transfer section of your DNS server? AXFR needs to be specifically authorized to work.
 
Back
Top