dig www.ksu.edu.tw +short

We get ip address : ,whose domain name is www.ksu.edu.tw .
To get domain name from ip in Reverse DNS Dig

dig -x +short

We get domain name : www.ksu.edu.tw ,whose ip address is

dig  smtp.mail.yahoo.com  +short

We get ip address : ,whose domain name is smtp.mail.yahoo.com.

dig  -x  +short

why the result is not smtp.mail.yahoo.com as's domain name?

  • Most probably an issue with the DNS issue you have set up in resolv.conf. There is no issue when I try it and there is no reported. You can conform this with "dig smtp.mail.yahoo.com +short" – Raman Sailopal Sep 29 '17 at 12:23

The simpliest answer: because it's done so

You can create ptr to put to any dns name.

Do not need to follow the pattern:

A record --A-resolving--> ip address
ip address --PTR-resolving--> A record

You can do so, but do not have to. You just need to have a PTR record.

The full answer:

Some mail servers (public especially) have more than one domain. But you cannot create several PTR record to single ip*.

* see comments below

  • 1
    You can have multiple records for one IP address. Probably useless (as the few clients using PTR records will not expect multiple records) but totally legit. – Patrick Mevzek Sep 30 '17 at 1:51
  • @Patrick Mevzek you are right. But simplest answer for best understanding - one ptr-record for single ip address. Multiple PTRs are technically possible - this is true. But your ISP may prohibit the creation of multiple ptrs on single address (my real experience). Thanx for your comment! – Egor Vasilyev Sep 30 '17 at 9:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.