by modify I mean add, change and/or remove DNS records (depending on the values passed to the API). Also, yes I mispoke, we would only be modifying the records on one DC, and replication would take care of the rest. On Mon, Nov 13, 2017 at 11:17 AM, Rowland Penny via samba < samba at lists.samba.org> wrote:> On Mon, 13 Nov 2017 11:07:28 -0600 > Taylor Hammerling via samba <samba at lists.samba.org> wrote: > > > I am looking for a way to programatically modify DNS settings from > > outside of my SAMBA4 DCs. > > > > I am working on creating a PHP inventory page, which (in an ideal > > world) would hook into our SAMBA4 domain controllers, allowing us to > > modify DNS records in the inventory, and then have the backend of the > > inventory communicate with the DCs over an API and modify the DNS on > > the DCs. > > It depends on what you mean by 'modify' ?? > Whatever you mean, you only need to 'modify' the records on one DC, > replication will take care of the rest. > > Rowland > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >-- *Taylor Hammerling* | *IT Manager* 2800 Laura Lane | Middleton, WI 53562 *O *(608) 669-9070 *| C *(608) 512-7849 tcsbasys.com | ubiquistat.com
On Tue, 14 Nov 2017 11:18:04 -0600 Taylor Hammerling <thammerling at tcsbasys.com> wrote:> by modify I mean add, change and/or remove DNS records (depending on > the values passed to the API). > Also, yes I mispoke, we would only be modifying the records on one > DC, and replication would take care of the rest. >OK, rather than trying to re-invent the wheel, you will probably find it easier to script around the 'nsupdate' utility from Bind. If you look here, you will find a bash script that uses it: https://wiki.samba.org/index.php/Configure_DHCP_to_update_DNS_records_with_BIND9 There is also the samba_dnsupdate python script that uses it. Rowland
We aren't using BIND, we are using the builtin SAMBA backend. Also the requests for updates are going to come from external to the DC. IE, the inventory server needs to send a request to the DC to add/update/remove etc DNS records. This is why I'm looking for an API. On Tue, Nov 14, 2017 at 11:32 AM, Rowland Penny via samba < samba at lists.samba.org> wrote:> On Tue, 14 Nov 2017 11:18:04 -0600 > Taylor Hammerling <thammerling at tcsbasys.com> wrote: > > > by modify I mean add, change and/or remove DNS records (depending on > > the values passed to the API). > > Also, yes I mispoke, we would only be modifying the records on one > > DC, and replication would take care of the rest. > > > > OK, rather than trying to re-invent the wheel, you will probably find > it easier to script around the 'nsupdate' utility from Bind. > > If you look here, you will find a bash script that uses it: > > https://wiki.samba.org/index.php/Configure_DHCP_to_update_ > DNS_records_with_BIND9 > > There is also the samba_dnsupdate python script that uses it. > > Rowland > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >-- *Taylor Hammerling* | *IT Manager* 2800 Laura Lane | Middleton, WI 53562 *O *(608) 669-9070 *| C *(608) 512-7849 tcsbasys.com | ubiquistat.com