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)

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.

Just make sure that your /etc/nsswitch.conf is configured to read the
hosts file first, like this

hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4


> 
> There is  a way to accomplish this?
> 
> Thank you all
> 


Cheers,
Jukka


_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to