If I understand correctly , you nslookup your VM’s Public IP address though your DNS server and get the error ”DNS request timed out”.
I suggest you can take following steps to troubleshtoot:
- Ensure there is no 3rd party firewall software on your VM.
- Ensure that you had setup your DNS Server correctly.
- You can use the Debug function of nslookup to check hwo nslookup on your machine to find it whether a network issue.
Exmaple:
C:\Administrator>nslookup
>set debug
>[Your test IP address]
- If your network configuration is correct, this issue may caused by the nslookup Tools problem. You can use 'nosearch' and ‘srchlist=’
Exmaple:
C:/>nslookup -nosearch <Test IP address>
C:/>nslookup -srchlist= <Test IP address>
If all above does not help you resolve this issue, you can offer me more details about How you test, the How did you setup your DNS server and Error information so that I can troubleshoot it clearly.
Notice: you can also to refer to this link to setup public DNS Server on Azure VM.