I have a Buffalo WZR-600DHP router running DD-WRT from the factory. I’ve enabled the following DHCP settings in Setup -> Basic Setup -> Network Setup -> Network Address Server Settings (DHCP):
DHCP Type: DHCP Server DHCP Server: Enable Use DNSMasq for DHCP: Check Use DNSMasq for DNS: Check DHCP-Authoritative: Check
I've also enabled the following dnsmasq settings in Services -> DNSMasq:
DNSMasq: Enable Local DNS: Enable No DNS Rebind: Enable Query DNS in Strict Order: Enable Add Requestor MAC to DNS Query: Disable Additional DNSMasq Options: (NONE)
All of the machines on my local network show up in the Status -> LAN -> Dynamic Host Configuration Protocol -> DHCP Clients except for my router. From what I can tell, the names in this list are from the machines'
/etc/hostname file, and I can ping them like so:
gamma:~ jrsmith3$ ping rpi.local PING rpi.local (192.168.11.122): 56 data bytes 64 bytes from 192.168.11.122: icmp_seq=0 ttl=64 time=28.334 ms 64 bytes from 192.168.11.122: icmp_seq=1 ttl=64 time=7.644 ms 64 bytes from 192.168.11.122: icmp_seq=2 ttl=64 time=7.787 ms
However, I can’t see a hostname associated with the router itself; I can only access it via its IP address. I’ve noticed there’s no
/etc/hostname file on the router itself when I SSH into it.
Is there any way to define a hostname for my router so I can access it without having to use its IP? I’ve tried googling but I only find results for setting the router up to perform DNS for machines on the local network — not how to set the router’s hostname.
Here's a similar question: DD-WRT: dnsmasq headaches with static hosts