[Dnsmasq-discuss] What's the easiest way to add some names to default dnsmasq in debian/ubuntu?
Petr Mensik
pemensik at redhat.com
Mon Mar 6 09:49:13 GMT 2017
Hi Chris,
I think you create some file, for exaqmple /etc/NetworkManager/dnsmasq.d/hosts.conf, containing addn-hosts=/etc/hosts.dnsmasq.
Then you would have to create hosts.dnsmasq with hosts(5) format. Place odin there.
1.2.3.4 odin
You could use some hook to NetworkManager to use create special file only for selected network. But I never did something like that, I cannot help you with that.
But I think you should try to ask LAN administrator to configure DNS and DHCP so that you do not have to invent something yourself.
Maybe there is a name already that you do not know about.
Cheers,
Petr
--
Petr Menšík
Software Engineer
Red Hat, http://www.redhat.com/
email: pemensik at redhat.com PGP: 65C6C973
----- Original Message -----
From: "Chris Green" <cl at isbd.net>
To: dnsmasq-discuss at lists.thekelleys.org.uk
Sent: Friday, March 3, 2017 4:49:59 PM
Subject: [Dnsmasq-discuss] What's the easiest way to add some names to default dnsmasq in debian/ubuntu?
In Ubuntu systems (and maybe debian, not sure about this) dnsmasq is
run my NetworkManager to provide local DNS, the process shows up as:-
nobody 1470 1022 0 15:01 ? 00:00:00 /usr/sbin/dnsmasq --no-resolv --keep-in-foreground --no-hosts --bind-interfaces --pid-file=/var/run/NetworkManager/dnsmasq.pid --listen-address=127.0.1.1 --cache-size=0 --conf-file=/dev/null --proxy-dnssec --enable-dbus=org.freedesktop.NetworkManager.dnsmasq --conf-dir=/etc/NetworkManager/dnsmasq.d
Is there any easy way to get it to recognise some local names? I have
(in particular) a BeagleBone black on one LAN I use and it would be
really handy to be able to call it 'odin' rather than have to find its
IP address every time.
DHCP for the LAN is provided by a router which, sadly, doesn't seem to
know about local names.
Ideally 'odin' should only be present when it actually *is* present
(i.e. when I'm connected to the specific LAN where it exists), but
this isn't absolutely necessary.
--
Chris Green
_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss at lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
More information about the Dnsmasq-discuss
mailing list