Score:0

reverse nslookup attach arpa zone to response

kr flag

I have an issue that some reverse (PTR) resolution reattach in-addr.arpa zone to response.This is something wrong in the named(bind9) configuration.

Now is :

command : dig -x 10.1.1.107 @dns_server_ip

;; ANSWER SECTION:
107.1.1.10.in-addr.arpa. 3600 IN    PTR     myhost.mgmt.domain.eu.1.1.10.in-addr.arpa.

How should be :

;; ANSWER SECTION:
107.1.1.10.in-addr.arpa. 3600 IN    PTR     myhost.mgmt.domain.eu

Can you suggest which config files can produce this wrong output ? Or which config files to lookup ? Thanks

Nikita Kipriyanov avatar
za flag
Show your zone file
Score:1
za flag

This is because you have in your zone something like this:

...
$ORIGIN 1.1.10.in-addr.arpa.
...
107 3600 IN PTR myhost.mgmt.domain.eu
...

Notice that ORIGIN is appended to each and every relative name in the zone (defined below the line where origin was set), including names that appear to the right in the data of PTR, MX, NS, SRV, CNAME (and possible other) records.

If you want some names to not to append ORIGIN, you should end that name with the dot. The dot at the end of name in DNS indicates this is absolute name, rather than relative:

...
$ORIGIN 1.1.10.in-addr.arpa.
...
107 3600 IN PTR myhost.mgmt.domain.eu.
...
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.