Intermittent System Configuration dynamic store DNS problem
Intermittent System Configuration dynamic store DNS problem
- Subject: Intermittent System Configuration dynamic store DNS problem
- From: "Jamie Wood" <email@hidden>
- Date: Thu, 08 Jun 2006 09:29:49 -0700
Greetings,
I have an application which modifies the dynamic store of the System
Configuration in order to override the system DNS settings.
The steps that are followed are:
1. Copy the State:/Network/Service/<primary_interface>/IPv4 dictionary, and
massage it into a custom service with the OverridePrimary key set. The
"InterfaceName", "Addresses", "SubnetMasks", and "Router" keys all remain
the same.
2. Create a State:/Network/Service/<service_id>/DNS dictionary with the
desired settings.
3. Put the changes into the dynamic store.
Most of the time, this works great. The system installs the custom service
as the "PrimaryService" (reported by State:/Network/Global/IPv4), and
installs the custom DNS settings in State:/Network/Global/DNS. The changes
are reflected in /etc/resolv.conf.
However, sometimes this doesn't work. State:/Network/Global/IPv4 shows that
the custom service is the "PrimaryService", but the DNS changes do not get
propogated to /etc/resolv.conf, and DNS resolution continues to use the
original settings.
As I mentioned, this is an intermittent problem, so I'm wondering if there
could be some sort of race condition here.
Does anybody have any ideas on what could be going wrong here, or ideas on
how to avoid the problem?
Thanks,
Jamie
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden