You are Here:
2023 - The Year of the Linux Lite Desktop



Hostname differs from what is seen by nmap scan of local network

Author (Read 1151 times)

0 Members and 1 Guest are viewing this topic.

Re: Hostname differs from what is seen by nmap scan of local network
« Reply #3 on: November 05, 2022, 08:31:03 AM »
 

trinidad

  • Platinum Level Poster
  • **********
  • 1414
    Posts
  • Reputation: 211
  • Linux Lite Member
    • dbts-analytics.com

  • Linux Lite: 6.2 64bit

  • CPU: AMD A8 5500 4 cores

  • MEMORY: 8Gb

  • VIDEO CARD: AMD/ATI Radeon HD 7560D

  • Kernel: 5.x
Not sure how you're scanning and from what. In this case the only thing sure is that Linux is the hostname assigned by your router which may or may not be allowing reverse DNS lookup (in this case maybe not) or you have DNS and/or mDNS disabled on your Linux Lite machine somehow (nsswitch. conf I think) Have you tried to set a Samba connection hostname different than the hostname you assigned to your laptop? Are you running this scan from a Windows or a Linux machine? Are you scanning from the laptop itself? I can't give a definitive answer without knowing what machine you are running the scan from.TC     
All opinions expressed and all advice given by Trinidad Cruz on this forum are his responsibility alone and do not necessarily reflect the views or methods of the developers of Linux Lite. He is a citizen of the United States where it is acceptable to occasionally be uninformed and inept as long as you pay your taxes.
 

Re: Hostname differs from what is seen by nmap scan of local network
« Reply #2 on: November 04, 2022, 11:34:16 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8615
    Posts
  • Reputation: 795
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 6.2 64bit

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
nmap reports my correct hostname here. Have you made any edits in regard to anything on the 192.168.0.102 machine?
 

Hostname differs from what is seen by nmap scan of local network
« Reply #1 on: November 04, 2022, 08:25:35 PM »
 

gunitinug

  • New to Forums
  • *
  • 1
    Posts
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 6.0 64bit

  • CPU: intel i5

  • MEMORY: 4Gb

  • VIDEO CARD: intel hd graphics 4000
Hello.

If I do

$ hostname
logan-asus

But given my private IP is 192.168.0.102

$ sudo nmap -sn 192.168.0.0/24 | grep 192.168.0.102
Nmap scan report for LINUX (192.168.0.102)

So strangely the hostname set on my linux lite laptop is different from what is seen by nmap (logan-asus vs LINUX).

How to fix this? Thx!

 

 

-->
X Close Ad

2023 - The Year of the Linux Lite Desktop