Thursday, September 12, 2019

Really Basic Stuff

Day 1

So, I got on my laptop and no internet, not really sure what was going on with that.  Mucked about with it awhile and then just rebooted it.  That seemed to fix it.


  1. So, tonight, my plan is to get freeipa partially configured
  2. Configure free ipa to do the dns
  3. Switch the dhcp over to use the freeipa dns
  4. Create an iSCSI on h2gt2g
  5. Make a VM using the aforementioned iSCSI
  6. Install a basic ubuntu on it
  7. Get freeipa client going on it
And so we begin
I'm following https://www.linuxtechi.com/install-configure-freeipa-centos-7-server/ to make sure it's working.  At this point I think I've only created the VM, installed free-ipa-server on it and run the configuration script.  It seems to be working
From the blog I ran:
  • authconfig --enablemkhomedir --update
  • firewall-cmd --add-service=freeipa-ldap --permanent
    • Warning: ALREADY_ENABLED: freeipa-ldap
    • success
    • Guess I already ran it
  • ipactl status
    • Hunky Dory

[root@ipa ~]# kinit admin
Password for admin@DEEPTHOT.AA: 
[root@ipa ~]# klistI
Ticket cache: KEYRING:persistent:0:0
Default principal: admin@DEEPTHOT.AA

Valid starting       Expires              Service principal
09/12/2019 19:29:12  09/13/2019 19:29:09  krbtgt/DEEPTHOT.AA@DEEPTHOT.AA

I guess I already did this stuff, I'm at the end of the blog.  So, what to do next

Next thing is get dhcp to update the dns server on freeipa instead of the one on services.  I'm using this blog https://www.freeipa.org/page/Howto/ISC_DHCPd_and_Dynamic_DNS_update 

If you want to have emacs do x11 on centos you need at a minimum the emacs and xorg-x11-xauth packages.  The xauth package is not required by emacs for some reason.

Almost have the ddns working, but getting too tired.  I believe what I want to do is:

  1. generate a shared secret for ddns
  2. put that key into dhcp, the new dns server, *and the old one*
  3. on dhcp server update 'primary' key in the zones to 192.168.42.4
  4. on dhcp server change ipa to have a fixed address of 192.168.42.4
  5. find all the /etc/hosts that have ipa defined (minimum ipa and the laptop) and change the address to 192.168.42.4
  6. in freeipa 

grant DDNS_UPDATE wildcard * ANY;

Day 2

I'm following https://www.semicomplete.com/articles/dynamic-dns-with-dhcp/ to set up the new DDNS.  I figure I'll create the new key, then install it on all 3 places before trying to change stuff around.  (referencing the list from yesterday)

Just investigated wordpress.com I'm really hating not having code blocks here.  I've just had blogger for so long, not that I do anything with it...  Anyway to work.

I got the ddns switched over to the new key.  I had a very annoying issue with the permission for reading the key for the old name server.  I ended up copying the key to both named and dhcp configuration directories to handle that.

I really like to have only one place where configuration is.  Since dhcp is updating the dns I would really like to have it manage the dns for statically defined machines.  However there is a large stupid problem:

Basically to have dhcp update static you have to have two things, first for every static definition you have to have ddns-hostname defined, like so:

host ipa {
     hardware ethernet 00:0c:29:4b:43:85;
     fixed-address 192.168.42.4;
     ddns-hostname ipa;
}

Additionally you have to have update-static-leases on; defined as well.  The problem with this is that it says that it has no way to tell if a lease was released so it updates the DNS every time.  This kinda sucks because it is pulling down the records and reentering exactly the same data every 5 minutes for every static ip that I'm setting with DNS.  I don't think name servers should be dynamic so I've got it statically linked.  And the router and dhcp server also need to be static.

Anyway, I'm going to dwell on this awhile.  The flip side is the dns data file is kinda a mess when it has records that are originally there and records that are updated.  It would be nice if the file had two seconds one for stuff that was there originally and one for the dynamically updated portion.  I don't particularly want to have separate namespaces, which I think is the only choice.  If you want to remove all of the dynamically updated records you have to go digging through it by hand to remove everything.  It's kinda  a pain.

So, I'm going to leave it this way for the time being.

Current status:

  1. new key installed in dhcp and the old name server
  2. ddns records updated.  ipa now at a static address
I'm going to stop this now, I've found a cool app StackEdit what it does is it allows you to create a document in markdown and then publish it to blogger, wordpress, or whatever.  It's a good markdown so it ends up making a much nicer looking blog than blogger does by itself.

No comments:

Post a Comment

How Simple Does It Have to Be Before It’s Mine?

 Hi, Joy here, I'm tired.  I'm too tired to polish this.  However bare with me, the text below is *trying* to be me.  It's not l...