Dns issues!?

I’ve noticed that in the system (qnx6) I’ve 3 configuration files were
dns server can be specified:

/etc/net.cfg (set by phlip)
/etc/resolve.conf (standard unix one)
/etc/ppp/resolve.conf

The nameserver specified in net.cfg NEVER gets used.
Also, I’ve noticed that every dialup connection will get dns from the
isp and put them in /etc/ppp/resolve.conf.
After that these servers will be put into the top of /etc/resolve.conf.

What’s the file parsing order for resolving an host??!?
Why /etc/net.cfg dns NEVER gets used? How to use ONLY the server
specified in /etc/net.cfg?

I’ve a lot of problems because my dns server is fixed and every
time I connect phdialer will comment-up my nameservers in
/etc/resolve.conf. /etc/net.cfg never gets used and I don’t want to
rewrite this dns address also in phdialer (this is a nonsense).

Please help :slight_smile:


Wave++

no one?


Wave++

Hi,

Take a look at the docs for /etc/resolv.conf, there’s a section on
overriding the file using the confstr() function. The socket library
looks in the confstr() configuration strings first to locate the
resolver data.

Regards,
Barry

Wave++ <wavexx@apexmail.com> wrote:

I’ve noticed that in the system (qnx6) I’ve 3 configuration files were
dns server can be specified:

/etc/net.cfg (set by phlip)
/etc/resolve.conf (standard unix one)
/etc/ppp/resolve.conf

The nameserver specified in net.cfg NEVER gets used.
Also, I’ve noticed that every dialup connection will get dns from the
isp and put them in /etc/ppp/resolve.conf.
After that these servers will be put into the top of /etc/resolve.conf.

What’s the file parsing order for resolving an host??!?
Why /etc/net.cfg dns NEVER gets used? How to use ONLY the server
specified in /etc/net.cfg?

I’ve a lot of problems because my dns server is fixed and every
time I connect phdialer will comment-up my nameservers in
/etc/resolve.conf. /etc/net.cfg never gets used and I don’t want to
rewrite this dns address also in phdialer (this is a nonsense).

Please help > :slight_smile:


Wave++

Operating System for Tech Supp <os@qnx.com> wrote:

Hi,

Take a look at the docs for /etc/resolv.conf, there’s a section on
overriding the file using the confstr() function. The socket library
looks in the confstr() configuration strings first to locate the
resolver data.

Well, the documentation about confstrings ins’t that clare.
On the documentation I read:

  • The netmanager utility modifies the _CS_RESOLVE configuration string.
    On the netmanager I read:
  • The netmanager uses the _CS_RESOLVE configuration string instead of
  • /etc/resolv.conf, and passes options to dhcp.client and pppd.
    So actually netmanager sets something (The value found in
    /etc/net.cfg I thought) but the resolver library continues to use the
    values found in /etc/resolve.conf and pppd continues to overwrite
    them.

As sayd before, setting a nameserver in netmanager is useless since
the value never gets used (even when /etc/resolv.conf doesn’t
exist!!).

Regards,
Barry

Wave++ <> wavexx@apexmail.com> > wrote:
I’ve noticed that in the system (qnx6) I’ve 3 configuration files were
dns server can be specified:

/etc/net.cfg (set by phlip)
/etc/resolve.conf (standard unix one)
/etc/ppp/resolve.conf

The nameserver specified in net.cfg NEVER gets used.
Also, I’ve noticed that every dialup connection will get dns from the
isp and put them in /etc/ppp/resolve.conf.
After that these servers will be put into the top of /etc/resolve.conf.

What’s the file parsing order for resolving an host??!?
Why /etc/net.cfg dns NEVER gets used? How to use ONLY the server
specified in /etc/net.cfg?

I’ve a lot of problems because my dns server is fixed and every
time I connect phdialer will comment-up my nameservers in
/etc/resolve.conf. /etc/net.cfg never gets used and I don’t want to
rewrite this dns address also in phdialer (this is a nonsense).

Please help > :slight_smile:


Wave++


Wave++