Linux DNS
Linux DNS
www.example.com 192.168.0.2
www.hellloo.com 192.168.0.3
192.168.0.1
www.google.com
DNS Server
192.168.0.2
192.168.0.3
Let’s setup our own
WebServer
Installation (CentOS or RedHAT)
Package we need to install
Windows: Go to Control Panel > Network and Internet > Network and Sharing Center >
Change adapter settings. Right-click your network connection, select Properties, then
select Internet Protocol Version 4 (TCP/IPv4) or Version 6 (TCP/IPv6) and click
Properties. Here, you can set your preferred DNS server.
macOS: Go to System Preferences > Network, select your network interface, click
Advanced, and go to the DNS tab. You can add your DNS server here.
Linux: This depends on your distribution and network manager, but typically you can
edit /etc/resolv.conf directly or configure through network management tools (like
NetworkManager) to add your DNS server.