Re: auto-update named via dhcpd?

2006-07-17 Thread Salvador Sabaini

[EMAIL PROTECTED] escribis:

I've got the (ubiquitous?) home LAN setup, with OpenBSD 3.7 as my
firewall/gateway/router.  (I know, need to upgrade.)

Previously, my LAN was setup as follows: all machines had static IP
addresses, and had the same /etc/hosts file.  All machines also had
the same /etc/resolv.conf file.

I got a laptop, and decided that I'd like to run a dhcp server on
the OpenBSD box (didn't want to update a bunch of /etc/hosts files).
Also, my ISP kept changing their DNS servers, so I had to update
/etc/resolv.conf on every box several times.

Now I'm thinking that the "least maintenance" approach is to have
the OpenBSD box run named and dhcpd, and have all the other boxes be
dynamically configured.

I've got dhcpd and named working, but they are not talking to each
other.  In other words, I don't know how to have named updated by
dhcpd.

There's a handful of howto-type documents on the net for this, but
the dhcpd shipped with OpenBSD 3.7 doesn't seem to support the
needed features.  For example, if I put this line in
/etc/dhcpd.conf:

ddns-update-style interim;

I get this in /var/log/daemon when starting dhcpd:

Jul 14 09:06:53 excrement dhcpd: /etc/dhcpd.conf line 13: expecting a parameter 
or declaration.
Jul 14 09:06:53 excrement dhcpd: ddns-update-style 
Jul 14 09:06:53 excrement dhcpd: ^


My assumption is that the dhcpd that ships with OpenBSD 3.7 doesn't
support the ddns-update-style option.  Some of the 'howto' documents
I found on the net suggest installing ISC DHCP version 3.

So my questions are:

- Is installing isc-dhcp-3 the right path to take for OpenBSD
  3.7?
- In there some way to use the default dhcpd in 3.7 to get
  dynamic dns updates?
- Does the dhcpd in OpenBSD 3.9 make this process any "easier"?

Thank you for any suggestions!
Matt



  

Mathew
Yes, you will have to install isc-dhcp-server in order to do the setup 
you want.


cheers,
-ssf.



Re: auto-update named via dhcpd?

2006-07-17 Thread Alexander Belikov
mggc> I've got the (ubiquitous?) home LAN setup, with OpenBSD 3.7 as my
mggc> firewall/gateway/router.  (I know, need to upgrade.)

mggc> I got a laptop, and decided that I'd like to run a dhcp server on
mggc> the OpenBSD box (didn't want to update a bunch of /etc/hosts files).
mggc> Also, my ISP kept changing their DNS servers, so I had to update
mggc> /etc/resolv.conf on every box several times.

mggc> Now I'm thinking that the "least maintenance" approach is to have
mggc> the OpenBSD box run named and dhcpd, and have all the other boxes be
mggc> dynamically configured.

mggc> I've got dhcpd and named working, but they are not talking to each
mggc> other.  In other words, I don't know how to have named updated by
mggc> dhcpd.

You can setup dhcpd thus it would assign fixed ip address to each
machine by it's mac. Than create static zone for bind on your router.
All other machines would be it's clients.

There's a huge field what can be done else. Some time ago I had the
same network. I had "core" file, which contained an information of all
my hosts (hostname,ip,mac). My scripts generate dhcpd.conf and a zone for
bind.

Now I have an other network in other place. First I assigned static
IPs to all hosts, then a zone for bind. Then i wrote a short script,
which created a dynamic part of dhcpd.conf:

[EMAIL PROTECTED] scripts]# cat arp2dhcp.pl
#!/usr/bin/perl

@hosts = `arp -a`;
$int_if = "rl0";

foreach $host (@hosts) {
chomp($host);
$host =~ s/\(//g;
$host =~ s/\)//g;
@words = split(/ /,$host);
if($words[5] eq $int_if) {
if($words[0] ne "?") {
if($words[3] ne "incomplete") {
$hostname = $words[0];
$ip = $words[1];
$mac = $words[3];
@hn = split(/\./,$hostname);
$shortname = $hn[0];
print "host $shortname\t{hardware ethernet $mac;fixed-address 
$ip;}\n";
}
}
}
}

There are a lot of ways to go, please chose your one



Re: auto-update named via dhcpd?

2006-07-17 Thread viq
On Saturday 15 July 2006 13:11, Rogier Krieger wrote:
> On 7/14/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > Does the dhcpd that is shipped with OpenBSD 3.7 support the ability
> > to update bind?
>
> No, it does not.
>
> > Does the dhcpd that is shipped with OpenBSD 3.9 support this?
>
> IIRC, it does not support it either.

Does not, and from what I heard from one of the committers the support is not 
planned.
On a side note, there were some patches on ports@ I bielieve, that made 
isc-dhcp run with privilege separation - but I didn't get to try them yet... 
And yes, i have the setup you mention running at home.

> > If not, is the recommended approach to install ISC DHCP 3.x,
>
> It worked for me. See threads on MARC for a little more information.
> http://marc.theaimsgroup.com/?l=openbsd-misc&m=110353569711035&w=2
>
> After installing ISC dhcpd, just follow the documentation to get DDNS
> updates working. E.g. by using the various README files included in
> the port.
>
> Cheers,
>
> Rogier

-- 
viq



Re: auto-update named via dhcpd?

2006-07-15 Thread Rogier Krieger

On 7/14/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Does the dhcpd that is shipped with OpenBSD 3.7 support the ability
to update bind?


