---------- Original Message -------------
Subject: Re: [SLE] Changing domain on LAN?
Date: Tue, 12 Oct 2004 15:47:48 -0500
From: "John N. Alegre"
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. :)
I don't see why I would want to use DHCP. I have 5 static IPs. DNS is handled by my Internet Provider. As I understand it I can have as many domains as I want in DNS with A records and M records configured to some static IP on my LAN, not necessarily the same one. This is what my Internet provider is doing for me, setting up the DNS. That is done. I just want to change the domain name internally
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.
/etc/postfix/main.cf is no issue as there is an entry there for acceptance of mail for the 4 domains I now own. I am only switching from one domain to another internally. I don't see any entry in /etc/httpd/httpd.conf other then the correct virtual host entries. All these domains are virtual hosts. With Red Hat the only changes I needed where in /etc/hosts and /etc/sysconfig/network. Anyone know if this is enough for SuSE? ------------------------------- If you're just using a hosts file, that's all you need to change in SUSE - far as I know. I just completed an internal domain name change myself, in an all-SUSE LAN (5 boxen running 8.0 PRO). I simply modified the hosts file (/etc/hosts).
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.
resolv.conf only contains the IP of your DNS server there is nothing there about your local domain name! -- ############################################# # John N. Alegre # Andante Systems # Web Hosting # Web Site Development # www.johnalegre.net ############################################# -- Web Developer Matheteuo Christian Fellowship webdev@matheteuo.org http://matheteuo.org/ Free software is like God's love - you can share it with anyone anywhere anytime!