Part Number: CC3220
I tried to configure the AP mode in Uniflash so that the only enabled network applications are HTTP and DHCP (mDNS and DNS are OFF).
Also, I have entered IP addresses in the network settings (including a DNS server).
I found out that the DNS server does not get sent/communicated to the clients that connect to the DHCP server.
If the DNS application is running, the DNS server address is sent correctly.
Please note that in this example the DNS IP is equal to the gateway IP, but the same happens if you use another DNS IP.
How can you force the DHCP server to send the DNS IP when a client connects... ?
In reply to Salvatore Castellano:
OK, I will try it tonight. Why do I need to turn off the DNS server? That is on port 53 which should not interfere with DHCP. Or am I misunderstanding?
I am also using wireshark but only see DHCP requests from the client. No response from CC3220. The existing code already configures it for AP, DHCP, DNS, mDNS, and DHCP. All I did was disable DHCP. I don't see why it wouldn't work unless there is some dependency I don't understand.
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
In reply to Andrew5821:
glad you got it working. :-)
1. The DNS server does not have to be disabled; you are correct; in my case it had to, because I use my own DNS server, in order to have my captive portal working.
2. I am not sure why you are not seeing the DHCP server responses in Wireshark; are you using the multicast address 255.255.255.255 in the UDP sendto() method ? In my setup here, I see all responses using the bootp filter in Wireshark.
3. If you have any feedback, please do let me know! :-)
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.