Re: Resolving the Lan users hostnames

2014-05-01 Thread sven falempin
On Thu, May 1, 2014 at 1:45 AM, John D. Verne  wrote:

> On Wed, Apr 30, 2014 at 10:28:24AM -0400, sven falempin wrote:
> > On Tue, Apr 29, 2014 at 11:43 PM, Stuart Henderson 
> wrote:
> > > On 2014-04-28, sven falempin  wrote:
> > >> Reading unbound doc i saw i can insert name to be resolved but i have
> > >> to  each time
> > >
> > > configure things for unbound-control, then you can do
> > > "unbond-control local_data somehost.exaple.com A 192.0.2.1".
> > >
> >
> > would it be interesting to patch dhcpd (like Ted did) but directly
> > call the unbound-control work (both are in base) ?
> > using a suffix for the hostname given the default domain configured.
> >
>
> Someone hacked together a related solution with DNSMasq, described here:
>
> http://www.22decembre.eu/2014/04/14/local-dns-setup-with-dnsmasq-nsd-and-unbound/
>
>
Thank you john , i will follow Stuart method, even if i have to maintain my
own patch,
the more i look into unbound the more i understand the adoption in base.

Dnsmasq has some cool feature especially for windows client, but the dhcp
would need a similar patch :
https://bitbucket.org/Dohnuts/dnsmasq

This is easy to do in unbound with the log-queries. And because dhcpd is
able to push ip in table maybe
unbound will in the future.

-- 
-
() ascii ribbon campaign - against html e-mail
/\



Re: Resolving the Lan users hostnames

2014-04-30 Thread John D. Verne
On Wed, Apr 30, 2014 at 10:28:24AM -0400, sven falempin wrote:
> On Tue, Apr 29, 2014 at 11:43 PM, Stuart Henderson  
> wrote:
> > On 2014-04-28, sven falempin  wrote:
> >> Reading unbound doc i saw i can insert name to be resolved but i have
> >> to  each time
> >
> > configure things for unbound-control, then you can do
> > "unbond-control local_data somehost.exaple.com A 192.0.2.1".
> >
> 
> would it be interesting to patch dhcpd (like Ted did) but directly
> call the unbound-control work (both are in base) ?
> using a suffix for the hostname given the default domain configured.
> 

Someone hacked together a related solution with DNSMasq, described here:
http://www.22decembre.eu/2014/04/14/local-dns-setup-with-dnsmasq-nsd-and-unbound/
-- 
John D. Verne




Re: Resolving the Lan users hostnames

2014-04-30 Thread sven falempin
On Tue, Apr 29, 2014 at 11:43 PM, Stuart Henderson  wrote:
> On 2014-04-28, sven falempin  wrote:
>> Reading unbound doc i saw i can insert name to be resolved but i have
>> to  each time
>
> configure things for unbound-control, then you can do
> "unbond-control local_data somehost.exaple.com A 192.0.2.1".
>

would it be interesting to patch dhcpd (like Ted did) but directly
call the unbound-control work (both are in base) ?
using a suffix for the hostname given the default domain configured.


-- 
-
() ascii ribbon campaign - against html e-mail
/\



Re: Resolving the Lan users hostnames

2014-04-29 Thread Stuart Henderson
On 2014-04-28, sven falempin  wrote:
> Reading unbound doc i saw i can insert name to be resolved but i have
> to  each time

configure things for unbound-control, then you can do
"unbond-control local_data somehost.exaple.com A 192.0.2.1".



Re: Resolving the Lan users hostnames

2014-04-28 Thread Ted Unangst
On Mon, Apr 28, 2014 at 10:53, sven falempin wrote:
> Reading unbound doc i saw i can insert name to be resolved but i have
> to  each time, so to resolve the LAN clients hostnames i would
> need to
>  - trigger a script when a  lease is given (mostly depends the backend
> of the dhcp server)
>  - write a script that tranalates the leases into a host/ip list for unbound
>  - reload unbound conf
> 
> IMHO: EWW
> 
> Any opinion on doing this properly  ?

At some point in the distant past, I did this:
http://marc.info/?l=openbsd-tech&m=118039557923827



Resolving the Lan users hostnames

2014-04-28 Thread sven falempin
Dear misc readers,

Currently i am using dnsmasq because it inserts in the dns cache the
hostname sended to the dhcp server it provides.

It's neat, and well done by dnsmasq.

But it is not in base, moreover DNSSEC support is relying on some new
crypto lib, and some features ( static route did creates some problems
in the past. )

Reading unbound doc i saw i can insert name to be resolved but i have
to  each time, so to resolve the LAN clients hostnames i would
need to
 - trigger a script when a  lease is given (mostly depends the backend
of the dhcp server)
 - write a script that tranalates the leases into a host/ip list for unbound
 - reload unbound conf

IMHO: EWW

Any opinion on doing this properly  ?

- Priority to using in base openBSD software is my choice, because i
rely on the openBSD community to outsmart my choices ! -

Best regards,

-- 
-
() ascii ribbon campaign - against html e-mail
/\