Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recursor - Not loading IPv6 entries from etc-hosts-file. #2248

Closed
mrjester888 opened this issue Feb 17, 2015 · 9 comments · Fixed by #11682
Closed

Recursor - Not loading IPv6 entries from etc-hosts-file. #2248

mrjester888 opened this issue Feb 17, 2015 · 9 comments · Fixed by #11682

Comments

@mrjester888
Copy link

The use case is simple. I need to inject a couple of RRs internally to a zone that I am hosting externally.

I created a new etc-hosts-file. Added two entries in standard format. One for v4, one for v6. Enabled the export and restarted. "host host.example.com" only returns the v4 address and "dig aaaa host.example.com" returns no v6 address.

Expected behavior is that the v6 address is returned on query as well.

@ahupowerdns
Copy link
Contributor

it looks... like the code just isn't there?! ;-)

@Habbie
Copy link
Member

Habbie commented Feb 17, 2015

This was my guess without even looking at the code ;)

@tigusoft-vm
Copy link

Is there any work-around, to run a server that resolves domains according to /etc/hosts (or other simple text file in such format) including ipv6 entries?

@cmouse
Copy link
Contributor

cmouse commented Nov 25, 2015

can't you use auth-zones setting?

@tigusoft-vm
Copy link

@cmouse it's a bit less compatible as you need to convert the /etc/hosts file, but yes it works, thanks

@mrjester888
Copy link
Author

Auth Zones is what I used as a work around. Example of the zone I use.

$TTL 300

@       IN      SOA     auth0.sub.example.com.      postmaster.example.com. (
                        2015021701      ; serial number YYMMDDNN
                        600             ; Refresh
                        600             ; Retry
                        900             ; Expire
                        300             ; Min TTL
                        )

                NS      rec0.sub.example.com.
                NS      rec1.sub.example.com.


$ORIGIN ns0.example.com.
@               IN              CNAME   rec0.sub.example.com.

@tigusoft-vm
Copy link

Thanks @mrjester888

A problem is that converting /etc/hosts to simple foo IN AAAA .... format is not enough, the reverse DNS is not working.
You don't happen to have a fully example for 1 domain witch includes also revdns?

This are actually cjdns domains, they are just single addresses (not /48 as usual, it's exactly one address).

@pieterlexis pieterlexis added this to the rec-4.1.0 milestone Dec 15, 2015
@Habbie Habbie modified the milestones: rec-4.2.0, rec-4.1.0 Apr 21, 2017
@Habbie Habbie modified the milestones: rec-helpneeded, rec-4.2.0 Jul 6, 2017
@tuxis-ie
Copy link
Contributor

I just 'hit' this bug. I'm not entirely sure what the problem is. Do we want to just fix forwards, or also reverses?

IMHO, this feature is for more temporary stuff, so I care less about the reverses. I do care about forward AAAA-records though.

@Habbie
Copy link
Member

Habbie commented Jul 17, 2019

I just 'hit' this bug. I'm not entirely sure what the problem is. Do we want to just fix forwards, or also reverses?

Whenever I think about this bug, my mind somehow turns it into 'AAAA works, just PTR does not, and that is okay'. So, just doing AAAA would be a major improvement :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants