What's new

Can't access device on LAN by hostname

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

den75

Occasional Visitor
Hi,> I get a DNS error when I try to access a device on my local network with RT-AC66U router with the hostname. I can get them with the IP and I also can't ping the hostname. Any ideas what is wrong?
 
Is the target device a DHCP client? It needs to be to register its name with the routers DNS server.

The PC that is giving you the DNS error, what DNS server is it using? It should be the router's IP address. DNS Filtering will also stop name resolution working for your LAN devices.

What do you get when you do an nslookup on the device? i.e.,
Code:
C:\>nslookup zen
Server:  router.asus.com
Address:  192.168.1.1

Name:    zen
Address:  192.168.1.55

P.S. Ping works in a "Windows" network because it uses NetBIOS name resolution in preference to DNS.
Edit: Just re-read your post about ping not working.
 
Last edited:
This
upload_2016-3-10_12-38-51.png
 

Attachments

  • upload_2016-3-10_12-32-29.png
    upload_2016-3-10_12-32-29.png
    3.3 KB · Views: 634
Last edited:
Are the target devices DHCP clients?
Does it effect all clients on your network?
Are you using DNS Filter?
What kind of devices are they? PC's, printers, etc.

Edit: I don't know whether DNS Filtering is in the stock firmware, I know it's in Merlin's (you haven't said what firmware you're using).
 
Last edited:
Yes, they are DHCP. I only have this one device. It's an aquarium controller and access it's dashboard to make programming changes etc. Don't think I'm using a DNS filter, where would I check?
 
I was always able to access it via hostname. This started when I changed out the router to the ASUS
 
If you go into the router's GUI can you see the device in the "Network Map" > "Client List"?

What name does it have?
 
Nope, don't see it. It's plugged into a wireless bridge if that matters, but like I said, it worked before the upgrade to the ASUS
 
Ah. Wireless bridges can be troublesome between different manufacturers.

Just to confirm that it's connecting to the router properly, can you look at System Log > General Log. Turn off the aquarium device, wait a few seconds and turn it back on.

Refresh the log and you should be able to see the device create a DHCP connection and its IP address.

Can you confirm that please?
 
Great. Can you see what name it got?
i.e.
Code:
Mar 10 18:23:53 dnsmasq-dhcp[1575]: DHCPDISCOVER(br0) 192.168.1.156 b0:05:94:25:d8:b3
Mar 10 18:23:53 dnsmasq-dhcp[1575]: DHCPOFFER(br0) 192.168.1.156 b0:05:94:25:d8:b3
Mar 10 18:23:53 dnsmasq-dhcp[1575]: DHCPREQUEST(br0) 192.168.1.156 b0:05:94:25:d8:b3
Mar 10 18:23:53 dnsmasq-dhcp[1575]: DHCPACK(br0) 192.168.1.156 b0:05:94:25:d8:b3 XXXXXXX
 
Can't find what you're looking for in the log. The hostname is defined on the device itself.
 
Can't find what you're looking for in the log. The hostname is defined on the device itself.
Yes, but the device should register its name with the router as part of the DHCP process. In the example above the name is XXXXXXX.

So you see no name at all? That would explain the problem.

Also, can you now see the IP address in the router's Client List?
 
Hmm. That's a problem then. For some reason it's not registering its name with the router's DNS server. Which means DNS has no way of knowing the name of the device.

With Merlin's firmware you can manually assign a name to device. But with stock ASUS firmware (which I assume you're using) you can only do that by picking the device from the client list. If it isn't in the client list...

Let's try a different tack. What is the make and model number of the aquarium device?

Can you double check the network settings on the aquarium device and make sure that its name hasn't been accidentally cleared. Also, look to see if there's an option like "register name with DNS" and make sure it's enabled.
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top