Tobias,
Knot DNS can't do that out of the box, but I believe
it shouldn't be that difficult to tweak the synth-record
module to throw away the left-side part:
https://www.knot-dns.cz/docs/latest/html/modules.html#synth-record-automati…
mod-synth-record:
- id: xip-forward
type: forward
ttl: 400
network: 10.0.0.0/8
- id: xip-reverse
type: reverse
ttl: 400
network: 10.0.0.0/8
origin: xip.io
zone:
- domain: xip.io.
module: mod-synth-record/xip-forward
- domain: 10.in-addr.arpa
module: mod-synth-record/xip-reverse
And try that:
$ kdig +noall +answer IN PTR 1.0.0.10.in-addr.arpa. @master.dns.rocks
;; ANSWER SECTION:
1.0.0.10.in-addr.arpa. 400 IN PTR 10-0-0-1.xip.io.
$ dig +noall +answer IN A 10-0-0-1.xip.io. @master.dns.rocks
;; ANSWER SECTION:
10-0-0-1.xip.io. 400 IN A 10.0.0.1
--
Ondřej Surý -- Technical Fellow
--------------------------------------------
CZ.NIC, z.s.p.o. -- Laboratoře CZ.NIC
Milesovska 5, 130 00 Praha 3, Czech Republic
mailto:ondrej.sury@nic.cz
https://nic.cz/
--------------------------------------------
----- Original Message -----
From: "Tobias Brunner"
<tobias(a)tobru.ch>
To: "knot-dns-users" <knot-dns-users(a)lists.nic.cz>
Sent: Monday, 24 October, 2016 17:36:06
Subject: [knot-dns-users] xip.io functionality with Knot?
Hi Knot people,
As xip.io is very unreliable, I was wondering if it is possible to
achieve a similar service with Knot?
Examples what xip.io is doing:
10.0.0.1.xip.io resolves to 10.0.0.1
www.10.0.0.2.xip.io resolves to 10.0.0.2
foo.10.0.0.3.xip.io resolves to 10.0.0.3
bar.baz.10.0.0.4.xip.io resolves to 10.0.0.4
Cheers,
Tobias
_______________________________________________
knot-dns-users mailing list
knot-dns-users(a)lists.nic.cz
https://lists.nic.cz/cgi-bin/mailman/listinfo/knot-dns-users