I have run into this problem also.
That and the Foreman installer jumping all over my dhcpd.conf and
shreading it then flushing it down the toilet... Well I may be a bit
overstating it there.
You could use omshell which is part of the DHCP package.
There is at lease 1 perl package that interfaces to omshell and you
could use to create a script to bundle your DNS and DHCP updates.
On the other hand if you just create the DHCP address the DHCP server
will populate your DNS when the lease is handed out.
That is provided that you have configured DHCP to do the DNS updates.
Foreman could do with some hooks (forgive me if this exists already) to
an external IPAM system.
On 04/28/2017 01:55 PM, [email protected] wrote:
I'm using Satellite 6.2. When you define a new host in sat6, it
populates dhcp and DNS, which is awesome.
But what about things other than hosts? I have several non-RHEL
systems, and several non-computer devices like routers which my office
DNS and DHCP need to serve.
What is the best/right way to add these systems to DNS and DHCP?
To update DNS, I've been using:
nsupdate -k /etc/rndc.conf forward.txt
nsupdate -k /etc/rndc.conf reverse.txt
where forward.txt has entries like
update add foo.xyz.lan <http://foo.tc.redhat.com> 86400 A 172.31.100.36
update add bar.xyz.lan <http://bar.tc.redhat.com> 86400 A 172.31.100.37
update add baz.xyz.lan <http://baz.tc.redhat.com> 86400 A 172.31.100.38
send
and reverse.txt has entries like
update add 36.100.31.172.in-addr.arpa 86400 PTR foo.
<http://foo.tc.redhat.com>xyz.lan <http://baz.tc.redhat.com>.
update add 37.100.31.172.in-addr.arpa 86400 PTR bar.
<http://bar.tc.redhat.com>xyz.lan <http://baz.tc.redhat.com>.
update add 38.100.31.172.in-addr.arpa 86400 PTR baz.
<http://baz.tc.redhat.com>xyz.lan <http://baz.tc.redhat.com>.
send
I am not sure what the best/right way to add static mappings to DHCP,
though. I am looking at "hammer host create," but I'm not actually
creating hosts, so that feels heavy handed. Any ideas?
Thanks!
Thomas
--
You received this message because you are subscribed to the Google
Groups "Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.
--
Alvin Starr || voice: (905)513-7688
Netvel Inc. || Cell: (416)806-0133
[email protected] ||
--
You received this message because you are subscribed to the Google Groups "Foreman
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.