What's new

DNS confusion - hosts file has a bunch of stuff in it

  • 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!

5mall5nail5

Regular Contributor
Hey all,

So I am having issues pinging by name and am trying to figure it out.

In LAN settings I have the device name as conway.local and it's 192.168.50.1 it was called "Asus" before.

If I go to the clients link from Network Map I see a 19 clients connected, all MAC addresses except for a couple probably because only a few have updated DHCP since rebooting or something. I see Chromecast in the clients with an IP. So I go to cmd and "ping chromecast" I get this:

C:\Users\me>ping chromecast

Pinging chromecast.Asus [192.168.50.148] with 32 bytes of data:
Reply from 192.168.50.148: bytes=32 time=7ms TTL=64
Reply from 192.168.50.148: bytes=32 time=5ms TTL=64
Reply from 192.168.50.148: bytes=32 time=7ms TTL=64
Reply from 192.168.50.148: bytes=32 time=12ms TTL=64

So, its resolving chromecast.asus not chromecast.conway.local - ok, hm.

So then I SSH to the router at 192.168.50.1 and cat /etc/hosts and this is what I have:

me@conway:/tmp/etc# cat hosts
127.0.0.1 localhost.localdomain localhost
192.168.50.1 router.asus.com
192.168.50.1 www.asusnetwork.net
192.168.50.1 www.asusrouter.com
192.168.50.1 RT-AC66U.Asus RT-AC66U

What's with all the entries? Is that standard? Why isn't there anything about conway.local in here?

I'd like to get DNS sorted so I can use machine names on my network but something seems amiss.

Thanks all



edit: I think I have this a little confused - device name is the hostname here and then domain name under DHCP is what I want?

edit2: Ok so I have the device name set back to Asus, domain name is conway.local. I have 6 raspberry pi's set for static IP of 192.168.50.50-192.168.50.55 all hostnames are "raspiN" so 0 - 5. On client view on network map I see the MAC's but no resolution. I added entries to hosts like so:

jkensy@Asus:/tmp/etc# nslookup fiosrouter
Server: 127.0.0.1
Address 1: 127.0.0.1 localhost.localdomain

Name: fiosrouter
Address 1: 192.168.50.2 FiosRouter.conway.local
me@Asus:/tmp/etc# cat hosts
127.0.0.1 localhost.localdomain localhost
192.168.50.1 router.asus.com
192.168.50.1 www.asusnetwork.net
192.168.50.1 www.asusrouter.com
192.168.50.1 Asus.conway.local Asus
192.168.50.40 BeagleSQL1.conway.local BeagleSQL1
192.168.50.41 BealgeAPP1.conway.local BeagleAPP1
192.168.50.50 Raspi0.conway.local Raspi0
192.168.50.51 Raspi1.conway.local Raspi1
192.168.50.52 Raspi2.conway.local Raspi2
192.168.50.53 Raspi3.conway.local Raspi3
192.168.50.2 FiosRouter.conway.local FiosRouter

So now I can ping by FQDN and hostname but do not see any resolution on the clients page. How can I get that to resolve? It'll be easier and more convenient.

Thanks,
Jon
 
Last edited:

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