What's new

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

eclp

Senior Member
How can I reach an upstream modem via its hostname? :confused:

Internet --> DSL modem --> RT-AC88U

:)
 
Which interface are you talking about on the modem? It's WAN-side interface with an external address, or its LAN-side management interface with a private IP address?
 
The modem is connected in bridge mode and via WAN of the AC88U, no private address. The AC88U establishes the connection via PPPOE.

Modem (LAN) --> AC88U (WAN)
I have access to the modem via the IP address. I used these instructions:
https://github.com/RMerl/asuswrt-merlin/wiki/Access-modem-Web-UI-on-WAN-port-(no-script)
Sorry, I don't use PPPoE so I'm not really understanding what you are saying.

What is the hostname you want to use and what is the IP address you want to use?
 
I do not want to use DDNS. I just want access to the modem via hostname.

So, instead of using 192.168.0.1, you want to use something like "mymodem" or "mymodem.athome" ?

If that is it, you can go into your hosts file and add a one liner with

Code:
192.168.0.1             mymodem.athome    mymodem

If you are not familiar with hosts files, google is your friend.
 
Yeah, that's what I meant.
You are talking about the host file on the Asus Router?
Because, all connected clients should be able to call the modem via, for example, "mymodem.athome".

Would this configuration be correct?

127.0.0.1 localhost.localdomain localhost
192.168.0.1 mymodem.athome
192.168.1.1 router.asus.com
192.168.1.1 www.asusnetwork.net
192.168.1.1 www.asusrouter.com
192.168.1.1 RT-AC88U. RT-AC88U
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters


:)
 
Yeah, that's what I meant.

Because, all connected clients should be able to call the modem via, for example, "mymodem.athome".

Just curious, what do you mean by all clients calling the modem? Sounds odd to me that all clients may have admin needs on the modem.
 
So, I created the hosts.add under /jffs/configs/. The line is also successfully inserted in etc/hosts (after reboot). Unfortunately, the modem cannot be accessed via "http://mymodem.athome".

:confused:
 
Code:
C:\Windows\system32>nslookup mymodem.athome
Server:  xxxxxxxxxxx
Address:  2003:xxxxxxxxxxx

Name:    mymodem.athome
Address:  192.168.0.1

:)
 
Last edited:
I suspect there is no other idea or solution?
 
I think I completely misunderstood the issue. Deleting my previous comment. :)
 
@kvic ...

No problem. Your answers are still and always appreciated!

:)
 
Yes right, it works via the IP address. But still not via hostname.
I can't think why that would be. I've setup the same thing here and it works as expected. Can you try it from another device on your network. It might be caching some old addresses.
 
@ColinTaylor ...

You were right.

Now tried another device and it works!
Thank you very much for your help!

:)
 

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

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