No, it does not.



Does the dhcpd that is shipped with OpenBSD 3.9 support this?


IIRC, it does not support it either.



If not, is the recommended approach to install ISC DHCP 3.x,


It worked for me. See threads on MARC for a little more information.
http://marc.theaimsgroup.com/?l=openbsd-misc&m=110353569711035&w=2

After installing ISC dhcpd, just follow the documentation to get DDNS
updates working. E.g. by using the various README files included in
the port.

Cheers,

Rogier

--
If you don't know where you're going, any road will get you there.



Re: auto-update named via dhcpd?

2006-07-14 Thread matthew . garman
Someone mailed me offlist, and said that it wasn't clear what I was
asking in my initial post...  I'll try a more terse version:

I want to run a DNS server (named) and dhcpd on my OpenBSD box
(which is the firewall/gateway/router for my home network).  I also
want the DNS server to provide name resolution for the
dynamically-addressed hosts in my LAN.

Does the dhcpd that is shipped with OpenBSD 3.7 support the ability
to update bind?  Does the dhcpd that is shipped with OpenBSD 3.9
support this?  If not, is the recommended approach to install ISC
DHCP 3.x, as suggested by documents such as this:

http://www.bsdguides.org/guides/openbsd/networking/dynamic_dns_dhcp.php

Thanks again,
Matt


On Fri, Jul 14, 2006 at 10:49:34AM -0500, [EMAIL PROTECTED] wrote:
> I've got the (ubiquitous?) home LAN setup, with OpenBSD 3.7 as my
> firewall/gateway/router.  (I know, need to upgrade.)
> 
> Previously, my LAN was setup as follows: all machines had static IP
> addresses, and had the same /etc/hosts file.  All machines also had
> the same /etc/resolv.conf file.
> 
> I got a laptop, and decided that I'd like to run a dhcp server on
> the OpenBSD box (didn't want to update a bunch of /etc/hosts files).
> Also, my ISP kept changing their DNS servers, so I had to update
> /etc/resolv.conf on every box several times.
> 
> Now I'm thinking that the "least maintenance" approach is to have
> the OpenBSD box run named and dhcpd, and have all the other boxes be
> dynamically configured.
> 
> I've got dhcpd and named working, but they are not talking to each
> other.  In other words, I don't know how to have named updated by
> dhcpd.
> 
> There's a handful of howto-type documents on the net for this, but
> the dhcpd shipped with OpenBSD 3.7 doesn't seem to support the
> needed features.  For example, if I put this line in
> /etc/dhcpd.conf:
> 
> ddns-update-style interim;
> 
> I get this in /var/log/daemon when starting dhcpd:
> 
> Jul 14 09:06:53 excrement dhcpd: /etc/dhcpd.conf line 13: expecting a 
> parameter or declaration.
> Jul 14 09:06:53 excrement dhcpd: ddns-update-style 
> Jul 14 09:06:53 excrement dhcpd: ^
> 
> My assumption is that the dhcpd that ships with OpenBSD 3.7 doesn't
> support the ddns-update-style option.  Some of the 'howto' documents
> I found on the net suggest installing ISC DHCP version 3.
> 
> So my questions are:
> 
> - Is installing isc-dhcp-3 the right path to take for OpenBSD
>   3.7?
> - In there some way to use the default dhcpd in 3.7 to get
>   dynamic dns updates?
> - Does the dhcpd in OpenBSD 3.9 make this process any "easier"?
> 
> Thank you for any suggestions!
> Matt



auto-update named via dhcpd?

2006-07-14 Thread matthew . garman
I've got the (ubiquitous?) home LAN setup, with OpenBSD 3.7 as my
firewall/gateway/router.  (I know, need to upgrade.)

Previously, my LAN was setup as follows: all machines had static IP
addresses, and had the same /etc/hosts file.  All machines also had
the same /etc/resolv.conf file.

I got a laptop, and decided that I'd like to run a dhcp server on
the OpenBSD box (didn't want to update a bunch of /etc/hosts files).
Also, my ISP kept changing their DNS servers, so I had to update
/etc/resolv.conf on every box several times.

Now I'm thinking that the "least maintenance" approach is to have
the OpenBSD box run named and dhcpd, and have all the other boxes be
dynamically configured.

I've got dhcpd and named working, but they are not talking to each
other.  In other words, I don't know how to have named updated by
dhcpd.

There's a handful of howto-type documents on the net for this, but
the dhcpd shipped with OpenBSD 3.7 doesn't seem to support the
needed features.  For example, if I put this line in
/etc/dhcpd.conf:

ddns-update-style interim;

I get this in /var/log/daemon when starting dhcpd:

Jul 14 09:06:53 excrement dhcpd: /etc/dhcpd.conf line 13: expecting a parameter 
or declaration.
Jul 14 09:06:53 excrement dhcpd: ddns-update-style 
Jul 14 09:06:53 excrement dhcpd: ^

My assumption is that the dhcpd that ships with OpenBSD 3.7 doesn't
support the ddns-update-style option.  Some of the 'howto' documents
I found on the net suggest installing ISC DHCP version 3.

So my questions are:

- Is installing isc-dhcp-3 the right path to take for OpenBSD
  3.7?
- In there some way to use the default dhcpd in 3.7 to get
  dynamic dns updates?
- Does the dhcpd in OpenBSD 3.9 make this process any "easier"?

Thank you for any suggestions!
Matt