Sign In
Sign In

How to Fix "Server IP Address Could Not Be Found"

How to Fix "Server IP Address Could Not Be Found"
Awais Khan
Technical writer
DNS
05.03.2025
Reading time: 6 min

The "Server IP Address Could Not Be Found" error arises from DNS resolution problems, which hinder the system from converting domain names into their related IP addresses. Several factors produce this error: DNS configuration errors, server uptime instability, or server hardware problems. The identification of primary causes stands as the key to solving issues successfully.

If facing such an error, move to this blog to find out different solutions to identify and repair the issue. 

Solution 1: Stable Internet Connectivity

To start server access you must have a dependable internet connection. Utilize the procedure outlined below to ensure your connection stays stable.

  • Verify physical connectivity by inspecting cables and validating the chosen Wi-Fi network. Cables that become loose will produce connection issues.

  • Reboot your router or modem to address potential connectivity problems: power them down, wait ten seconds, then turn them back on. A stable connection can be restored by running this procedure which removes temporary connection glitches.

  • Evaluate the host using various devices like tablets, computers, or smartphones, to check if device compatibility is contributing to the issue.

  • Engage your ISP if you suspect they can assist in alleviating your connectivity woes.

Solution 2: Verify and Adjust DNS Settings

Network access can be disrupted by improperly configured DNS settings. Checking and tweaking your DNS settings can aid in identifying network issues and sustaining a consistent internet connection. To review and modify your DNS settings, adhere to these guidelines.

Use Default DNS Settings

Leveraging the default DNS configuration provides hassle-free and consistent network connectivity without extra configuration efforts. Here’s way to do it:

Windows

  • Access Control Panel via the Start Menu.

Image1

  • Select Network and Internet, then visit Network and Sharing Center.

Image3

  • Click Change adapter settings.

Image2

  • Right-click on the in-use network and delve into Properties.

Image5

  • Activate IPv4 and head to Properties.

Image4

  • Enable automatic DNS server address obtaining in the settings.

Image7

macOS

  • Enter System Preferences and explore the Network option.
  • Opt for an in-use network (Ethernet or Wi-Fi).
  • Opt for Advanced to open the DNS tab.
  • Verify DNS servers have an automatic configuration.

Utilize Public DNS Servers

The domain resolution services delivered by Google and Cloudflare maintain reliability together with high speed. Consider using these public DNS addresses: 

Google

  • Primary Address: 8.8.8.8

  • Secondary Address: 8.8.4.4

Cloudflare

  • Primary Address: 1.1.1.1

  • Secondary Address: 1.0.0.1

Flush DNS Cache

Connectivity problems can stem from faulty or outdated DNS records on someone’s system. Here’s the procedure to refresh the DNS cache:

Windows

  • Open Command Prompt with admin rights and execute: 

ipconfig /flushdns

Image6

macOS

  • Open Terminal and execute:

sudo killall -HUP mDNSResponder

Solution 3: Analyze the Host File

To fine-tune domain name lookups, the host file can be utilized to alter DNS settings, providing control over the domain-to-IP mapping. You can check and perform modification in the host file via following procedure:

Modify the Hosts File

  • Use Notepad for hosts files edits on Windows systems but users must select between Nano or Vi text editors for macOS/Linux platforms.
  • Each line of the file needs careful inspection to find any errors or incorrect access causing the issue.
  • After editing, save the changes and close the editor.

Reload DNS Service

Refreshing the DNS client service can alleviate DNS-related problems.

Windows

  • Launch Services Manager via Win + R, and enter services.msc.

Image9

  • Find DNS Client by scrolling down in the manager tab.

Image8

  • Right-click the Client and trigger a Restart.

macOS

  • Fire up the Terminal and apply:

sudo killall -HUP mDNSResponder

The command reinitializes mDNSResponder service, enabling the new DNS configuration updates to be implemented.

Solution 4: Examine Server Configuration

