[Dnsmasq-discuss] Option 12 hostname sent to RPi seems incorrect

Shrenik Bhura shrenik.bhura at gmail.com
Wed Oct 20 02:20:58 UTC 2021


Hi Dominik,

There isn't anything specific in the configuration that serves the
hostname. I am aware of this feature and when defined it works as desired.
But when nothing is explicitly defined to serve hostnames, it is defaulting
to 192 as visible in the logs, and only in the case of an RPi.
When checked on the client with the hostname command, it shows the full
hostname - 192.168.67.53
The same configuration works fine with a x86 system as no hostname is being
served when none is defined.

Also it would be ideal to improve the logs as well to reflect the full
hostname, if at all.

Have attached the config files involved.

Once again, do note that this is the case only for an RPi. So there is some
specific logic in dnsmasq coming into play for an RPi that seems to be
serving the IP address as the default hostname when none is present.

Best,
Shrenik



On Tue, 19 Oct 2021 at 21:01, Dominik Derigs <dl6er at dl6er.de> wrote:

> Hey Shrenik,
>
> On Tue, 2021-10-19 at 17:20 +0530, Shrenik Bhura wrote:
> > Option 12 hostname sent to RPi is the first octet of the IP
> > address. This seems incorrect.
>
> This can very well be desired behavior (if the hostname is set to
> "192"). Can you quote your configuration and related files (e.g.
> if you are using dhcp-hostsfile or dhcp-hostsdir)?
>
> Best,
> Dominik
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20211020/ddcaccb6/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ltsp-dnsmasq-noproxy.conf
Type: application/octet-stream
Size: 3459 bytes
Desc: not available
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20211020/ddcaccb6/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dnsmasq.conf
Type: application/octet-stream
Size: 26745 bytes
Desc: not available
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20211020/ddcaccb6/attachment-0003.obj>


More information about the Dnsmasq-discuss mailing list