1

I have a media streamer on which an arch linux is installed (OpenWrt). I configured the hostname of the machine to be Streamer but on my router dashboard, I see on the DCHP clients list that the name of the registered machine with the IP address the media streamer gets is android-bb29fc0a53296575 instead of Streamer. From another linux machine when I ping Streamer I get the "cannot resolve hostname streamer" but when I ping android-bb29fc0a53296575 I get a ping reply.

How can I find where this android-bb29fc0a53296575 comes from and why the media streamer does not register with the name Streamer when it asks for IP address from the router by DHCP

2
  • You need to tell the local DHCP server (probably inside the OpenWRT router) to use the name you wnat. Then, you also need to tell the DNS resolver to update the name table to the set dhcp name.
    – ImHere
    Sep 25 '17 at 0:53
  • @Arrow the router is not OpenWRT, the media streamer is. Moreover, how do I associate a name to the media streamer in the DHCP, does it work by mac address? Because IP address can be changed each time I reset the device (router or media streamer)
    – yanivps
    Sep 25 '17 at 8:25
1

Each computer may have any name you set in the hostname file. However, that does not mean that the local DNS resolver (or server) will use (or even know) about such set name.

To get a particular name to work in the LAN, you need to:

  1. Set the name in the DHCP server.
  2. Make the DNS resolver (or server) update its domain tables with the dynamic name given by DHCP.

Of course, any computer that use any other DNS server or resolver that is not aware of the above setting will fail to use the correct name.

1
  • They all use the same DNS server of the router they are connected to. I still didn't get why in the DHCP my endpoint is registered with the name android-bb29fc0a53296575 and how do I set this name for a different thing?
    – yanivps
    Sep 25 '17 at 8:23

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.