I saw this example of a CNAME record, but I don‘t know what IP would be returned and couldn‘t find an answer.
I‘m looking for the IP of
pc2.an.example.com and the mail server of
Zone file example.com:
example.com. IN SOA... example.com. 1800 IN NS ns1.example.com an.example.com. 1800 IN NS ns1.an.example.com ns1.example.com. 1800 IN A 184.108.40.206 ns1.an.example.com. 1800 IN A 220.127.116.11
Zone file an.example.com:
an.example.com. IN SOA... an.example.com. IN NS ns1.an.example.com ns1.an.example.com. 1800 IN A 18.104.22.168 an.example.com. MX 10 pc2.an.example.com pc1.an.example.com. 1800 IN A 22.214.171.124 pc2.an.example.com 1800 IN A 126.96.36.199 pc2 CNAME pc1.an.example.com.
So which IPs would be returned for
pc2 and the mail server? My first idea was that the CNAME would be ignored because
pc2 has an „A“ record with a full IP, but I noticed there is no dot at the end of
pc2.an.example.com, maybe that has an effect because the adress is relative?
Thanks for any help!