Questions tagged [dns]
Domain Name System for computers, services, or any resource connected to the Internet. It translates domain names meaningful to humans into the numerical identifiers associated with networking equipment for the purpose of locating and addressing these devices worldwide.
294
questions
19
votes
10
answers
141k
views
How to get the hostname from a DHCP server
I want Ubuntu to get the hostname and DNS name from a DHCP client. The default installation of Ubuntu 11.10 (Oneiric Ocelot) does not do that.
The same question was asked and is unsolved on ...
17
votes
4
answers
26k
views
Can netplan configured nameservers supersede (not merge with) the DHCP nameservers?
I would like to use DHCP to assign an IP address to my server, but specify the DNS servers manually. I tried the following simple configuration:
network:
version: 2
renderer: networkd
...
15
votes
4
answers
61k
views
How to make persistent changes to /etc/resolv.conf Ubuntu 18.10
My resolv.conf file has 'nameserver 127.0.0.53'.
I need to replace it with different value or add another nameserver.
I erased symlink, replaced it with file.
Now it is managed by Network Manager,
...
15
votes
3
answers
20k
views
How do I disable systemd-resolved and replace with something sane on Ubuntu 18?
I've decided systemd-resolved is irretrievably broken garbage and I'd like to replace. I've got my own local DNS server at 192.168.1.2 I'd like. I'd also like to connect to a VPN with NetExtender ...
13
votes
1
answer
20k
views
How to replace mdns4_minimal with BIND?
Have Ubuntu 16.04 LTS version.
According to task should install BIND as DNS server.
I noticed in nsswitch.conf has:
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
Could you please explain ...
11
votes
5
answers
10k
views
How to reach a host in the same network by hostname?
I have a network which connects a couple of hosts.
I would like to be able to reach other hosts from one of them using the hostname.
I just discovered the ".local" domain, which is available through ...
11
votes
4
answers
38k
views
18.04: Bionic Beaver: enforce static /etc/resolv.conf
Previously, on Ubuntu 16.04, I felt betrayed when an Ubuntu update installed dnsmasq package, configured it, and gave it precedence over my own super-stable, ultra-fast, and own-configured BIND DNS ...
9
votes
3
answers
15k
views
How to configure local DNS lookup in Ubuntu 16.10?
I freshly installed Ubuntu 16.10 and rsync'd a backup of my previous home directory from kubuntu 16.04 to my new install. Things work well, but I have not been able to resolve local addresses despite ...
8
votes
1
answer
11k
views
Can't resolve windows domains in local network
I've installed ubuntu on my computer at work because I think it is a perfect system for work which I do but I got some issues. I can't resolve domains from windows DNS server. Basically, we have two ...
4
votes
1
answer
8k
views
How do I fix a DNS leak?
Now that I'm using a VPN 24/7, I've been looking to enhance my privacy further and discovered the phenomenon called "VPN leaks"... Further investigation has revealed that my computer does in fact, ...
3
votes
3
answers
5k
views
Use dnsmasq as system DNS service
Following How to disable systemd-resolved and resolve DNS with dnsmasq?
However, I followed it as much as I could, but still wasn't able to properly replace systemd-resolved with dnsmasq --
If i put ...
2
votes
1
answer
10k
views
How do I debug "Temporary failure in name resolution" error after upgrading to Xubuntu 19.04 desktop?
I recently upgraded Xubuntu from 18.10 to 19.04, and have started seeing the "Temporary failure in name resolution" error whenever I try to ping a domain name since then. I am using a desktop computer ...
1
vote
2
answers
4k
views
Do you really need to remove DHCP clients for static IP to stick?
The instruction from this link works to change from DHCP dynamic IP to static. But there's a step where it says:
You need to also remove the dhcp client for this to stick (thanks to
Peter for ...
90
votes
4
answers
131k
views
What is difference between localhost address 127.0.0.1 and 127.0.1.1
I am just learning using Ubuntu and when I tried to configure the DNS, I need to deal with something call localhost, loopback interface. Can anyone explain me the differences between them and the ...
88
votes
3
answers
120k
views
How can I flush the DNS on Ubuntu 17.04?
How can I flush the DNS on Ubuntu 17.04?
I seem to have a few DNS issues at the moment since upgrading to 17.04 from 16.10 and went to flush the DNS but I can't find how to.
Can anyone tell me ...
66
votes
3
answers
124k
views
Prefer A (IPv4) DNS lookups before AAAA(IPv6) lookups
In notice my newly installed Ubuntu 10.10 always does an AAAA DNS lookup before A record lookups. Is there any way I can configure the system to do A lookups first ?
(While various browsers and other ...
54
votes
5
answers
277k
views
How do I configure the search domain correctly?
I recently installed Ubuntu GNOME on my work computer, replacing Windows 7, because I will be doing a lot of Linux development work.
Many of our configuration and development scripts use shortened ...
45
votes
2
answers
136k
views
What does the dns-search option mean in /etc/network/interfaces?
Can anybody explain to me about the dns-search directive in /etc/network/interfaces file:
iface eth0 inet static
address 192.168.3.3
netmask 255.255.255.0
gateway 192.168.3.1
dns-...
44
votes
2
answers
106k
views
How to use host names rather than ip addresses on home network?
I've a small home network up and running and managed to set up ssh. Can anyone tell me what I need to do to refer to one computer on the network from another by host name rather than IP address (which ...
38
votes
5
answers
151k
views
Ubuntu Server 18.04 Temporary failure in name resolution
I have just installed Ubuntu Server 18.04 and set up SSH so I can continue configuring via my desktop but I've run into some issues that I can't seem to get past.
I was trying to run
sudo apt-get ...
31
votes
4
answers
14k
views
Route complete TLD (*.dev for example) to 127.0.0.1
For development purposes I want all DNS requests to the .dev TLD to forward to my own PC.
The hosts file does not suffice. I use multiple domains and also multiple subdomains. I would have to add a ...
29
votes
5
answers
42k
views
systemd-resolved does not query dns server for local domain
Since upgrading to 17.04 I can no longer resolve addresses in my local network (silvesternet.local). I get the following response:
$ systemd-resolve edgerouter
edgerouter: resolve call failed: No ...
27
votes
5
answers
22k
views
How can I set up local wildcard (127.0.0.1) domain resolution on 18.04..20.04?
On Ubuntu 14.04 I'm using dnsmasq to resolve wildcard example.com domains to the local machine (desktop computer at home).
After much reading around I cannot for the life of me sort out the same on a ...
21
votes
2
answers
130k
views
how to change DNS server permanently on Ubuntu 20.04?
I know there are other posts here asking this, but those suggestions do not help, the configuration keeps changing and I simply cannot get my own changes to persist.
I have the Google 8.8.8.8 and 8.8....
19
votes
3
answers
125k
views
How to edit hosts.deny and hosts.allow?
I want to block some hosts in Ubuntu, so how could I edit hosts.deny file to block some hosts like example.com.
And one more thing I have installed dnsmasq in Ubuntu, so can I check the entries of ...
18
votes
2
answers
38k
views
How do I list DNS server order in systemd-resolve?
I know that systemd-resolve --status lists all my connections and their DNS servers and nmcli connection show <connection> | grep -i dns will list the priority of the DNS connections. But is ...
18
votes
7
answers
21k
views
Why does my resolv.conf file get regenerated every time?
My /etc/resolv.conf file gets regenerated every time, making me loose Google DNS servers when I reconnect my 3G modem.
For changing the DNS settings, I looked at http://code.google.com/intl/fr-FR/...
18
votes
1
answer
27k
views
Can't get service noip2 to start on boot [duplicate]
I have installed no-ip dynamic ddns following this guide:
https://www.noip.com/support/knowledgebase/installing-the-linux-dynamic-update-client/
I get the service running by
sudo /usr/local/bin/...
17
votes
4
answers
31k
views
resolv.conf doesn't get set on reboot when networking is configured for static ip
I'm experiencing what appears to be a name resolution issue in Ubuntu 12.04 Server edition when configuring my computer to use static ip.
In /etc/network/interfaces:
# The primary network interface
...
16
votes
1
answer
25k
views
How to Change DNS of network from Terminal? [duplicate]
I know how to change the DNS of my network from GUI Network Manager:
Right click on the network manager icon in the panel and choose "Edit connections..."
Select your connection from the wired or ...
14
votes
3
answers
8k
views
systemd-resolved, resolvconf.service, resolvconf and openresolv. Why, which and how?
I'm using a VPN client which adds two name servers to /etc/resolv.conf. All my connections are managed by Network-Manager.
I have to use this VPN client for my work VPN but after Ubuntu went to ...
14
votes
4
answers
41k
views
Very long startup time on Ubuntu Server (network configuration)
I've been trying to sort out two problems that I suspect are interrelated. Recently, our network got reconfigured and afterward, I encountered a very long boot time due to network configuration ...
14
votes
6
answers
34k
views
How to check if DNS is encrypted?
I have installed DNSCrypt , its OpenDNS encrypted DNS patch for Ubuntu & other Linux users & it's working fine.
How do I know if my DNS is encrypted?
I have googled but didn't find anything.
...
14
votes
1
answer
25k
views
how to reset DNS settings to the defaults?
while I'm learning the DNS, I have installed too many apps such as BIND and DNSmasq and made some changes to /etc/resolve.conf
and now I would like to reset the DNS settings to defaults? I have ...
14
votes
3
answers
19k
views
DNS server address no longer stored in resolv.conf; where is it now?
I sometimes switch DNS servers, using the NetworkManager indicator in the taskbar; this worked fine with previous versions, and actually works fine with 12.04, too, except for one thing: I use Conky ...
13
votes
1
answer
24k
views
Can't SSH to server with VPN connection
This is quite messed up, I know. Let me explain it all.
I have a dynamic DNS set on my router. I verified that, after port forwarding, I can connect to desired application (if I run something on port ...
13
votes
8
answers
21k
views
block outside dns, fix dns leak ubuntu 18.04
Using dns leak test while under my VPN I discovered that it was leaking. I've setup my VPN via NetworkManager and it works properly except for the leak.
First, i've tried to add block-outside-vpn to ...
13
votes
5
answers
51k
views
Hostnames cannot be resolved after upgrading to 22.04
After upgrading ubuntu from 21.10 to 22.04, my internet connection does not work anymore. I am connected to the WLAN and I can ping IP addresses (from the local network as well as from the internet) - ...
11
votes
3
answers
39k
views
How do I remove localhost nameserver from resolv.conf
Currently my /etc/resolv.conf reads:
nameserver 127.0.0.1
nameserver 10.255.0.101
nameserver 10.255.0.11
and I want it to instead read:
search [my domain]
nameserver 10.255.0.101
...
11
votes
7
answers
56k
views
DNS Resolve is not working on 18.04 server
I have done some fairly extensive searching and can't seem to find the needle in the haystack that fixes this issue.
I have a server running Ubuntu 18.04
$ lsb_release -a
No LSB modules are ...
10
votes
3
answers
20k
views
Why is ddclient giving me an "Invalid IP" error when trying to update dynamic DNS?
I am having a really hard time getting ddclient (which updates OpenDNS with my current IP address) to work. I have it running as a daemon, but it never succeeds in updating my IP address at openDNS.
...
10
votes
3
answers
10k
views
systemd-resolve does not forward DNS requests to stated DNS server
Anyone know how systemd-resolve voodo works?
192.168.1.30is the correct DNS server for my network, as returned by DHCP.
/etc/resolv.conf points to 127.0.0.53
Systemd claims to be using the correct ...
10
votes
2
answers
3k
views
DNS resolution fails after wakeup from standby (Ubuntu 16.10)
Since I upgraded Ubuntu 16.04 to 16.10 DNS resolution stopped working every time the computer wakes up from standby. Pinging IP addresses directly works without a problem. So the issue seems to be DNS ...
9
votes
2
answers
12k
views
Why do none of my local servers resolve?
When I try to ping or browse using a web browser certain domains names that we host on our local network, it does not work. Yet, dig and nslookup correctly return their details. What do I need to do ...
9
votes
4
answers
49k
views
How to add DNS suffix in Ubuntu 12.04?
I have just installed ubuntu 12.04. And I am a beginner on Linux. So, how can I add the DNS suffix in this OS. Please help..
8
votes
6
answers
15k
views
DNS problems after upgrading from 16.04 to 17.10: How to reset the DNS settings to default?
After upgrading from Ubuntu 16.04 to 17.10, the DNS settings doesn't seem to work anymore. I guess that this might have to do something with the migration from resolvconf to systemd-resolv.
How can I ...
7
votes
3
answers
7k
views
DNS resolution fails after 12.10 upgrade
After my upgrade to 12.10, DNS resolution seems to fail for both local and external addresses. I can successfully ping local and external IP addresses (google.com, at least), but pinging DNS names ...
6
votes
1
answer
10k
views
Default DNS Server not switched after connecting to OpenVPN
I'm using a OpenVPN connection between my laptop and my server. The configuration was working until today (i simply ran apt update && apt upgrade), but since then my DNS settings are "wrong" ...
6
votes
5
answers
15k
views
Configure IP updater for OpenDNS
I would like to configure an IP updater for OpenDNS.
What packages I need to install?
What configuration is necessary?
I'm not asking about how to include the OpenDNS servers in my /etc/resolv.conf.
6
votes
3
answers
52k
views
Why would 127.0.0.1 in resolv.conf cause problems in DNS resolution?
[update and update II: see my awkward and proper solutions at the end of the question, based on one of the answers]
I have an extremely slow DNS lookup when my resolv.conf file includes the 127.0.0.1 ...