I cannot set my hostname correctly for apache because of the new
/etc/init.d/hostname. This is a result of two problems, at least one needs to be
I need to set my hostname to murrant.no-ip.org, which is what I have in
/etc/hostname, but the new hostname mangles it down to just murrant, which will
When I uncomment "ServerName murrant.no-ip.org" in
/etc/apache2/conf/apache2.conf it does not take the hostname I give it, but uses
what /bin/hostname gives. If I set hostname to murrant.no-ip.org with
/bin/hostname, apache will start.
The problem still occurs with apache 2.0.45.
what does your hosts file look like, afaik it should appear thusly:
ip.add.re.ss fully.qualified.domain.name alias
I have nothing in it (except localhost) because I am on a college campus and I get DHCP IP address, and it changes, so I would have to change it all the time...
This should be fixed ASAP.
/bin/hostname should never be used to set the result of gethostname(2) to soemthing containig a dot ;-)
In fact, if your are using DHCP to configure your local system, it is the responsibility of your DHCP-client to set the local hostname to an unqualified form which can easyily be qualified (remember, a FQDN is not the result fo gethostname(2) but the result of calling gethostbyname(3) for the result of gethostname(2)).
Using static IP configuration, this is achieved using a line in /etc/hosts which contains the FQDN in the second and the unqualified name in the third column, using dynamic configuration, you will have to set up a nameserver which is updated by the DHCP-server.
This is not a bug in baselayout. And I guess that apache2 ignores a hostname given in the config files is due to the fact that the hostname could either not be qualified or was already given in a qualified form.
Well, I don't use DHCP at home, but I think, if you do not want to dynamically update a DNS server, it would be sufficient to have the DHCP-client adding a line of the form like Donny Davies suggested it to /etc/hosts.
Okey dokie. Well I modified /etc/resolv.conf and /etc/yp.conf to use "no-ip.org" instead of "bvu.edu". And that resolved the problem.
Sorry about the invalid bug guys, the new baselayout just exposed a misconfiguration of my system. Now it is fixed and humming along.
closing with comment #7
Closing old bugs.