Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

askthedev.com Logo askthedev.com Logo
Sign InSign Up

askthedev.com

Search
Ask A Question

Mobile menu

Close
Ask A Question
  • Ubuntu
  • Python
  • JavaScript
  • Linux
  • Git
  • Windows
  • HTML
  • SQL
  • AWS
  • Docker
  • Kubernetes
Home/ Questions/Q 10479
Next
In Process

askthedev.com Latest Questions

Asked: September 26, 20242024-09-26T04:14:21+05:30 2024-09-26T04:14:21+05:30In: Ubuntu

I am encountering issues with DNS lookup for local domains on my Ubuntu 18.04 system. Despite configuring my network settings, the system is unable to resolve local domain names. Can anyone provide guidance on how to troubleshoot and fix this problem?

anonymous user

I’ve been pulling my hair out trying to get local domain name resolution to work on my Ubuntu 18.04 machine, and it’s driving me nuts! I thought I had everything set up right, but no matter what I do, my system just won’t resolve the local domains. It’s like they don’t even exist as far as my computer is concerned.

I’ve checked my DNS settings and made sure I’m using the right DNS server, which is supposed to handle local queries. I even added the local domains to my /etc/hosts file, thinking that might do the trick, but still, nothing. I tried pinging the local domain, and it just gives me an “unknown host” error. It’s super frustrating!

I’ve also looked into the /etc/resolv.conf file to see if there’s anything funky going on there, but it looks fine to me. I’m using a static IP, so I configured that manually in the network settings, which seemed to go well, but I guess I missed something important somewhere along the line.

I should mention that I’ve rebooted my machine and restarted the networking service multiple times, but nothing changes. I can access the internet just fine, so it’s definitely a local resolution issue.

Oh, and I am not even sure if any other devices on my network are having the same issues because my friends are using different operating systems. I checked my router’s settings for any DNS-related functions, and they seem normal too. Is there something I might be overlooking? Is there a common fix for a problem like this?

I’m pretty sure I’m missing something simple here, but I just can’t put my finger on it. Has anyone else experienced this kind of problem? I would love to hear any troubleshooting tips or steps you took to resolve similar issues. Any help would be greatly appreciated because I really need to get this sorted out!

  • 0
  • 0
  • 2 2 Answers
  • 0 Followers
  • 0