When issues persist, server configuration issues might be the culprit. To verify and correct server setup follow this procedure:

  • Check all DNS records of your domain for proper configuration. Digital DNS tools and Network Services Lookup tools can be used to verify that DNS records function correctly.

  • The server firewall requirements must include DNS traffic authorization. Modify firewall settings to enable DNS query transmission if needed.

  • Performing a server restart of DNS services will rectify any configuration issues, resulting in improved connectivity. Run below command to restart the named service on a Linux server.

sudo systemctl restart named

Solution 5: Update Network Drivers

The IP address error can frequently be attributed to network drivers that are either obsolete or corrupted. A possible fix for such an issue is to simply update the network drivers.

Windows

  • Hit Win + X and launch Device Manager through the list.

  • Open the Network Adapters options using dropdown arrow.

Image12

  • Right-click the driver, move to Update driver, then pick Search automatically for drivers. Follow the steps to finalize the update.

Image10

macOS

  • Launch System Preferences, move to Software Update, and confirm if there are any updates.
  • Kick off the installation by clicking Update Now.

Solution 6: Clear Browser Cache

The browser cache can hinder DNS resolution, generating issues. Wiping the browser cache may help fix your error.

Google Chrome

  • After launching Chrome, click on the three vertical dots in the upper-right corner.
  • Access Settings, find Privacy and Security, and opt for Clear browsing data.
  • Go with All Time, mark the option Cached images and files, and select Clear now.

Image11

Solution 7: Use Troubleshooter

Most distributions are equipped with network troubleshooters that help you detect and fix connectivity issues. Here's how to use it:

Windows

  • Open the Settings by hitting Win + I.

Image13

  • From Update & Security, pick Troubleshoot → Additional troubleshooters.

Image14

  • Move to Internet Connections:

Image15

  • Launch the troubleshooter:

Image16

macOS

  • Access System Preferences and move over to Network.
  • Pick the Help Me options and select Diagnostics.
  • Follow the on-screen prompts to run the network diagnostics.

Solution 8: Check for Malware

Viruses or malware may hinder DNS resolution, triggering connectivity problems. Conducting a malware scan could help detect and remove any harmful software. Here's how to run a malware scan:

Windows

  • Open Settings to locate Update & Security followed by Windows Security to access Windows Defender.

Image17

  • Check for viruses with Virus & Threat Protection and then select between Quick Scan and Full Scan as detection methods.

Image18

macOS

  • Leverage dependable antivirus software to scan for potential malware and viruses.
  • Adhere to the software's instructions to carry out a full system scan and eliminate any detected threats.

Conclusion

By following the instructions in this article, you'll be able to pinpoint and fix the "Server IP Address Could Not Be Found" error. Essential actions include DNS setup verification, host file check for inconsistencies, restarting critical services, upgrading network drivers, clearing cached data in a browser, and utilizing built-in network troubleshooting tools. Each of these actions addresses particular connectivity issue reasons, ensuring a comprehensive method for maintaining smooth network access. Keeping your server's IP address readily discoverable is important for uninterrupted connectivity and reliable access to your services.

DNS
05.03.2025
Reading time: 6 min

Similar

Linux

Setting Up a DNS Server

