[Dnsmasq-discuss] Is there a way to return an alias in preference to real host name?

2020-08-02 Thread Chris Green
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 r

Re: [Dnsmasq-discuss] Is there a way to return an alias in preference to real host name?

2020-08-02 Thread john doe
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-9

Re: [Dnsmasq-discuss] Is there a way to return an alias in preference to real host name?

2020-08-02 Thread Chris Green
On Sun, Aug 02, 2020 at 07:54:00PM +0200, john doe wrote: > 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 > > > >

Re: [Dnsmasq-discuss] Is there a way to return an alias in preference to real host name?

2020-08-03 Thread Petr Menšík
Hi Chris, I think the most proper way is to change hostname of machine to something sensible. When you do not want random hostname, give it some name. And let it use them. Is there reason, why you cannot change name of the device on device itself? Have you tried to supply hostname on dhcp-record