|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
Trouble with Dynamic DNS using powerDNS and dhcpd
I'm back again with another migrating from ubuntu to OBSD question.
On ubuntu I use this config to achive Dynamic DNS with powerDNS. The second code segment is what enables me to update the dns: Code:
allow booting; allow bootp; ddns-update-style none; log-facility local7; default-lease-time -1; max-lease-time 7200; authoritative; option space gpxe; option gpxe-encap-opts code 175 = encapsulate gpxe; option gpxe.bus-id code 177 = string; Code:
on commit { set ClientIP = binary-to-ascii(10, 8, ".", leased-address); set ClientMac = binary-to-ascii(16, 8, ":", substring(hardware, 1, 6)); log(concat("Commit: IP: ", ClientIP, " Mac: ", ClientMac, "Hostname: ", option host-name)); execute("/tda/dhcp-event", "commit", ClientIP, ClientMac, option host-name); } Code:
Oct 16 19:12:56 kloster-14-cj-fw dhcpd[16622]: /etc/dhcpd.conf line 12: expecting a parameter or declaration. Oct 16 19:12:56 kloster-14-cj-fw dhcpd[16622]: on Oct 16 19:12:56 kloster-14-cj-fw dhcpd[16622]: ^ Oct 16 19:12:56 kloster-14-cj-fw dhcpd[16622]: Configuration file errors encountered Oct 16 19:12:56 kloster-14-cj-fw dhcpd[16622]: exiting. Thank you in advance! |
|
||||
It's not clear to me what you have configured, or what you are trying to achieve.
It looks like you are trying to use ISC dhcpd configuration instructions, such as on commit, which are not in the built-in dhcpd(8), and not described in the dhcpd.conf(5) man page. As I noted previously, ISC's dhcpd is available as a third party package, and you may prefer to use it as you are trying to use features which do not exist in the OpenBSD fork. As it happens, PowerDNS is available as a package for OpenBSD, also. |
|
||||
Further details on these packages:
The OpenBSD port for ISC's reference implementation of DHCP is net/isc-dhcp. It has three packages available: a DHCPd server (isc-dhcp-server), a DHCP client (isc-dhcp-client) and a relay agent (isc-dhcp-omapi). For OpenBSD 5.5-release, this is ISC's version 4.2.5-P1. For OpenBSD 5.6, which will be released on November 1, it is version 4.3.0. The OpenBSD port for PowerDNS is net/powerdns. There are four packages, depending on the backing database: powerdns, powerdns-ldap powerdns-mysql, and powerdns-pgsql. For OpenBSD 5.5 and 5.6, this is version 2.9.22.6. For more on packages and ports, see FAQ 15. |
|
|||
I actually have tried to use the isc-dhcp-server package. But until a few minutes ago, I could not figure out how to set the interface for the server.
Turns out it was this easy: Code:
/usr/local/sbin/dhcpd em1 I now have powerdns and isc-dhcp-server running smooth. Thanks for your replies anyway =) |
Tags |
ddns powerdns dhcpd dynamic |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Trouble pxe booting a .php file with dhcpd | denriktiga | OpenBSD General | 3 | 6th October 2014 05:36 PM |
Trouble after changing static IP to dynamic IP on OpenBSD gateway | magrin | OpenBSD General | 5 | 5th April 2014 10:38 AM |
dhcpd and dns | sputnik | OpenBSD General | 8 | 8th May 2009 02:50 PM |
dhcpd within ezjail? | zelut | FreeBSD General | 7 | 10th February 2009 10:31 PM |
dhcpd problems... dynamic and static leases present | edhunter | FreeBSD General | 7 | 16th May 2008 02:34 PM |