[En-Nut-Discussion] RE: DNS server IP via DHCP

John Griffiths johng at asnet.co.nz
Thu Oct 7 21:03:33 CEST 2004


Hi,

What I would like is to be able to get the DNS Primary & Secondary server IP
Addresss's, and other paramaters received from the the DHCP request (eg WINS
server IP, time of lease expiry, etc).

You are correct these values are populated...

confnet.cdn_mac[x] (x=0...5)
confnet.cdn_ip_addr
confnet.cdn_ip_mask
confnet.cdn_gateway


but there doesn't appear to be a...

confnet.cdn_pdnsip (primary dns ip)
confnet.cdn_sdnsip (secondary dns ip)

I wondered if they are stored somewhere else, but it doesn't appear so.

Thanks
John


-----Original Message-----

From: fischermi at t-online.de (Michael Fischer)
Subject: [En-Nut-Discussion] DNS server IP via DHCP
To: <en-nut-discussion at egnite.de>
Message-ID: <JLEAKDMELBINENLADICFKEIHCEAA.fischermi at t-online.de>
Content-Type: text/plain;	charset="iso-8859-1"

Hello John,

I don't know what you exactly want.
But you can get access to the network values with:

confnet.cdn_mac[x] (x=0...5)
confnet.cdn_ip_addr
confnet.cdn_ip_mask
confnet.cdn_gateway

I think after a DHCP call, these values should have the correct parameter.

Regards,

Michael





More information about the En-Nut-Discussion mailing list