Set right DNS entry for reverse lookup
-
Hello,
for a special application I need two DNS entries for a client with IPv4 and IPv6 address:
Domain: yxx.xxx.me
IP addresses: IPv4-A, IPv6-ADomain: space.local
IP addresses: IPv4-A, IPv6-ASo actually nothing special. For my application, however, it is important that the correct value is returned during the reverse lookup, namely yxx.xxx.me. Unfortunately, space.local is always returned instead for the IP addresses during the reverse lookup, regardless of the order in which I enter the DNS entries in the "Host overrides" item in the DNS resolver menu.
Finally, I deleted both entries again and created an entry with the yxx.xxx.me address and the space.local domain as an alias in the same form. Unfortunately no change, space.local is still returned during the reverse lookup.I wonder what the problem is here, perhaps the server sorts the names alphabetically internally and this then ensures that space.local is preferred
?
I am using PFSense CE 2.7.2.Kind regards
Emanuel -
@elfenquetsche your wanting a different PTR than what your forward is?
If I create a A record nas.home.arpa, that points to 192.168.9.10.. This will automatically return the ptr..
;; QUESTION SECTION: ;nas.home.arpa. IN A ;; ANSWER SECTION: nas.home.arpa. 3600 IN A 192.168.9.10 ;; QUESTION SECTION: ;10.9.168.192.in-addr.arpa. IN PTR ;; ANSWER SECTION: 10.9.168.192.in-addr.arpa. 3452 IN PTR nas.home.arpa.
Same would go for a AAAA record.
Do you control this xxx.me domain? Is it public IP, is this IP owned by an ISP.. Most isps will not allow you to control the PTR for the IP space they own. Now if you own the IP space, or it has been delegated to you and you can run your own Name Servers then yeah you could control the PTRs
Now for IPv6 space, Hurricane electric will assign you a /48 and give you complete control over the PTRs for that whole /48 space.
You can for sure create a host override for some public domain, and that ptr would return the ptr you want.. For example - I pointed www.cnn.com to 1.2.3.4 with a host override - notice the ptr for 1.2.3.4 is points to www.cnn.com
;; QUESTION SECTION: ;www.cnn.com. IN A ;; ANSWER SECTION: www.cnn.com. 3600 IN A 1.2.3.4 ;; QUESTION SECTION: ;4.3.2.1.in-addr.arpa. IN PTR ;; ANSWER SECTION: 4.3.2.1.in-addr.arpa. 3600 IN PTR www.cnn.com.