[En-Nut-Discussion] RE: DNS server IP via DHCP
Harald Kipp
harald.kipp at egnite.de
Fri Oct 8 10:18:30 CEST 2004
Hi John,
unfortunately this information is hidden in a local
DNSCONFIG structure in resolv.c.
DNS support had been added somehow as a quick hack.
I agree, that your suggestion is the way to go.
Harald
At 08:03 08.10.2004 +1300, you wrote:
>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
>
>
>_______________________________________________
>En-Nut-Discussion mailing list
>En-Nut-Discussion at egnite.de
>http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
More information about the En-Nut-Discussion
mailing list