Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Set right DNS entry for reverse lookup

    Scheduled Pinned Locked Moved DHCP and DNS
    reverse-dns
    2 Posts 2 Posters 152 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • elfenquetscheE
      elfenquetsche
      last edited by

      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-A

      Domain: space.local
      IP addresses: IPv4-A, IPv6-A

      So 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

      johnpozJ 1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator @elfenquetsche
        last edited by johnpoz

        @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

        host.jpg

        ;; 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.
        

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.