Correct syntax in dnsmasq entries

I'm using : Pi-hole Version** v4.4, Web Interface Version** v4.3.3, FTL Version** v4.3.1. in docker environment.

It just as simple setup as it can be.
I'd like to add static entries in ./etc-dnsmasq.d/99-hosts.conf file on host server.
But none of below entries is correct
Neither

mylocalserver1=/local/192.168.3.6
mylocalserver1=/3.168.192.in-addr.arpa/192.168.3.6

or

192.168.3.6    mylocalserver1.local   mylocalserver1

Every time i start container with custom dnsmasq file i receive this error:
"dnsmasq: bad option at line 1 of /etc/dnsmasq.d/99-hosts.conf"

I am not using DHCP in pi-hole. My local router (Archer C1200 v2.0) is also a DHCP server and does not have option to set "local" DNS domain in DHCP setting (but this shouldn't be as important, I think)
What am I doing wrong here?

That's not a dnsmasq configuration command.

What are you trying to accomplish?

I am trying to add few local servers to pi-hole DNS name resolution.
For example file share: fileserver with IP address: 192.168.3.34 and "myfileserver1".

address=/<domainname>/<IP>

So, this looks correct for me::

mylocalserver1=/local/192.168.3.6

But does not work.

As noted by DanSchaper, this is not the correct format for the dnsmasq command:

http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html

1 Like

Wrong:

mylocalserver1=/<domainname>/<IP>

Right:

address=/<domainname>/<IP>
1 Like

Oh!
Thanks, this is simple as that :slight_smile: