[Dnsmasq-discuss] Problem with short name resolution

Donald Muller donmuller22 at outlook.com
Thu Nov 12 07:19:30 UTC 2026


Brief overview::

I am having a problem with name resolution. Some of my short names resolve and some don't.

Config:

I have dnsmasq running on a QNAP NAS handling DNS and DHCP. It has three interfaces.

1 - primary network (1GB), 192.168.22.x - connected to a 1GB unmanaged switch which is connected to a router.
2 - backup/private network (2.5GB), 192.168.23.x - connected to a 2.5 GB unmanaged switch which is connected to a router.
3 - IoT network (1GB), 192.168.24.x - directly connected to a router.

The router provides routing between the three networks and the internet.

I also have dnsmasq running on a second QNAP NAS handling DNS only. It has two interfaces.

1 - primary network (1GB), 192.168.22.x - connected to the 1GB unmanaged switch.
2 - backup network (2.5GB), 192.168.23.x - connected to the 2.5GB unmanaged switch.

They both run the same DNS configuration.

DNS config:

domain-needed
domain=djm.home.arpa,192.168.22.0/24
domain=priv.djm.home.arpa,192.168.23.0/24
domain=iot.djm.home.arpa,192.168.24.0/24
local-ttl=1800
no-hosts
Conf-file=/share/CACHEDEV1_DATA/UserData/Configs/DNSMasq/dnsmasq-hostnames-djm.conf      # contains host-records for 22 network
Conf-file=/share/CACHEDEV1_DATA/UserData/Configs/DNSMasq/dnsmasq-hostnames-djm-priv.conf     # contains host-records for 23 network
Conf-file=/share/CACHEDEV1_DATA/UserData/Configs/DNSMasq/dnsmasq-hostnames-djm-iot.conf      # contains host-records for 24 network
conf-file=/share/CACHEDEV1_DATA/UserData/Configs/DNSMasq/dnsmasq-cnames.conf
expand-hosts
bogus-priv
resolv-file=/share/CACHEDEV1_DATA/UserData/Configs/DNSMasq/dnsmasq-resolv.conf
stop-dns-rebind
rebind-localhost-ok
no-poll
cache-size=1000
dns-forward-max=500
Some entries from dnsmasq-hostnames-djm.conf:
host-record=lrtv,lrtv.djm.home.arpa,192.168.22.135
host-record=dentv,dentv.djm.home.arpa,192.168.22.136
Some entries from dnsmasq-hostnames-djm-priv.conf:
host-record=djmfs2priv,djmfs2.priv.djm.home.arpa,192.168.23.220
host-record=djmfs4priv,djmfs4.priv.djm.home.arpa,192.168.23.240

DHCP config:

Log-dhcp

# General settings

dhcp-rapid-commit
dhcp-authoritative
Dhcp-option=option:domain-search,djm.home.arpa,priv.djm.home.arpa,iot.djm.home.arpa,mem.home.arpa     # DNS domain search list option to specify the domain search list used when resolving names with DNS (119)
Dhcp-option=option:netbios-nodetype,8     # netbios node type (46)
Dhcp-option=vendor:MSFT,2,1i      # Send microsoft-specific option to tell windows to release the DHCP lease when it shuts down (43)
Dhcp-hostsfile=/share/CACHEDEV1_DATA/UserData/Configs/DNSMasq/dnsmasq-reserv-djm.conf      # File name for reservations
Dhcp-hostsfile=/share/CACHEDEV1_DATA/UserData/Configs/DNSMasq/dnsmasq-reserv-djm-priv.conf      # File name for reservations for private network
#dhcp-hostsfile=/share/CACHEDEV1_DATA/UserData/Configs/DNSMasq/dnsmasq-reserv-djm-iot.conf     # File name for reservations for IoT network
Dhcp-leasefile=/share/CACHEDEV1_DATA/UserData/Configs/DNSMasq/dnsmasq.leases      # Where lease information is stored

# Set interface tags settings

tag-if=set:net22,tag:eth0
tag-if=set:net22,tag:qvs0
tag-if=set:net23,tag:eth4
tag-if=set:net23,tag:qvs1
tag-if=set:net24,tag:eth1

# net22 interface settings

dhcp-range=tag:net22,192.168.22.1,192.168.22.49,255.255.255.0,3d     # specify dhcp range
dhcp-option=tag:net22,option:netmask,255.255.255.0     # set net mask (1)
dhcp-option=tag:net22,option:router,192.168.22.252      # set router address (3)
dhcp-option=tag:net22,option:dns-server,192.168.22.220,192.168.22.240      # set dns server address (6)
dhcp-option=tag:net22,option:domain-name,djm.home.arpa      # set domain name (15)
dhcp-option=tag:net22,option:ntp-server,192.168.22.252      # set time server (42)
dhcp-option=tag:net22,option:netbios-ns,192.168.22.220,192.168.22.240      # set netbios-over-TCP/IP nameserver(s) aka WINS server(s) (44)

# net23 interface settings - 2.5gb network

