From 70d8e3be302cfc30631d7cc5b4f572e410cb777c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20M=C3=BCller?= Date: Fri, 24 Nov 2023 13:37:24 +0000 Subject: [PATCH] Revert "dhcp.cgi: Add column with resolved hostname by IP address" This reverts commit ee556e820f02c77716e74be727da319bd429fba4. See https://lists.ipfire.org/hyperkitty/list/development@lists.ipfire.org/message/QNCXBVG7CNENG4YTSRXXDQCB52E7FEW7/ --- html/cgi-bin/dhcp.cgi | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/html/cgi-bin/dhcp.cgi b/html/cgi-bin/dhcp.cgi index fdfc74eb4f..84e2322af1 100755 --- a/html/cgi-bin/dhcp.cgi +++ b/html/cgi-bin/dhcp.cgi @@ -21,7 +21,6 @@ use strict; use experimental 'smartmatch'; -use IO::Socket; # enable only the following on debugging purpose #use warnings; @@ -1008,9 +1007,8 @@ END print < - $Lang::tr{'mac address'} - $Lang::tr{'ip address'} - $Lang::tr{'hostname'} + $Lang::tr{'mac address'} + $Lang::tr{'ip address'} $Lang::tr{'remark'} next-server filename @@ -1108,14 +1106,9 @@ foreach my $line (@current2) { $TAG4 = "class='red'" if ($dhcpsettings{'KEY2'} ne $key); } - # resolved name (if exists) - my $iaddr = inet_aton($temp[1]); - my $rname = gethostbyaddr($iaddr, AF_INET); - if (!$rname || $rname eq "") { $rname = $Lang::tr{'ptr lookup failed'}; } print <$TAG2$temp[0]$TAG3 $TAG0$temp[1]$TAG1 -$rname  $temp[6]  $temp[3]  $temp[4]  -- 2.39.5