What's new

RT-AC68U has no 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!

someperson

Occasional Visitor
I have an RT-AC68U that is running the stock 3.0.0.4.380_3264 firmware, and I've been trying to get mysql running on it (via the mysql5 package available using ipkg). However, I'm running into issues regarding hostnames. It seems that my router has no hostname at all, as it shows up simply as "(none)" in ssh. There is also no hostname command available on the system. Does anyone have any idea what the heck is going on, or what I need to do to fix this?

Code:
ASUSWRT RT-AC68U_3.0.0.4 Sat May  7 06:47:04 UTC 2016
admin@(none):/tmp/home/root# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.0.1 router.asus.com
192.168.0.1 www.asusnetwork.net
192.168.0.1 www.asusrouter.com
192.168.0.1 RT-AC68U-4238. RT-AC68U-4238
::1 localhost6.localdomain6 localhost6
admin@(none):/tmp/home/root# cat /proc/sys/kernel/hostname
(none)
admin@(none):/tmp/home/root# hostname
-sh: hostname: not found
 
Did some more testing. The hostname seems to be set to RT-AC68U if I enable telnet. If I disable telnet, it is not set. Why would this even make a difference?
 

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