Dhcp-range=tag:net23,192.168.23.1,static,3d     # Static (reservations) addresses only
Dhcp-option=tag:net23,option:netmask,255.255.255.0      # set net mask (1)
Dhcp-option=tag:net23,option:router,192.168.23.252      # set router address (3)
Dhcp-option=tag:net23,option:dns-server,192.168.23.220,192.168.23.240     # set dns server address (6)
Dhcp-option=tag:net23,option:domain-name,priv.djm.home.arpa     # set domain name (15)
Dhcp-option=tag:net23,option:ntp-server,192.168.23.252      # set time server (42)
Dhcp-option=tag:net23,option:netbios-ns,192.168.23.220,192.168.23.240      # set netbios-over-TCP/IP nameserver(s) aka WINS server(s) (44)

# net24 interface settings (IoT)

#dhcp-range=tag:net24,192.168.24.1,static,3d      # Static (reservations) addresses only
dhcp-range=tag:net24,192.168.24.1,192.168.24.99,3d      # Static (reservations) addresses only
dhcp-option=tag:net24,option:netmask,255.255.255.0      # set net mask (1)
dhcp-option=tag:net24,option:router,192.168.24.252      # set router address (3)
dhcp-option=tag:net24,option:dns-server,192.168.24.220,192.168.24.240     # set dns server address (6)
dhcp-option=tag:net24,option:domain-name,iot.djm.home.arpa      # set domain name (15)
dhcp-option=tag:net24,option:ntp-server,192.168.24.252      # set time server (42)
dhcp-option=tag:net24,option:netbios-ns,192.168.24.220,192.168.24.240     # set netbios-over-TCP/IP nameserver(s) aka WINS server(s) (44)

Windows Laptop Config:

My windows laptop has two network connections. One to the 22 network and one to the 23 network.

Ethernet adapter Private Network:
Connection-specific DNS Suffix . : priv.djm.home.arpa
Description . . . . . . . . . . . : Realtek USB 2.5GbE Family Controller
Physical Address. . . . . . . . . : 8C-AE-4C-DD-50-23
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IPv4 Address. . . . . . . . . . . : 192.168.23.143(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : Wednesday, November 11, 2026 11:39:10 PM
Lease Expires . . . . . . . . . . : Sunday, November 15, 2026 12:34:30 AM
Default Gateway . . . . . . . . . : 192.168.23.252
DHCP Server . . . . . . . . . . . : 192.168.23.220
DNS Servers . . . . . . . . . . . : 192.168.23.220
192.168.23.240
Primary WINS Server . . . . . . . : 192.168.23.220
Secondary WINS Server . . . . . . : 192.168.23.240
NetBIOS over Tcpip. . . . . . . . : Enabled
Connection-specific DNS Suffix Search List :
djm.home.arpa
priv.djm.home.arpa
iot.djm.home.arpa
Mem.home.arpa

Ethernet adapter Ethernet:
Connection-specific DNS Suffix . : djm.home.arpa
Description . . . . . . . . . . . : Realtek USB GbE Family Controller
Physical Address. . . . . . . . . : 8C-AE-4C-C7-B6-FF
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IPv4 Address. . . . . . . . . . . : 192.168.22.143(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : Wednesday, November 11, 2026 1:22:46 PM
Lease Expires . . . . . . . . . . : Sunday, November 15, 2026 12:34:30 AM
Default Gateway . . . . . . . . . : 192.168.22.252
DHCP Server . . . . . . . . . . . : 192.168.22.220
DNS Servers . . . . . . . . . . . : 192.168.22.220
192.168.22.240
Primary WINS Server . . . . . . . : 192.168.22.220
Secondary WINS Server . . . . . . : 192.168.22.240
NetBIOS over Tcpip. . . . . . . . : Enabled
Connection-specific DNS Suffix Search List :
djm.home.arpa
priv.djm.home.arpa
iot.djm.home.arpa
Mem.home.arpa

I use the 23 network to access the NAS devices as it is faster.

Problem:

If I ping short names that are on the 22 network the name gets resolved.

C:\Users\donmu>ping lrtv
Pinging lrtv.djm.home.arpa [192.168.22.135] with 32 bytes of data:
Reply from 192.168.22.135: bytes=32 time=1ms TTL=64
Reply from 192.168.22.135: bytes=32 time=1ms TTL=64
Reply from 192.168.22.135: bytes=32 time<1ms TTL=64
Reply from 192.168.22.135: bytes=32 time=1ms TTL=64

If I ping short names that are on the 23 network the name does not get resolved but the FQDN does.

C:\Users\donmu>ping djmfs2priv
Ping request could not find host djmfs2priv. Please check the name and try again.

C:\Users\donmu>ping djmfs2.priv.djm.home.arpa
Pinging djmfs2.priv.djm.home.arpa [192.168.23.220] with 32 bytes of data:
Reply from 192.168.23.220: bytes=32 time=1ms TTL=64
Reply from 192.168.23.220: bytes=32 time=1ms TTL=64
Reply from 192.168.23.220: bytes=32 time<1ms TTL=64
Reply from 192.168.23.220: bytes=32 time<1ms TTL=64
Ping statistics for 192.168.23.220:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms

Why are the shortnames not resolving and how do I get it to work?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20261112/fd94c897/attachment-0001.htm>


More information about the Dnsmasq-discuss mailing list