Il 24/04/2014 13:51, Jukka Rissanen ha scritto:
Hi Andrea,
On to, 2014-04-24 at 13:24 +0200, Andrea Cappelli wrote:
Hi list,
I use ConnMan 1.20 to configure an embedded device, with dnsproxy enable
It's possible to "inject" some records in this process?
It is not possible to inject records into dnsproxy.
For example I would that the name myfunnyname was resolved as local ip
With other software you can put some entry in /etc/hosts and those
records get served before the recursion occurs
I tried, but ConnMan seems not to read /etc/hosts (or maybe I do
something wrong)
Thank you Jukka for your reply
That is correct, ConnMan does not use hosts file, but your libc resolver
should use it just fine. I just tested this by adding my own stuff
to /etc/hosts file and they just resolve just fine. This only applies
for local connections, if you are tethering then this is not possible
and the connected clients will not see your myfunnyname local ip
address.
Yeah, I know libc resolver is ok, what I need is to act as DNS recursor
for a subnet, plus adding some custom records
I suppose I'll switch to bind9 or pdn-recursor for this task
Thank you and have a nice day
--
Andrea Cappelli
_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman