My hostname was smit-Aspire-5742 but now whenever I type sudo fing

it gives the following output

smit@smit-Aspire-5742:~$ sudo fing
[sudo] password for smit: 
16:00:07 > Discovery profile: Default discovery profile
16:00:07 > Discovery class:   data-link (data-link layer)
16:00:07 > Discovery on:

16:00:07 > Discovery round starting.
16:00:07 > Host is up:
     HW Address:   4C:0F:6E:3D:13:87 (Hon Hai Precision)
     Hostname:     Sanskruti-PC.Home

16:00:07 > Host is up:
     HW Address:   AC:F1:DF:E6:DB:5D
     Hostname:     D-Link.Home

16:00:07 > Host is up:
     HW Address:   C8:3A:35:CF:97:E9 (Tenda Technology)
     Hostname:     Shivai-Desktop.Home

16:00:08 > Discovery progress 25%
16:00:09 > Discovery progress 50%
^C16:00:09 > Discovery stopped

This is my laptop showing my hostname as Sanskruti-PC.Home.

   HW Address:   4C:0F:6E:3D:13:87 (Hon Hai Precision)
       Hostname:  Sanskruti-PC.Home

It was showing me correct hostname until my sister log in into the windows which duel booted with Ubuntu.I had tried everything on these links :-

How do I change the hostname without a restart?

How do I change the computer name?

I Also changed the computer name in windows from Sanskruti-PC.Home to smit-Aspire-5742 but nothing is happening.

here is output of my hostname command


Is this a problem with hostname or fing?

output of the command nslookup Sanskruti-PC.Home

  smit@smit-Aspire-5742:~$ nslookup Sanskruti-PC.Home

  Non-authoritative answer:
  Name: Sanskruti-PC.Home

And output command nslookup smit-Aspire-5742

  smit@smit-Aspire-5742:~$ nslookup smit-Aspire-5742

  Name: smit-Aspire-5742
  • Sounds to me like an issue with your dns having cached that name. Try clearing it and retry your request. – Ziazis Jul 6 '17 at 11:54
  • @Ziazis I Had tried to clean the dns cache like the way told here cyberciti.biz/faq/rhel-debian-ubuntu-flush-clear-dns-cache but ,i am getting the same result.please can you tell me how can I clear that name?? – noone Jul 6 '17 at 12:27
  • What do you get if you type in, nslookup smit-Aspire-5742 and nslookup Sanskruti-PC.Home, it could also be the cache of fing having saved your MAC address under the .home name. – Ziazis Jul 6 '17 at 12:41
  • @Ziazis I have posted the output of your command in question by editing it.Please take a look at it. – noone Jul 6 '17 at 12:53
  • 1
    Look into your /etc/hosts and adjust the name there if it is set incorrectly. – Ziazis Jul 6 '17 at 12:53

I have added Line smit-Aspire-5742 in My /etc/hosts

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.