Fwd: OpenWRT / DNSmasq question

Is there a way (using just DNSmasq, not installing a full service DNS server) to have an OpenWRT router answer DNS queries for a particular name? A name that's not a local DHCP lease. I have a Digital Ocean "droplet" that's just an IP, but I've given it a name and normally stuff that name and the IP into the /etc/hosts file. But if I put it into the router, I wouldn't have to keep editing hosts files ... -- Giles http://www.gilesorr.com/ gilesorr@gmail.com

Hi Giles, This is exactly how it works, you add a record to /etc/hosts file, that could be any record. There's only one confusing step -- you need to restart dnsmasq every time you edit the file as dnsmasq doesn't detect changes automatically. Alex. On 13/11/15 07:55 PM, Giles Orr wrote:
Is there a way (using just DNSmasq, not installing a full service DNS server) to have an OpenWRT router answer DNS queries for a particular name? A name that's not a local DHCP lease. I have a Digital Ocean "droplet" that's just an IP, but I've given it a name and normally stuff that name and the IP into the /etc/hosts file. But if I put it into the router, I wouldn't have to keep editing hosts files ...

Fantastic, that worked! Thanks! On 13 November 2015 at 23:51, Alex Volkov <alex@flamy.ca> wrote:
Hi Giles,
This is exactly how it works, you add a record to /etc/hosts file, that could be any record. There's only one confusing step -- you need to restart dnsmasq every time you edit the file as dnsmasq doesn't detect changes automatically.
Alex.
On 13/11/15 07:55 PM, Giles Orr wrote:
Is there a way (using just DNSmasq, not installing a full service DNS server) to have an OpenWRT router answer DNS queries for a particular name? A name that's not a local DHCP lease. I have a Digital Ocean "droplet" that's just an IP, but I've given it a name and normally stuff that name and the IP into the /etc/hosts file. But if I put it into the router, I wouldn't have to keep editing hosts files ...
--- Talk Mailing List talk@gtalug.org http://gtalug.org/mailman/listinfo/talk
-- Giles http://www.gilesorr.com/ gilesorr@gmail.com
participants (2)
-
Alex Volkov
-
Giles Orr