TagIPv6

Disable Direct IP Address Access in Nginx on Linux

Disable Direct IP Address Access in Nginx on Linux

Cyrus Kao
Nginx's server_name directive indicates the domain name it's listening on. But if non of the server blocks match the incoming request, it will still fall back to the last HTTP/HTTPS server block. So a direct access by IP address will probably caught by some route instead of being dropped, which is often not ideal.
Change DNS Servers (IPv4, IPv6) on Linux

Change DNS Servers (IPv4, IPv6) on Linux

Cyrus Kao
In my opinion, changing DNS servers on Linux is even easier than Windows. As you only need to do it once and it applies to all the network interfaces. In this guide we'll be covering configure DNS servers on all Linux distros and prevent DNS settings from changing by other services.