Dhcp lease shows no hostname



  • Hi, I've been using pfsense for a few days now. In fact, just yesterday, pfsense replaced our previous firewall at my workplace. I'm using pfsense Live CD 1.2 RC2, installed on a 2GB CF to IDE adapter.

    I have 5 other XP PCs that consistently show up with a hostname on the DHCP leases page.
    I have 1 Windows XP PC that consistently shows up with no hostname on the DHCP leases page.
    The PC is not configured any differently than the others.

    The result is that the one does not show a hostname on the DHCP leases page and thus does not look up in DNS. We're using the option that synchronizes static and dynamic DHCP leases with the local DNS forwarder.

    I tried ipconfig /release, ipconfig /renew, but that seems to confuse the DHCP server even more. At one point, the machine wound up with a total of 4 leases in /var/dhcpd/var/db/dhcpd.leases

    
    lease 10.XXX.YYY.233 {
      starts 2 2007/10/09 14:40:00;
      ends 3 2007/10/10 14:40:00;
      tstp 3 2007/10/10 14:40:00;
      binding state active;
      next binding state free;
      hardware ethernet AA:BB:CC:DD:EE:FF;
      uid "\001\000\021\021u;}";
      client-hostname "amiyumi";
    }
    lease 10.XXX.YYY.233 {
      starts 2 2007/10/09 16:19:19;
      ends 3 2007/10/10 16:19:19;
      binding state active;
      next binding state free;
      hardware ethernet AA:BB:CC:DD:EE:FF;
      uid "\001\000\021\021u;}";
      client-hostname "amiyumi";
    }
    lease 10.XXX.YYY.233 {
      starts 2 2007/10/09 16:19:19;
      ends 2 2007/10/09 16:22:34;
      tstp 2 2007/10/09 16:22:34;
      binding state free;
      hardware ethernet AA:BB:CC:DD:EE:FF;
      uid "\001\000\021\021u;}";
    }
    lease 10.XXX.YYY.233 {
      starts 2 2007/10/09 16:22:42;
      ends 3 2007/10/10 16:22:42;
      binding state active;
      next binding state free;
      hardware ethernet AA:BB:CC:DD:EE:FF;
      uid "\001\000\021\021u;}";
      client-hostname "amiyumi";
    }
    
    

    I'm working around this for now by assigning those misbehaving machines static leases. It's definitely not what I wanted to do. Any ideas what's going on? Is this a dnsmasq 2.39 bug that's fixed in 2.40? Or a bug in isc-dhcpd? Or a bug in pfsense somewhere?



  • I don't think this is a pfSense issue. You have 5 XP boxes that work fine. On my network I have 9 XP boxes and they all show the hostname. I have a feeling there is some setting in XP causing the issue.

    Heres one thing to check. In Network Connections right click on the local area connection select properties. Select Internet Protocol TCP/IP and click properties. In that dialog click advanced. On the DNS tab make sure "register this connection's addresses in DNS" is checked.



  • @rsw686:

    Heres one thing to check. In Network Connections right click on the local area connection select properties. Select Internet Protocol TCP/IP and click properties. In that dialog click advanced. On the DNS tab make sure "register this connection's addresses in DNS" is checked.

    On all machines, "Register this connection's addresses in DNS" is checked. Also, the XP firewall is enabled on all of them.


Log in to reply