Home > Tag Archives: ProcessBuilder

Tag Archives: ProcessBuilder

How to do Reverse DNS (rDNS) lookup in java

Java

What is Reverse DNS Lookup Reverse DNS lookup or reverse DNS resolution (rDNS) is the determination of a domain name that is associated with a given IP address using the Domain Name System (DNS) of the Internet. Computer networks use the Domain Name System to determine the IP address associated with a domain name. This process is also known as ... Read More »

Executing Operating System/ Shell Commands In Java

Java

In Java, you can execute external OS/shell commands. There are two ways to start an operating system process/execute shell command within Java: java.lang.Runtime#exec(java.lang.String), since Java 1 java.lang.ProcessBuilder, since Java 5 We will here show you both ways to execute Operating System/ Shell Commands 1. Using java.lang.Runtime The java.lang.Runtime class allows the application to interface with the environment in which the ... Read More »