Centos6 box on a network I control.
I want to be able to set a static IP locally on the machine and have it grab its FQDN from the local DNS server without me having to set it manually.
# hostname
localhost.localdomain
# dnsdomainname // Doesn't return anything at all
# dnsdomainname -A
the.intended.fqdn.com
# dnsdomainname -f
localhost
I have both an A record in DNS and the matching reverse-dns record, but something is missing.
This isn't how DNS works. Its purpose is to map host names to ip addresses (and the reverse) so that they can be looked up using the easy to remember host name.
If you set your ip statically you need to set your host name/fqdn manually. The FQDN is generally acquired from DHCP when not setup manually. An option if you want a "static" IP is to reserve the IP you want in your DHCP server and let the host pull that as well as all the other settings, including FQDN.