FlaParrotHead DD-WRT User
Joined: 04 Nov 2020 Posts: 80
|
Posted: Mon May 31, 2021 21:24 Post subject: Hostname hard coding |
|
Can someone please remind me the format and where to hardcode hostname/Mac addresses in the web GUI. Thanks _________________ Linksys WRT3200ACM
VersionDD-WRT v3.0-r50500 std (10/13/22)
Kernel VersionLinux 4.9.330 #3466 SMP Thu Oct 13 02:01:23 +07 2022 armv7l
Linksys RE9000 Extender (WiFi attached)
OpenVPN with PBR: ExpressVPN
Devices: Sonos, Apple, QNAP, Laserjet other |
|
SurprisedItWorks DD-WRT Guru
Joined: 04 Aug 2018 Posts: 1447 Location: Appalachian mountains, USA
|
Posted: Mon May 31, 2021 22:30 Post subject: |
|
GUI>Services>Services in "Additional Dnsmasq Options", lines like
dhcp-host=xx:xx:xx:xx:xx:xx,192.168.1.90,SomeName
Pick an IP address NOT in your DHCP range, and of course stay clear of the router's own IP and clear of 0 and 255 in the last octet as well. You can add a DHCP lease time at the end if you like:
dhcp-host=xx:xx:xx:xx:xx:xx,192.168.1.90,SomeName,1440m
Or you can go the other way and leave out stuff:
dhcp-host=xx:xx:xx:xx:xx:xx,SomeName
This example will make sure the name of your choice appears on the status page, but it does not reserve a particular IP address. For more clarity on the options, google/DDG/Startpage the "man page" for DNSMasq and find dhcp-host.
Many forum posts present only the longest option above, including lease time, but the man page says it isn't required, and on my routers with recent dd-wrt builds, the short versions have worked fine. _________________ 2x Netgear XR500 and 3x Linksys WRT1900ACSv2 on 53544: VLANs, VAPs, NAS, station mode, OpenVPN client (AirVPN), wireguard server (AirVPN port forward) and clients (AzireVPN, AirVPN, private), 3 DNSCrypt providers via VPN. |
|
Alozaros DD-WRT Guru
Joined: 16 Nov 2015 Posts: 6440 Location: UK, London, just across the river..
|
Posted: Tue Jun 01, 2021 9:50 Post subject: |
|
you can also use GUI>services>add
but SurprisedItWorks is much more convenient and fast way of doing it... _________________ Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55819 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913 |
|