Re: DNS error, from a newbee to the real experts..

2020-07-18 Thread Mark Andrews
Your problem comes from the fact that BIND 9.14 has DNSSEC validation enabled 
by default (unless disabled at configure time or in named.conf) and the answers 
from the grafted on namespace (.home) fail DNSSEC validation as there is not a 
insecure delegation for .home to break the DNSSEC chain of trust.  You can use 
validate-except to teach there recursive server to not validate parts of the 
namespace but it is NOT RECOMMENDED as it doesn’t help validating clients.

e.g. 

validate-except { home; };

I would stop trying to use .home as it has not been delegated for home use.  
Use home.arpa instead which has been reserved for home use and has a insecure 
delegation to break the DNSSEC chain of trust pointing at servers which only 
return NXDOMAIN for names under home.arpa.  This is the same delegation model 
used for the RFC 1918 reverse zone.  Note that DS is absent from the list of 
types at the delegation point in the NSEC record. There was an attempt made to 
delegate .home this way but it floundered on ICANN/IETF politics.

e.g.

home.arpa.  172800  IN  NS  blackhole-1.iana.org.
home.arpa.  172800  IN  NS  blackhole-2.iana.org.
home.arpa.  86400   IN  NSECin-addr.arpa. NS RRSIG NSEC
home.arpa.  86400   IN  RRSIG   NSEC 8 2 86400 2020073112 
2020071811 57156 arpa. 
lSqLNz1E/6WkAUDAJDnvo9X248B+PAWM34s0S0PJFjPi4YLoE//6zSR6 
Dgm0T+2qV2KrgvYbOzHV9Z/lRopFxSEJSSwoHgrUmfofXmIbQiKgQHBi 
g9dvL8yeJm0cRe6QMuM1q/D/3+AnPv5OQNBhC6+UEA+enO3JtDbvjr/H 
XfPPvfDfozacZkHPe+AYpJbmT7qfHv8Gw/BeeNtDex9jMoDbJ2l0BLT1 
UTPKE9+Abrh3RawcKBF3BbLNWU6AhIkOLZRADGMjcZg1M/IHUk/rOWXV 
EMZihg1+5I4GSmaRDN0jTX9g5jr822EZfaZLmCKlcGYMMHVOkMUA7k0r +v/Zrg==

If you are using forward zones (not recommended) set “forward only;” as you 
don’t want to fallback to querying servers on the global Internet when grafting 
on namespace.  If you do use a forward zone then the servers being forwarded to 
need to either a) serve the *entire* namespace under the forward zone, or b) be 
configured as recursive servers.

zone home.arpa {
type forward;
forward only;
forwarders {192.168.14.20;};
};

I would recommend using secondary zone rather than forward zones for grafting 
on namespaces, just ensure that the all slave servers are receiving NOTIFY 
messages (use also-notify) so that they receive changes fast.  Fast propagation 
of changes is needed in a home environment.  Secondary zone also provide a 
break in the DNSSEC chain of trust as far as the recursive server is concerned. 
 They however do not break the DNSSEC chain of trust for any DNSSEC validating 
clients of the recursive server.

zone home.arpa {
type secondary;
primaries {192.168.14.20;};
file “home.arpa.db”;
...
};

zone home.arpa {
type primary;
file “home.arpa.db”;
also-notify { address list; };
...
};

Also forget any garbage that recursive servers should not also serve zones.  
People have take the advice that listed authoritative servers shouldn’t be 
recursive (which is good advise when serving zones to the public) and inverted 
it to come up with bad advice.

Mark

> On 18 Jul 2020, at 05:18, Weeltin  wrote:
> 
> Hello all,
> 
> I’m trying to implement a DNS structure, containing a recursive and 
> authoritative server, but in doing so, I have run into a small problem. I can 
> make DNS queries from a client toward the net, but when I try to do the same 
> toward my internal domain, I get no result. I have spent days trying to 
> figure out what is going on, but to no avail, I there for hope that someone 
> on this list can point me in the right direction or right out tell what is 
> wrong.
> 
> /Weeltin.
> 
>   -DIG troubleshoots
> 
> [weeltin@c1 ~]$ cat /etc/resolv.conf 
> # Generated by NetworkManager
> nameserver 192.168.14.10
> 
> [weeltin@c1  ~]$ dig google.com
> ; <<>> DiG 9.11.11-RedHat-9.11.11-1.fc31 <<>> google.com
> ;; global options: +cmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48932
> ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
> 
> ;; OPT PSEUDOSECTION:
> ; EDNS: version: 0, flags:; udp: 4096
> ; COOKIE: c1bc4a11c40bd755905c8c705f11f5ffe699cc0116ed8ba5 (good)
> ;; QUESTION SECTION:
> ;google.com.  IN  A
> 
> ;; ANSWER SECTION:
> google.com.   300 IN  A   216.58.211.142
> 
> ;; Query time: 179 msec
> ;; SERVER: 192.168.14.10#53(192.168.14.10)
> ;; WHEN: Fri Jul 17 15:03:27 EDT 2020
> ;; MSG SIZE  rcvd: 83
> 
> 
> [weeltin@c1 ~]$ dig c1.example.home
> ; <<>> DiG 9.11.11-RedHat-9.11.11-1.fc31 <<>> c1.example.home
> ;; global options: +cmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 62602
> ;; flags: qr rd ra ad; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
> 
> ;; OPT PSEUDOSECTION:
> ; EDNS: version: 0, flags:; udp: 4096
> ; COOKIE: cf8876e3b35138f47040188e5f11f64a91445aa4f8310f5a (good)
> ;; 

Re: AW: Debian/Ubuntu: Why was the service renamed from bind9 to named?

2020-07-18 Thread Dennis Clarke via bind-users


> So as an experienced person who has been doing this you-nuxs thing since
> 1982 - I DON'T see it different - and in fact, I see it as a RETURN to
> what it originally was!

Exactly !  Hear hear ! Well said.

-- 
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken
GreyBeard and suspenders optional
___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.


bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users