name server config

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Klaus Darilion wrote:
> Hi!
> 
> According to documentation I have to manually specify the nameservers if 
> I want to use SRV lookups. As I do not want users to configure them 
> manually, do you have some ideas how I can retrieve the name servers 
> from the OS?

We can use GetNetworkParams() on Windows. Not sure how to do it on 
Linux/Posix other than to parse /etc/resolv.conf, and that's the 
reason why we don't have a portable getdnsservers() function in 
pjlib since I'm not happy with having to do this. If anybody knows 
an easier way, I'll be happy to add.

cheers,
  -benny

> thanks
> klaus
> 





[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux