• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
MoreNetworkSetup: Mac OS 8.6 and no or empty DNS list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MoreNetworkSetup: Mac OS 8.6 and no or empty DNS list


  • Subject: MoreNetworkSetup: Mac OS 8.6 and no or empty DNS list
  • From: Jens Bauer <email@hidden>
  • Date: Mon, 11 Feb 2002 15:27:09 +0100

Hi all,

I'm using MoreNetworkSetup to configure TCP/IP, and encountered a problem
under Mac OS 8.6

I want to configure TCP/IP for PPP, and I use the function
NSHCreateConfiguration.

When setting the NSHTCPv4ConfigurationDigest's fDNSServerList field to
myDNSList, which is a handle that contains 2 IP addresses, the
configuration is created.

When allocating a zero-length handle (NewHandle(sizeof(InetHost) *
dnsCount)), my configuration is not created at all. (It does not exist
when I open the TCP/IP control panel).

Setting fDNSServerList to NULL does not work either.

I want to be able to create a configuration that gets the DNS server list
from the server it connects to.

I set the following fields:

fProtocol = kOTTCPv4NetworkConnection;
fConfigName = "\pSome ISP";
fPortRef = portRec.fRef;
fConfigMethod = kTCPv4ManualConfig;
fIPAddress = 0; /* we want PPP not Manual config */
fSubnetMask = 0xFFFFFF00; /* my earlier boss told me to! */
fRouterList = nil;
fDNSServerList = dnsList; /* see above */
fLocalDomain = "\0";
fAdminDomain = "\0";
fSearchDomains = nil;
fAppleTalkZone = "\0"; /* we don't want to dial via
AppleTalk ;) */
fFraming = 0; /* because portType is kPPP. */
fUnloadAttr = kTCPv4ActiveLoadedOnDemand;
fHintUserVisiblePortName = "\0"; /* Uhm, I never really filled in
this.*/
fHintPortName = "\0"; /* this */
fHintDriverName = "\0"; /* this */
fHintDeviceType = 0; /* or this */

I got portRec from OTFindPort(&portRec, "IPCP");

-Does anyone know what I am doing wrong or why it doesn't work for me
under 8.6 ?
(Does NetworkSetup exist under Mac OS 8.6 ?)


Love,
Jens

--
Jens Bauer, Faster Software.
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: sys/msg.h
  • Next by Date: Am connected to Internet?
  • Previous by thread: Re: sys/msg.h
  • Next by thread: Am connected to Internet?
  • Index(es):
    • Date
    • Thread