John wrote regarding '[SLE] Changing domain on LAN?' on Tue, Oct 12 at 14:02:
I have a LAN of Linux systems, 2 SuSE and one Red Hat. Lets say they are machine1.somedomain.whatever, machine2.somedomain.whatever, machine3.somedomain.whatever. I want to change this to machine1.someotherdomain.whatever, machine2.someotherdomain.whatever, machine3.someotherdomain.whatever where the machine name and static IP remain the same but the domain name changes. My IP will change the DNS to resolve the new domain to the IP address. What changes to I have to make on the Linux systems to change the domain?
I'd take advantage of this opportunity to set up a DHCP server, set the domain name once on the DHCP server, and change the clients over to use DHCP rather than static IPs. This kind of hassle is one of the main reasons DHCP exists. :) If DHCP is overkill for you, you've just gotta change the place where each machine stores its dns domain name. You didn't mention what version of SuSE or RedHat you're using - the location has changed a few times over the years. If the systems are running relatively recent distros, though, you can just do a grep -r 'old.domainname' /etc to find not only the place where the system looks, but also things like /etc/postfix/main.cf, /etc/httpd/httpd.conf, /etc/hosts, and similar locations where the domain name might be stored. Ideally, you'd just have to look in /etc/resolv.conf. :) It depends on what you do with the systems as to where else you might need to look (NFS servers might need to update /etc/exports, for example). Most of the config files shoudl be in /etc. If you're running MySQL, for another example, you'll want to check the hosts table to make sure you didn't use the domain name in any access records. --Danny