motioneye icon indicating copy to clipboard operation
motioneye copied to clipboard

Cameras by hostname

Open TLaren opened this issue 2 months ago • 1 comments

I setup MotionEye on a Thin Client. I first entered the cameras via IP address. Everything worked OK. I have a need to have this setup portable so I added DNS for all cameras. I have written software to update the DNS at Cloud Flare for any cameras on the local network. When I re-enter the cameras with a Hostname, all cameras show the same image. The same image of the first Hostname camera entered. I can verify that the DNS is correct by pinging the cameras from the Motion EYE server. I can also browse to the cameras via Hostname from a local PC that I use to configure MotionEye.

I have DNS'd the following

    nvr.domain.tld   192.168.15.10
    cam1.domain.tld  192.168.15.15
    cam2.domain.tld  192.168.15.16
    cam3.domain.tld  192.168.15.17
    cam4.domain.tld  192.168.15.18

Is there some setting I need to set to allow Hostnames? Should it work, does it work?

  • Ubuntu Server 24.04.3 LTS
  • Motion 4.7.1
  • CPU AMD GX-415GA, Quad Core 1.5Ghz
  • RAM 16G
  • SSD 1TB
  • Cameras Amcrest Network Cameras

TLaren avatar Nov 01 '25 23:11 TLaren

motionEye just uses the host's DNS resolver, no magic or anything needed for this to work.

You removed and re-added the network cameras via motionEye web UI? Check whether the host resolves those domains as expected:

getent hosts cam{1,2,3,4}.domain.tld

MichaIng avatar Nov 02 '25 16:11 MichaIng