[Dnsmasq-discuss] Resolving .local names

Petr Menšík pemensik at redhat.com
Thu Nov 5 11:46:37 GMT 2020


Hi,

local. domain in handled by mdns on most systems. Either trough
mdns4_minimal nss module or resolve for systemd-resolved. It is not
directed to dns in that case. I think dnsmasq would resolve that names,
if it reaches it.

To help you more, please post outputs of commands:

grep ^hosts /etc/nsswitch.conf

getent hosts myhost.local

dig myhost.local

Replace myhost with any working host for the network.

Cheers,
Petr
On 11/5/20 11:33 AM, Mukuntha rajaa wrote:
> Hi,
> 
> I am working on a legacy application, which uses "xxxx.local" format names.
> I have setup dnsmasq in my system.
> 
> /usr/sbin/dnsmasq -k --bind-interfaces
> --listen-address=127.0.0.1,192.168.101.101 --dns-forward-max=1000
> --cache-size=10000 --server 10.58.112.113
> 
> If I run my application, which does getaddrinfo on "xxxx.local" as first
> step,I get
> 
> "Name or service not known"
> 
> Does dnsmasq not resolve ".local" names too ? How to resolve ".local" names
> ?
> All my resolutions are only within my machine. I am not entertaining any
> DNS resolution outside of my machine.
> 
> Regards,
> Mukuntha.

-- 
Petr Menšík
Software Engineer
Red Hat, http://www.redhat.com/
email: pemensik at redhat.com
PGP: DFCF908DB7C87E8E529925BC4931CA5B6C9FC5CB
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0x4931CA5B6C9FC5CB_and_old_rev.asc
Type: application/pgp-keys
Size: 9364 bytes
Desc: not available
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20201105/1c7c2d74/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 665 bytes
Desc: OpenPGP digital signature
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20201105/1c7c2d74/attachment.sig>


More information about the Dnsmasq-discuss mailing list