[TASK] DNS Lookup

[TASK] DNS Lookup

Postby admin » Tue Oct 17, 2017 5:48 pm

What is DNS?

Short for Domain Name System (or Service or Server), an Internet service that translates domain names into IP addresses. Because domain names are alphabetic, they're easier to remember. The Internet however, is really based on IP addresses. Every time you use a domain name, therefore, a DNS service must translate the name into the corresponding IP address. For example, the domain name http://www.example.com might translate to

From https://www.webopedia.com/TERM/D/DNS.html

How to Make DNS Query From PHPoC

The below shows how to send DNS query from PHPoC Blue or Black

1. Make sure that your PHPoC Blue or Black is connected to the Internet.

2. Please download a PSP (PHPoC Support Package) of libraries and examples from PHPoC.

3. Connect PHPoC Blue or Black to your PC via USB cable.

4. Run PHPoC Debugger.

5. Upload all libraries in PSP to your PHPoC Blue or Black through PHPoC Debugger.
In fact, you only need to upload sn_dns.php file to use in this example. But for future use, you can upload all.
※ Note that: the libraries should be located in the /lib folder.
psp_lib.png (8.84 KiB) Viewed 180 times

6. Find an example of email_msa in the PSP.
psp_dns_files.JPG (14.92 KiB) Viewed 180 times

7. Upload init.php and task0.php files to your PHPoC Blue or Black.
※ Note that: the init.php and task0.php files should be located in the root folder.
psp_phpoc_files.png (2.22 KiB) Viewed 180 times

8. Modify the Domain Name you want in task0.php file.
psp_dns_modified.JPG (43.87 KiB) Viewed 180 times

9. Upload the task0.php to your PHPoC Blue or Black again.

10. Run the example to see the result
psp_dns_result.JPG (15.38 KiB) Viewed 180 times
Site Admin
Posts: 168
Joined: Mon Jan 20, 2014 4:40 pm

Return to Example

Who is online

Users browsing this forum: No registered users and 1 guest