Gandi.net Groups

Hosting General: Hostname, but no domainname

You should be logged in to post new messages. Create an account.

I have a semi-working Debian 4 VPS with Gandi.net. I've tried every way
I know how to set the domainname and make it stick, but whenever I
reboot the server, I'm back to hostname returning the hostname (fs01),
and hostname -d returning nothing. Where can I set the domainname so
that it sticks between reboots? I've never had this problem on any other
VPS accounts I've had.
Hi Gordon,
Where can I set the domainname so
that it sticks between reboots? 
It's not possible: the DHCP protocol rewite your hostname at every
reboot...
\o/ Jonathan
  Gandi.Net
On May, 15 2008 17:26 CEST, Jonathan (Gandi) wrote:
Hi Gordon,
Where can I set the domainname so
that it sticks between reboots? 
It's not possible: the DHCP protocol rewite your hostname at every
reboot...
I already opened a support request on this, but it would be good if you
could support setting the domain name.

From what I can see, it appears to be controlled by the Gandi management
service which rewrites /etc/hosts on a reboot. If you moved the
management of the domain name to the dhcpd then we could use 'supersede
domain-name' in dhclient.conf to configure it.

Meanwhile, the solution is to write a startup script which rewrites
/etc/hosts at some point after the Gandi management script has altered
it.