How to use curl to make DNS queries and resolve domains

1. Use –resolve Option The –resolve option allows you to manually specify the IP address for a domain, effectively overriding DNS resolution. Steps: Use the following syntax: curl –resolve <hostname>:<port>:<IP_address> <URL> Key…

How to force DNS lookup domains

$ nslookup dmscambs.co.uk 8.8.8.8$ nslookup dmscambs.co.uk$ curl -i www.dmscambs.co.uk$ curl -vvv www.biomodels.co.uk

Print Only HTTP Status Code With Curl

When handling HTTP requests, it is often necessary to check the status code of a response quickly, without retrieving the full headers or body. This is useful for testing API…

Use PowerShell to Set Environment Variables

What Are Environment Variables? Two fundamental components of any computer programming language are variables and constants. Like independent variables in a mathematical equation, these take on values that change the results of the…

See cluster resources usage with kubectl command

Monitoring resources is among the significantly important tasks of an engineer working with Kubernetes. In the K8s ecosystem, we can find a range of tools and software allow us to…

How many CPU cores does your computer have?

http://www.howtogeek.com/howto/ubuntu/display-number-of-processors-on-linux/ http://www.linuxquestions.org/questions/linux-newbie-8/find-number-of-cores-in-my-processor-772925/ http://askubuntu.com/questions/257248/how-can-i-see-how-many-processor-cores-are-working http://www.cyberciti.biz/faq/linux-get-number-of-cpus-core-command/

How To Find Similar Lines Between Two Text Files In Linux

Those working in Unix environment must be aware of the requirement to find common lines between two Unix files. In this article, I want to introduce you a solution of…

Parsing C++ Command-Line Arguments

Microsoft Specific Microsoft C/C++ startup code uses the following rules when interpreting arguments given on the operating system command line: Arguments are delimited by white space, which is either a…