Link to home
Start Free TrialLog in
Avatar of Mark
Mark

asked on

Having trouble setting persistant status DHCP address

I am running dhcpd 4.2.5-P1 and bind 9.9.5-P1 on Slackware64 14.1, kernel 3.10.17. So far, I've successfully set up 14 LAN hosts (mix of Windows workstations, Linux hosts and devices like postage meter) with assigned DHCP addresses of the following form in /etc/dhcpd.conf:
# Web Server (Linux)
host webserver {
    hardware ethernet 60:A4:4C:61:9C:FE;
    fixed-address 192.168.0.3;
}

:
:

# Security Video
host dvr {
    hardware ethernet 00:12:12:8A:4C:33;
    fixed-address 192.168.0.24;
}

Open in new window

All of these work, most for several months now, except the one shown at bottom above which I configured this afternoon: 'host dvr'. This is a video/DVR device. I've tried everything I can think of. I've restarted both dhcpd and named several times. I see odd messages in the dhcpd.log:
Apr 20 16:14:43 mail dhcpd: DHCPOFFER on 192.168.0.24 to 00:12:12:8a:4c:33 via eth1
Apr 20 16:14:43 mail dhcpd: DHCPREQUEST for 192.168.0.24 (192.168.0.2) from 00:12:12:8a:4c:33 via eth1
Apr 20 16:14:44 mail dhcpd: DHCPACK on 192.168.0.24 to 00:12:12:8a:4c:33 via eth1
Apr 20 16:14:44 mail dhcpd: Added new forward map from LocalHost.hprs.local. to 192.168.0.24

Open in new window

The other hosts' log messages have their assigned hostname, e.g. WEBSERVER.hprs.local, whereas this host shows in the log with LocalHost.hprs.local. Why?

I cannot resolve host dvr, but I can resolve host LocalHost.hprs.local:
$  host dvr.hprs.local
Host dvr.hprs.local not found: 3(NXDOMAIN)

$ host LocalHost.hprs.local
LocalHost.hprs.local has address 192.168.0.24

Open in new window


nmap show I am talking the the DVR device, and do have the correct MAC address. I can pull up the device's web page at http://192.168.0.24
$ nmap -T4 -A 192.168.0.24
Nmap scan report for LocalHost.hprs.local (192.168.0.24)
|_http-title: NETSurveillance WEB
:
|_  OPTIONS, DESCRIBE, SETUP, TEARDOWN, GET_PARAMETER, PLAY, PAUSE
:
MAC Address: 00:12:12:8A:4C:33 (Plus )

Open in new window

Even nmap returns LocalHost.hprs.local as the FDQN!

I find no place in the DVR device network setting where a host name of LocalHost is specified. The DVR is set for DHCP. Obviously, LocalHost cannot be used to refer to this device throughout the LAN as localhost is sef-referential for each host.

Where is it coming up with the host name 'LocalHost'? Why is it not using my assigned host name 'dvr'? Can someone help me figure this out?
Avatar of simon3270
simon3270
Flag of United Kingdom of Great Britain and Northern Ireland image

Does your dhcp support the "option-name" command?

If so, add it to the host section:
# Security Video
host dvr {
    hardware ethernet 00:12:12:8A:4C:33;
    fixed-address 192.168.0.24;
    option host-name "dvr";
}

Open in new window

Avatar of Mark
Mark

ASKER

Tried the host-name option. Didn't get an error, but didn't seem to fix the problem. Any idea where this LocalHost is coming from? Why isn't dhcpd overriding that with the specified name?
Apr 20 16:14:43 mail dhcpd: DHCPOFFER on 192.168.0.24 to 00:12:12:8a:4c:33 via eth1
Apr 20 16:14:43 mail dhcpd: DHCPREQUEST for 192.168.0.24 (192.168.0.2) from 00:12:12:8a:4c:33 via eth1
Apr 20 16:14:44 mail dhcpd: DHCPACK on 192.168.0.24 to 00:12:12:8a:4c:33 via eth1
Apr 20 16:14:44 mail dhcpd: Added new forward map from LocalHost.hprs.local. to 192.168.0.24
Apr 21 04:14:43 mail dhcpd: DHCPREQUEST for 192.168.0.24 (192.168.0.2) from 00:12:12:8a:4c:33 via eth1
Apr 21 04:14:43 mail dhcpd: DHCPACK on 192.168.0.24 to 00:12:12:8a:4c:33 via eth1
Apr 21 04:14:43 mail dhcpd: Added new forward map from LocalHost.hprs.local. to 192.168.0.24
Apr 21 16:14:45 mail dhcpd: DHCPREQUEST for 192.168.0.24 (192.168.0.2) from 00:12:12:8a:4c:33 via eth1
Apr 21 16:14:45 mail dhcpd: DHCPACK on 192.168.0.24 to 00:12:12:8a:4c:33 via eth1
Apr 21 16:14:45 mail dhcpd: Added new forward map from LocalHost.hprs.local. to 192.168.0.24

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of simon3270
simon3270
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mark

ASKER

I think you're right. I've come to the same conclusion. I'll re-post the question for DNS.