A personal DNS server can be useful if your provider doesn't offer this service or if existing solutions don't suit your needs. The easiest way to set one up is via a control panel (cPanel, CloudPanel, HestiaCP, etc), but you can also do it manually using the terminal and the Linux DNS Server BIND 9. Preparing the Server Let's say you've rented a Hostman Linux VPS and want to use your own DNS servers. To do that, you need to meet two conditions: Order another public IP address — DNS setup requires at least two IPs. Open DNS port 53, which is necessary for the nameserver to work. Ubuntu/Debian Update the package list: apt update Allow incoming packets on port 53 UDP in the firewall: iptables -I INPUT -p udp --dport 53 -j ACCEPT Save the firewall rules: iptables-save CentOS Install system updates: yum update Install time synchronization utility: yum install chrony Set your timezone, for example: timedatectl set-timezone Europe/Cyprus Enable and start the time synchronization service: systemctl enable chronyd --now Open port 53: firewall-cmd --permanent --add-port=53/udp Apply the updated firewall rules: firewall-cmd --reload Installing the DNS Server This guide uses BIND 9 to create an IP-based DNS server. Ubuntu/Debian Install required packages: apt-get install bind9 dnsutils Enable autostart: systemctl enable bind9 Start the service: systemctl start bind9 Check if it's running: systemctl status bind9 Look for active status in the output. CentOS Install the DNS utility: yum install bind Enable autostart: systemctl enable named Start the service: systemctl start named Check its status: systemctl status named You should see active in the output. Basic DNS Server Configuration The settings are defined in the configuration file. Ubuntu/Debian Open the config file: vi /etc/bind/named.conf.options In the listen-on block, specify the networks, e.g.: listen-on { 10.10.10.0/24; 10.1.0.0/16; }; To allow the DNS server to listen on all interfaces, either omit this line or use any. In the allow-query line, specify who can make queries: allow-query { any; }; Restart the service for changes to take effect: systemctl restart bind9 CentOS Open the config file: vi /etc/named.conf Find these lines: listen-on port 53 { 127.0.0.1; localhost; 192.172.160.14; }; ... allow-query { any; }; In the listen-on line, after localhost, specify the DNS IP address. This is the IP on which the host will accept queries. Use any to listen on all addresses. In the allow-query line, define query permissions. any allows queries from everyone. You can also restrict it to a specific subnet, e.g., 192.172.160.0/24. Apply the config: systemctl restart named Global Options Besides the basics, you can fine-tune the server using other global parameters: Argument What It Configures directory Working directory (default is /var/named if not specified) forwarders IPs to forward unresolved queries to (e.g., Google's DNS) forwarders { 8.8.8.8; 8.8.4.4; }; forward Options: FIRST or ONLY. FIRST tries forwarders first, then internal. ONLY skips internal search. listen-on Interfaces that BIND listens on (usually port 53 UDP) allow-transfer Hosts allowed for zone transfers allow-query Who is allowed to send DNS queries allow-notify Hosts allowed to receive zone change notifications allow-recursion Hosts that can make recursive queries. Default is unrestricted. Testing To check if the DNS server accepts queries from clients, use the nslookup utility. From another computer: nslookup site-example.com 192.172.160.14 This checks the IP address of site-example.com using DNS server 192.172.160.14. Alternatively, use dig: dig @192.172.160.14 site-example.com It works similarly, just a different syntax. BIND Zones Basic DNS server setup is complete. Now, let’s talk about usage. For that, you configure zones: Primary zone – You create and edit domain records directly on this host. Secondary zone – This host pulls data from a primary DNS server. Stub zone – Stores only NS records used for redirection. Caching-only zone – Doesn’t store records; only caches query results for performance. Zone management is handled in the config file and is a larger topic. Creating your own zone lets you assign friendly names to each host, which is helpful when dealing with many nodes instead of using IPs.
10 April 2025 · 4 min to read
Network

A Complete Guide to the nslookup Command in Linux and Windows

