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 [
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
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
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
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'
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
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.
# 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
8 matches
Mail list logo