I configured a DNS server with static IP configuration with named service on Centos 7. Servers are currently running in an environment without DHCP.
hostname1
: ip1hostname2
: ip2- Etc.
If the machine with the hostname hostnmame1
pops, is it possible for the DNS to assign its right IP without a DHCP server (and without having to define the static IP in /etc/sysconfig/network-scripts/ifcfg-eth0
)? I would prefer not to add a DHCP server if it exists a simpler way to associate hostname with the corresponding IP defined in my DNS configuration.
I assume machines have the DNS server defined in /etc/resolv.conf
.