Page 1 of 1

Dnsmasq for local hosts

Posted: Mon Apr 20, 2020 12:20 pm
by vyvvyan
Hi,

Feel free to point me at existing posts on this subject matter, but I did a search and didn't find a relevant question/topic. I'm looking to add all my local host names into dnsmasq on Gargoyle 1.12.0. I understand the syntax of what I need to add, but I am not sure where to add it. /etc/dnsmasq.conf seems to only have commented-out lines in it, and the runtime dnsmasq is pointing to a different file (/var/etc/dnsmasq.conf.cfg01411c).
Do I just edit the latter, or is there something special I need to do to the /etc/dnsmasq.conf file to create the right /my.server.lan/192.168.x.y entries?

Re: Dnsmasq for local hosts

Posted: Mon Apr 20, 2020 12:58 pm
by RomanHK
vyvvyan wrote:
Mon Apr 20, 2020 12:20 pm
Hi,

Feel free to point me at existing posts on this subject matter, but I did a search and didn't find a relevant question/topic. I'm looking to add all my local host names into dnsmasq on Gargoyle 1.12.0. I understand the syntax of what I need to add, but I am not sure where to add it. /etc/dnsmasq.conf seems to only have commented-out lines in it, and the runtime dnsmasq is pointing to a different file (/var/etc/dnsmasq.conf.cfg01411c).
Do I just edit the latter, or is there something special I need to do to the /etc/dnsmasq.conf file to create the right /my.server.lan/192.168.x.y entries?
Gargoyle uses the files /etc/hosts and /etc/ethers for static leases and for local names.

Re: Dnsmasq for local hosts

Posted: Mon Apr 20, 2020 1:37 pm
by vyvvyan
Thanks.

Does that allow passing on the hosts file contents to any connected host? So with the my.server.lan definition as in my original question, would any laptop I connect on my network be able to use my.server.lan instead of the IP address?

Re: Dnsmasq for local hosts

Posted: Mon Apr 20, 2020 2:21 pm
by RomanHK
vyvvyan wrote:
Mon Apr 20, 2020 1:37 pm
Thanks.

Does that allow passing on the hosts file contents to any connected host? So with the my.server.lan definition as in my original question, would any laptop I connect on my network be able to use my.server.lan instead of the IP address?
The correct format should be:

Code: Select all

address=/my.server.lan/192.168.x.y
then yes.

Re: Dnsmasq for local hosts

Posted: Mon Apr 20, 2020 5:15 pm
by Lantis
Just use the gargoyle DHCP GUI section and set this up. No need to stuff around in the back end.

Re: Dnsmasq for local hosts

Posted: Tue Apr 21, 2020 1:02 am
by ispyisail
Lantis wrote:
Mon Apr 20, 2020 5:15 pm
Just use the gargoyle DHCP GUI section and set this up. No need to stuff around in the back end.
I was thinking this also.......