The nslookup command is a widely used tool for querying Domain Name System (DNS) records. It helps network administrators troubleshoot DNS-related issues by allowing them to perform a range of lookups, from finding IP addresses associated with domain names to querying specific DNS servers. This tutorial will guide you through the basics of using nslookup on both Linux and Windows platforms. In this tutorial, you will learn: Basic syntax and options of nslookup How to perform simple DNS queries Retrieving mail exchange (MX) records Performing reverse DNS lookups Querying specific DNS servers Using non-interactive mode By the end of this tutorial, you will be familiar with the most common and useful nslookup commands for effective DNS troubleshooting. Basic Syntax and Options for nslookup The basic syntax for the nslookup command is straightforward: nslookup [options] [domain] Here is a breakdown of the commonly used options: No parameters: Opens an interactive mode where you can enter multiple queries [domain]: Performs a DNS lookup for the specified domain name -type=[record_type]: Specify the type of DNS record to query (e.g., A, MX, AAAA, etc.) [server]: Specify a DNS server for querying instead of using the default system server For example: nslookup example.com This command performs a DNS lookup for "example.com" using your default DNS server. Common Options for nslookup -query=A: Query the IP address (default record type) -query=MX: Retrieve mail exchange records -query=AAAA: Query for IPv6 addresses -timeout=[seconds]: Set a timeout for the response -debug: Show detailed information about the query process How to Perform a Simple DNS Query One of the most common uses of nslookup is to resolve domain names to IP addresses. Step-by-Step Guide to Performing a Simple DNS Query Open the terminal or command prompt. Type the nslookup command followed by the domain name: nslookup google.com Output: In this example, the DNS server at 8.8.8.8 (Google's public DNS server) returned the IP address 142.250.65.238 for google.com. Using nslookup to Retrieve MX Records The mail exchange (MX) records for a domain indicate which mail servers are responsible for receiving emails on behalf of that domain. To retrieve the MX records using nslookup: Use the -type=MX option to specify that you want to retrieve MX records.     nslookup -query=MX gmail.com The output will list the MX records, including the mail servers and their priority: Server: 8.8.8.8 Address: 8.8.8.8#53 Non-authoritative answer: gmail.com mail exchanger = 20 alt2.gmail-smtp-in.l.google.com.. gmail.com mail exchanger = 10 alt1.gmail-smtp-in.l.google.com. In this case, the mail servers for gmail.com are listed along with their priorities. The lower the number, the higher the priority. Performing Reverse DNS Lookups A reverse DNS lookup translates an IP address back to its associated domain name. This is useful for identifying the domain that corresponds to a given IP address. To perform a reverse DNS lookup, input the IP address into the nslookup command: nslookup 142.250.65.238 The output should display the domain name associated with the IP: Non-authoritative answer: 238.65.250.142.in-addr.arpa name = lga25s73-in-f14.1e100.net. In this example, the IP 142.250.65.238 resolves back to lga25s73-in-f14.1e100.net, which is part of Google's infrastructure. Querying Specific DNS Servers By default, `nslookup` uses the system's configured DNS server to perform queries. However, you can specify a different DNS server if needed. To query a specific DNS server, append the server's IP address to the command: nslookup example.com 1.1.1.1 The command will query the 1.1.1.1 DNS server (Cloudflare's DNS) for the domain example.com: Server: 1.1.1.1 Address: 1.1.1.1#53 Non-authoritative answer: Name: example.com Address: 93.184.215.14 This allows you to test DNS resolution from different servers. Using Non-Interactive Mode in nslookup In non-interactive mode, you can issue multiple queries without entering nslookup's interactive shell. This is useful when scripting or automating tasks. To use nslookup non-interactively, simply pass the domain name and the server (optional) in one command: nslookup example.com 8.8.8.8 The response will be printed directly, without entering the interactive shell: Server: 8.8.8.8 Address: 8.8.8.8#53 Non-authoritative answer: Name: example.com Address: 93.184.215.14 This method is efficient when you need to quickly query DNS records without additional input. Conclusion The nslookup command is a powerful and flexible tool for performing DNS queries. Whether you're troubleshooting domain resolution, retrieving MX records, or performing reverse lookups, nslookup is an essential command for network administrators. By mastering the options and syntax, you can use nslookup effectively on both Linux and Windows systems. To recap, here’s what we covered in this tutorial: Performing simple DNS queries Retrieving MX records Conducting reverse DNS lookups Querying specific DNS servers Using non-interactive mode
18 October 2024 · 4 min to read

Do you have questions,
comments, or concerns?

Our professionals are available to assist you at any moment,
whether you need help or are just unsure of where to start.
Email us
Hostman's Support