Share
  • Facebook

    Leave an answer
    Cancel reply

    You must login to add an answer.

    Continue with Google
    or use

    Forgot Password?

    Need An Account, Sign Up Here
    Continue with Google

    2 Answers

    • Voted
    • Oldest
    • Recent
    1. anonymous user
      2024-09-26T04:14:22+05:30Added an answer on September 26, 2024 at 4:14 am

      It sounds like you’ve already gone through several common troubleshooting steps for local domain name resolution issues on your Ubuntu 18.04 system. One area to double-check is the configuration of your Network Manager. Make sure that in the connection settings for your network (accessible via the GUI or by editing the appropriate configuration file in `/etc/NetworkManager/system-connections/`), your DNS settings are set to use a method appropriate for your local DNS server. Alternatively, you can try flushing your DNS cache after making changes using the command `sudo systemd-resolve –flush-caches`. Also, ensure that your local network DNS server is reachable by running `dig @ ` to see if it returns the correct information. This can help isolate whether the issue is with your machine or the server itself.

      If you’ve confirmed that your DNS server is reachable and functioning correctly, consider editing the `nsswitch.conf` file located in `/etc/`. Ensure the `hosts` line includes both `files` and `dns`, which tells your system to check the `/etc/hosts` file before querying DNS: `hosts: files dns`. Since you’re using static IP configuration, double-check that your local domains are correctly listed in the `/etc/hosts` file with the proper IP addresses (using the format ` `). You could also explore using `dig` or `nslookup` to troubleshoot each local domain individually. Finally, ensure that no firewall rules on your machine or router are blocking local DNS resolution queries.

        • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    2. anonymous user
      2024-09-26T04:14:22+05:30Added an answer on September 26, 2024 at 4:14 am

      Local Domain Name Resolution Issues on Ubuntu 18.04

      It sounds super frustrating to be stuck with local domain name resolution problems! Here are a few things you might want to check out:

      1. Check the /etc/nsswitch.conf file:

        This file controls how your system looks up names. Make sure the line that starts with hosts: includes files, for example:

        hosts: files mdns4_minimal [NOTFOUND=return] dns

      2. Restart the DNS service:

        If you’re using a specific DNS service like systemd-resolved, try restarting it with:

        sudo systemctl restart systemd-resolved

      3. Check your firewall settings:

        If you have a firewall running (like ufw), make sure it’s not blocking local traffic. You can check the status with:

        sudo ufw status

      4. Look into your router settings:

        Sometimes, routers have their own DNS settings that might interfere. Check if there’s any DHCP reservation for your local devices.

      5. Try using the dig command:

        This might give you more insight into what’s going wrong. You can run:

        dig

        This can show you how DNS resolution is happening, or not happening, for your local domains.

      6. Last resort: DNS Cache:

        Sometimes, things just get stuck. You can clear your DNS cache. If you’re using systemd-resolved:

        sudo systemd-resolve --flush-caches

      Hope one of these tips helps you solve the mystery of the vanishing local domains! It’s often the small things that trip us up.

        • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp

    Related Questions

    • I'm having trouble installing the NVIDIA Quadro M2000M driver on Ubuntu 24.04.1 LTS with the current kernel. Can anyone provide guidance or solutions to this issue?
    • What steps can I take to troubleshoot high usage of GNOME Shell in Ubuntu 24.04?
    • I recently performed a fresh installation of Ubuntu 24.04, and I've noticed that my RAM usage steadily increases over time until my system becomes unresponsive. Has anyone experienced this issue ...
    • How can I resolve the "unknown filesystem" error that leads me to the GRUB rescue prompt on my Ubuntu system?
    • I'm experiencing an issue with Ubuntu 24.04 where Nautilus fails to display the progress indicator when I'm copying large files or folders. Has anyone else encountered this problem, and what ...

    Sidebar

    Related Questions

    • I'm having trouble installing the NVIDIA Quadro M2000M driver on Ubuntu 24.04.1 LTS with the current kernel. Can anyone provide guidance or solutions to this ...

    • What steps can I take to troubleshoot high usage of GNOME Shell in Ubuntu 24.04?

    • I recently performed a fresh installation of Ubuntu 24.04, and I've noticed that my RAM usage steadily increases over time until my system becomes unresponsive. ...

    • How can I resolve the "unknown filesystem" error that leads me to the GRUB rescue prompt on my Ubuntu system?

    • I'm experiencing an issue with Ubuntu 24.04 where Nautilus fails to display the progress indicator when I'm copying large files or folders. Has anyone else ...

    • How can I configure a server running Ubuntu to bind specific IP addresses to two different network interfaces? I'm looking for guidance on how to ...

    • Is it possible to configure automatic login on Ubuntu MATE 24.04?

    • After upgrading from Ubuntu Studio 22.04 to 24.04.1, I lost all audio functionality. What steps can I take to diagnose and resolve this issue?

    • I am experiencing issues booting Ubuntu 22.04 LTS from a live USB. Despite following the usual procedures, the system fails to start. What steps can ...

    • I'm encountering a problem with my Expandrive key while trying to update my Ubuntu system. Has anyone else faced similar issues, and if so, what ...

    Recent Answers

    1. anonymous user on How do games using Havok manage rollback netcode without corrupting internal state during save/load operations?
    2. anonymous user on How do games using Havok manage rollback netcode without corrupting internal state during save/load operations?
    3. anonymous user on How can I efficiently determine line of sight between points in various 3D grid geometries without surface intersection?
    4. anonymous user on How can I efficiently determine line of sight between points in various 3D grid geometries without surface intersection?
    5. anonymous user on How can I update the server about my hotbar changes in a FabricMC mod?
    • Home
    • Learn Something
    • Ask a Question
    • Answer Unanswered Questions
    • Privacy Policy
    • Terms & Conditions

    © askthedev ❤️ All Rights Reserved

    Explore

    • Ubuntu
    • Python
    • JavaScript
    • Linux
    • Git
    • Windows
    • HTML
    • SQL
    • AWS
    • Docker
    • Kubernetes

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.