Re: [CentOS] Set hostname via DHCP ?

2009-06-29 Thread Andreas Pedersen
If your trying to make CentOS/Fedora boxes to get hostname remember you need to have localhost.localdomain in /etc/sysconfig/network. HOSTNAME=localhost.localdomain see around line 252-261 /etc/sysconfig/network-scripts/network-functions need_hostname () { CHECK_HOSTNAME=`hostname` if [

Re: [CentOS] Set hostname via DHCP ?

2009-06-29 Thread Niki Kovacs
Rob Townley a écrit : # i do NOT have any kind of use-host-decl-names on; entry. Do you use dnsmasq or dhcpd? I'm using DHCPD. I took two spare machines this morning and played around with them to make some tests. Here's what I got. a) Server-side, static IP configuration of course, here's

Re: [CentOS] Set hostname via DHCP ?

2009-06-29 Thread Niki Kovacs
Niki Kovacs a écrit : If I take a look at /var/lib/dhclient/dhclient-eth0.leases (on the client), here's a summary of the lease: lease { interface eth0; fixed-address 192.168.1.2; option subnet-mask 255.255.255.0; option routers 192.168.1.254; option dhcp-lease-time

Re: [CentOS] Set hostname via DHCP ?

2009-06-29 Thread Tsai Li Ming
Niki Kovacs wrote: Niki Kovacs a écrit : If I take a look at /var/lib/dhclient/dhclient-eth0.leases (on the client), here's a summary of the lease: lease { interface eth0; fixed-address 192.168.1.2; option subnet-mask 255.255.255.0; option routers 192.168.1.254; option

Re: [CentOS] Set hostname via DHCP ?

2009-06-29 Thread Filipe Brandenburger
Hi, On Mon, Jun 29, 2009 at 04:00, Niki Kovacscont...@kikinovak.net wrote: host raymonde {   hardware ethernet 00:20:ed:b8:e8:ec;   fixed-address 192.168.1.2;   option host-name raymonde; } [...] lease {   option host-name raymonde;   option domain-name local; } Here's what 'hostname'

[CentOS] Set hostname via DHCP ?

2009-06-28 Thread Niki Kovacs
Hi. I just setup one of my machines as a DHCP server. I'd like it to handle the hostnames of clients. Don't know if this is an orthodox thing to do (feel free to add your comments :oD). Here's the server's relevant lines of dhcpd.conf: --8--- ... # Envoyer les noms d'hôtes aux clients

Re: [CentOS] Set hostname via DHCP ?

2009-06-28 Thread Ron Loftin
On Sun, 2009-06-28 at 17:38 +0200, Niki Kovacs wrote: Hi. I just setup one of my machines as a DHCP server. I'd like it to handle the hostnames of clients. Don't know if this is an orthodox thing to do I really don't know if it's orthodox or not, but I've been doing it like this for years.

Re: [CentOS] Set hostname via DHCP ?

2009-06-28 Thread Rob Townley
# i do NOT have any kind of use-host-decl-names on; entry. Do you use dnsmasq or dhcpd? # /etc/dhcpd.conf Not sure if a dnsmasq entry would be the same anymore. host babasse { hardware ethernet 00:0d:61:ae:6b:8f; fixed-address 192.168.1.249; option host-name