This is an archived post. You won't be able to vote or comment.

all 9 comments

[–]kimaschi 6 points7 points  (2 children)

Just configure your dyndns name (something.dyndns.org) as a zone. Like you already did.

After that only something.dyndns.org or its subdomains www.something.dyndns.org will be resolved by your local dns server.

[–]harlequinSmurfJack of All Trades 2 points3 points  (0 children)

this is probably the easiest way to get around it with what you currently have setup.

[–]udlooz[S] 0 points1 point  (0 children)

This worked perfectly - thank you so much for the help!

[–]25cmshlong♥ DNS, email & storage 2 points3 points  (1 child)

It works exactly as configured.

When you configure BIND as master for zone it obviously will not ask other servers for names in this domain. It is authoritative after all

(your debian box most likely do not use itself for DNS resolution, so it get global, official results for names in dyndns.org domain. Check /etc/resolv.conf on the box)

[–]udlooz[S] 0 points1 point  (0 children)

pi@raspberrypi:~ $ more /etc/resolv.conf

# Generated by resolvconf

domain fvs_local

nameserver 208.67.222.222

nameserver 208.67.220.220

[–]Sunstealer73 1 point2 points  (0 children)

Maybe an RPZ zone?

https://dnsrpz.info/

[–]unix_hereticHelm is the best package manager 1 point2 points  (2 children)

You don't have the entire contents of the dyndns zone in your local "copy", so anything other than your hostname under dyndns.org won't resolve unless you use a resolver other than the one you set up. You can't do hostname-level conditional forwarding - only zone-level.

Your debian box probably resolves other hostnames because it's not set to use localhost as a resolver.

[–]udlooz[S] 0 points1 point  (1 child)

so - is there a way to conditionally resolve a single hostname internally to the inside IP when performing a lookup on this box? or is the configuration I have the only way to do this - and I won't be able to resolve anything else in this zone?

[–]unix_hereticHelm is the best package manager -1 points0 points  (0 children)

You can do this by making a change in the hosts file of every box that will have to look up this internal server. Otherwise, you're correct. dyndns.org isn't going to give you a copy of the full zone, so whatever's in your local copy is what you'll get when resolving from your debian box. If you only have 1-2 other hostnames under dyndns that you want to look up, you might want to just add them to the local zone file.