Tool/software:
Our device is configured as access point.
When I connect an iPhone the DHCP server must provide a valid DNS address.
Currently the DHCP server provides DNS address 0.0.0.0 which is obviously not accepted by the iPhone, when the DNS address mode is set to 'automatic'.
The result is, that the WiFi symbol is not shown in the upper status bar and the app cannot access the access point.
Although our device has no need to resolve domain names since we only work with IP addresses for our connections.
in our device the IP address as well as the DNS address module must be configured at runtime.
How do I set the DNS address which the DHCP server propagates during module runtime?
Can you please send me some example code?
Here is what the DHCP server responds to the iPhone
Frame 12: 342 bytes on wire (2736 bits), 342 bytes captured (2736 bits) on interface \Device\NPF_{C494B194-D1BE-4AC4-890C-20CFBD8B98EB}, id 0
Ethernet II, Src: TexasInstrum_78:5a:c5 (1c:63:49:78:5a:c5), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Internet Protocol Version 4, Src: 192.168.178.1, Dst: 255.255.255.255
User Datagram Protocol, Src Port: 67, Dst Port: 68
Dynamic Host Configuration Protocol (ACK)
Message type: Boot Reply (2)
Hardware type: Ethernet (0x01)
Hardware address length: 6
Hops: 0
Transaction ID: 0xfda9050c
Seconds elapsed: 0
Bootp flags: 0x0000 (Unicast)
Client IP address: 0.0.0.0
Your (client) IP address: 192.168.178.3
Next server IP address: 0.0.0.0
Relay agent IP address: 0.0.0.0
Client MAC address: 92:f0:07:f5:e5:63 (92:f0:07:f5:e5:63)
Client hardware address padding: 00000000000000000000
Server host name not given
Boot file name not given
Magic cookie: DHCP
Option: (53) DHCP Message Type (ACK)
Option: (54) DHCP Server Identifier (192.168.178.1)
Length: 4
DHCP Server Identifier: 192.168.178.1
Option: (1) Subnet Mask (255.255.255.0)
Length: 4
Subnet Mask: 255.255.255.0
Option: (3) Router
Length: 4
Router: 192.168.178.1
Option: (6) Domain Name Server
Length: 4
Domain Name Server: 0.0.0.0
Option: (51) IP Address Lease Time
Length: 4
IP Address Lease Time: 1 day (86400)
Option: (58) Renewal Time Value
Length: 4
Renewal Time Value: 12 hours (43200)
Option: (59) Rebinding Time Value
Option: (255) End
Padding: 0000000000000000000000000000