DNS.zip

Configuring IP Address on Centos 6.7

783

On Centos 6.7,you can check IP address configuration by ifconfig command as below: .The below is the example of files on " / etc / sysconfig / network-scripts". Among above,ifcfg-eth0 and ifcfg-eth1 is wired network,and below is the reference example: .If ...

Public DNS (Domain Name Service) based on IPv4, IPv6 widely used

Public DNS (Domain Name Service) based on IPv4, IPv6 widely used

1,239

In most cases,the Dynamic Host Configuration Protocol (DHCP) automatically configures your system to use the IP addresses of your ISP's domain name servers.To use Public DNS,you need to explicitly change the DNS settings in your operating system or device ...

Dynamic DNS Made Easy: Building a Python-Based Solution

793

Creating a dynamic DNS (Domain Name System) service in Python involves several components: a server that listens for DNS queries, a database to store mappings between domain names and IP addresses, and functionality to update these mappings dynamically. Be...

Building a Basic DNS Server in PHP/Python: A Beginner's Guide

731

Creating a full-fledged DNS server in PHP is not recommended for production environments due to performance and security concerns. DNS servers require low-level networking capabilities and efficient handling of DNS protocol messages, which PHP is not optim...

Python Flask web server tutorial from the scratch

618

Flask is a feature in the Flask web framework (a popular micro web framework for Python).Flask-Flash is used to display flash messages to users.Flash messages are typically used to provide feedback to users,such as notifications about the success or failur...

Generate Let’s Encrypt Wildcard SSL Certificate

619

STEP 1.Install Let’s Encrypt Certbot Tool.Before you can create free wildcard certificates,you need certbot installed.I’m using an CentOS Server here.To install it,run the following commands: .STEP 2.Generate Let’s Encrypt Wildcard SSL Certificate.After...

How do I determine the client IP type (IPv4/IPv6) in PHP

828

In the PHP, there are filters which can determine IPv4 and IPv6: FILTER_VALIDATE_IP, FILTER_FLAG_IPV4, FILTER_FLAG_IPV6.Below code shows how to determine the client protocol:This code snippet checks whether the client's IP address is IPv4 or IPv6 using fil...

How do I determine the client IP type in Python - IPv4 or IPv6

758

We can determine IPv6 and IPv4 based on its separator character. IPv4 uses period(.) and IPv6 uses colon(:).Below code shows how to determine the client protocol In this Python code:We import the socket module.We use socket.getaddrinfo() to get the IP...

Exploring the Depths of Data Transfer: sendfile vs. kTLS

Exploring the Depths of Data Transfer: sendfile vs. kTLS

1,314

When optimizing the performance of web servers and ensuring secure data transmission, two technologies often come into play: sendfile and Kernel TLS (kTLS). Both are designed to enhance efficiency in different ways, primarily in the context of sending data...

Enable/Disable IPv4 on Windows

1,284

Disabling IPv4 on Windows through a batch script can be a bit more involved compared to disabling IPv6, but it's still achievable using netsh. Here's a script that disables IPv4 on all network interfaces:Save this script with a .bat extension (e.g., disabl...

Enable/Disable IPv6 on Windows

1,728

Even though IPv6 is one of the key features by the most of network service providers, but its network equipments are not stable accordingly, so we face a lot of connectivity issues from time to time. Sometimes, it is recommended us to turn IPv6 off for sta...

Setup Apache+PHP+MySQL on Centos 6.7

605

If you installed Centos in minial installation mode, you should install Apache + PHP + MySQL manually.The followings are the procedure to install Apache + PHP + MySQL:Making apache and mysql to start automatically

mcrypt missing when using phpMyAdmin on Centos 6.7

545

“mcrypt” is an interface to the mcrypt library, which supports a wide variety of block algorithms such as DES, TripleDES, Blowfish (default), 3-WAY, SAFER-SK64, SAFER-SK128, TWOFISH, TEA, RC2 and GOST in CBC, OFB, CFB and ECB cipher modes. Additionally, ...

Set timezone and time on Centos 6.7

539

When using OAuth 1.0a, it requires timestamp for authentication. The followings are the example of shell commands which can set time information. Setup timezoneTo set the timezone of your system clock do the following:# rm -rf / etc / localtime# ln -...

How to optimize MySQL automatically in CentOS Linux

1,006

I am using CentOS Linux for service purpose. Main reason to use CentOS is cheaper hosting for private purpose. Actually MySQL requires periodical optimization process in my experiences, and I use / etc / cron.hourly usually for those kind of bath processi...

Retrieving all image links from an HTML document

416

Here's how to obtain all image links from an HTML document.The GetImageLinks procedure fills a TStrings object with the value of the SRC property of the IMG HTML element.Note: if the images have relative links,you will have to parse the document url and pr...

List All Network Drives

389

To show a list of all mapped network drives,use the GetNetworkDriveMappings function.Example usage: .

How to get get IE favorites

448

The GetIEFavourites function called from the OnClick event of a button returns a list of all the favorites from your Internet Explorer in a ListBox.

Download a file from the Internet with progress indicator

551

If you need to save the contents of a specified URL to a file - and be able to track the download progress,use the TDownLoadURL.While TDownLoadURL is writing to the specified file,it periodically generates an OnDownloadProgress event,so that you can provid...