[Dnsmasq-discuss] Is there a way to return an alias in preference to real host name?
john doe
johndoe65534 at mail.com
Sun Aug 2 18:54:00 BST 2020
On 8/2/2020 2:39 PM, Chris Green wrote:
> I have a couple of systems on my home LAN which have long, not very
> useful, names, e.g.:-
>
> DESKTOP-978VD5M - An MS Windows machine
> MC342-AE529C - An OKI printer
>
> I have added cname entries as follows in my dnsmasq.conf :-
>
> cname=ben,DESKTOP-978VD5M
> cname=oki,MC342-AE529C
>
> So I can refer to them as 'ben' and 'oki'.
>
> However it would be even better if the names 'ben' and 'oki' were
> returned when I use 'host', 'arp-scan' or similar commands. Is there
> a way of getting dnsmasq to do this (preferably without losing the
> ability to use the long, unmemorable, names as well)?
>
The Host utility should say that 'oki' is an alias for 'MC342-AE529C'
then show Ip(s) for the record.
--
John Doe
More information about the Dnsmasq-discuss
mailing list