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.

Filter by
Sorted by
Tagged with
397 votes
14 answers
1.3m views

Command line to list DNS servers used by my system

Is there a command to list DNS servers used by my system? I tried $ cat /etc/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY ...
Anurag Uniyal's user avatar
323 votes
17 answers
614k views

How do I clear the DNS cache?

I just updated the DNS record (ns1, ns2, ns3.myhostingcompany.com) for a site I've got hosted, but I still get the domain registrar parking page. I'd like to see if the problem is Ubuntu's cached DNS ...
Jono's user avatar
  • 3,899
166 votes
5 answers
372k views

How to disable systemd-resolved in Ubuntu?

How can I disable systemd-resolved in Ubuntu 17.04? Disabling it with systemctl disable didn't work, the service seems to be restarted (by Networkmanager?)
Bastian Voigt's user avatar
155 votes
5 answers
981k views

How do I configure my DNS settings in Ubuntu server?

According to this page it appears to be simple. However, /etc/bind does not exist on the default installation of Ubuntu 12.04.3 LTS server. So, without installing any further software, how can ...
Asta-Risky's user avatar
  • 1,565
124 votes
13 answers
483k views

How do I get resolvconf to regenerate resolv.conf after I change /etc/network/interfaces?

After updating /etc/network/interfaces with something very similar to below, how do I get /etc/resolv.conf to update? I tried (as root) resolver -u, service networking restart but they didn't work. I ...
null's user avatar
  • 1,361
104 votes
11 answers
181k views

New alert keeps showing up: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001

I just installed a new Ubuntu Server 18.04. I set my hostname hostnamectl set-hostname ****.openbayou.biz and I set /etc/hosts: 127.0.0.1 localhost [ip address] ****.openbayou.biz hostname # The ...
Gregory Schultz's user avatar
95 votes
12 answers
318k views

DNS set to systemd's 127.0.0.53 - how to change permanently?

I've recently upgraded to 17.10. When I try to browse to a website, or ping a domain it fails saying the site cannot be resolved. network-admin shows the contents of /etc/resolv.conf to be ...
Terence Eden's user avatar
  • 1,796
90 votes
4 answers
132k 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 ...
Ock's user avatar
  • 1,001
89 votes
7 answers
182k views

Ubuntu 18.04 no DNS resolution when connected to OpenVPN

When I connect to a VPN network through Gnome Network-manager I lose DNS resolution and in practice, I cannot access resources inside the VPN network or outside. When I was using Ubuntu 16.04 and I ...
orestis's user avatar
  • 1,408
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 ...
dibs's user avatar
  • 3,489
77 votes
15 answers
248k views

What is the proper way to change the DNS IP?

I suspect that the name server provided by my ADSL modem/router is buggy. Whenever I browse to a website for the first time in ubuntu, resolving the domain name takes at least 15 seconds. To work ...
Wim Coenen's user avatar
72 votes
13 answers
201k views

Wrong nameserver set by resolvconf and NetworkManager

My DNS server is 192.168.1.152. This DNS is provided to clients by DHCP. The windows clients on my LAN resolve names properly using that DNS, but my Ubuntu VM doesn't. The VM is set up with bridge ...
FireSpore's user avatar
  • 721
68 votes
13 answers
635k views

How do I configure my static DNS in interfaces?

I am using Ubuntu 12.04. My /etc/network/interfaces file consists of: # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 ...
dottedquad's user avatar
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 ...
nos's user avatar
  • 1,243
65 votes
4 answers
187k views

network manager: how to stop nm updating /etc/resolv.conf

I do not want network manager to add DNS servers received from DHCP to my /etc/resolv.conf. When configuring from GUI/Connections/IPV4 and choose the method Automatic (address only) it still adds DNS ...
user2913139's user avatar
64 votes
2 answers
351k views

How to flush dns in ubuntu 12.04? [duplicate]

how to flush dns of Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic x86_64) have tried many things form here and here also but nothing is working
Vikas Hardia's user avatar
61 votes
9 answers
556k views

How do I set a static IP in Ubuntu?

I am a new with Linux, having years experience with Windows servers/desktops and am having issues setting a static IP. I am using a method used for previous versions of Ubuntu, which doesn't seem to ...
TeeStar's user avatar
  • 713
61 votes
4 answers
60k views

nslookup finds ip for a hostname in .local domain, but ping does not

I know this looks like all the other "can ping via ip but not dns" questions, but those didnt really help me at all. Also, having hosts files in all machines is not doable as this server will ...
Fernando's user avatar
  • 1,015
54 votes
5 answers
280k 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 ...
mkasberg's user avatar
  • 1,394
49 votes
3 answers
101k views

DNS_PROBE_FINISHED_BAD_CONFIG error in Ubuntu 14.04

I am running Ubuntu 14.04 LTS on my Dell M3800. I am having problems connecting to the Internet. I getDNS_PROBE_FINISHED_BAD_CONFIG in my browser when trying to navigate to any site, but I am able ...
Amrish's user avatar
  • 1,331
48 votes
11 answers
237k views

How to view the DNS address assigned by DHCP?

How to view the DNS address assigned by DHCP? ifconfig can not show it. $ ifconfig -a eth0 Link encap:Ethernet HWaddr 90:e6:ba:22:6a:f2 inet addr:192.168.1.111 Bcast:192.168.1.255 ...
Victor S's user avatar
  • 825
48 votes
4 answers
107k views

How to disable systemd-resolved and resolve DNS with dnsmasq?

Ubuntu 16.10+ uses systemd-resolved as DNS resolver. I prefer the setup 16.04 uses, dnsmasq as the resolver. How can I do that on 16.10+, especially on 17.04?
Artyom's user avatar
  • 1,723
46 votes
7 answers
28k views

How can I tell which DNS servers DNSMasq is using?

How can I tell which DNS servers DNSMasq is using to resolve a name to an IP address? I can't figure it out. All of the existing questions here seem to just go as far as telling users that they are ...
Jeff's user avatar
  • 911
46 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-...
pylover's user avatar
  • 2,335
44 votes
2 answers
107k 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 ...
naftalimich's user avatar
  • 1,145
44 votes
4 answers
583k views

connect: Network is unreachable? - ping

When I attempt to ping google's dns or any outside the network I get connect: Network is unreachable? I can't update either which I put down to this I am new to networking... And Ubuntu. But these ...
user240010's user avatar
43 votes
5 answers
100k views

NetworkManager not populating resolv.conf

I recently upgraded from 11.10 to 12.04, and now NetworkManager isn't populating /etc/resolv.conf when connecting to wireless networks, when it had been working perfectly in 11.10. I'm not seeing any ...
Cerin's user avatar
  • 6,485
43 votes
10 answers
89k views

No internet after upgrade from 16.04 to 18.04

After the upgrade I noticed that I don't have internet access. The wired network and the wifi settings looked good, but it didn't work. After the login the system always switched itself into airplane ...
Zoltán Süle's user avatar
43 votes
11 answers
177k views

Why is the /etc/hosts file not working?

I have been having problems with this for a while and have tried everything I know, so I figured it was finally time to ask for some help. Any edit I make to /etc/hosts just doesn't work. Example: ...
Julian Fernandes's user avatar
39 votes
9 answers
39k views

What Can Be Done To Secure Ubuntu Server?

I have a project to secure Ubuntu Server as much as I can. The server is a web hosting server. The server will be running LAMP , Mail , and DNS.
One Zero's user avatar
  • 27.2k
39 votes
9 answers
27k views

Problem resolving many web pages

I am presently running Ubuntu 12.04 and using Chrome/Firefox along with OpenDNS (have tried Google Public DNS as well as DNS of my ISP). Suddenly, a lot of websites that I visit frequently don't ...
Aditya's user avatar
  • 13.4k
38 votes
8 answers
106k views

Ubuntu 18.04 .local domain dns lookup not working

I'm using a Raspberry Pi 3 with Ubuntu 18.04. At my company we have a DNS server and a couple of domains with ".local". I know technically this isn't correct and it should be ".lan" instead, because ....
FalcoGer's user avatar
  • 865
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 ...
coxe87b's user avatar
  • 541
36 votes
6 answers
86k views

Ubuntu DNS Error Chrome: DNS_PROBE_FINISHED_NXDOMAIN, Firefox similar

I am unable to visit most sites online in either firefox or chrome. I can access google docs so I am researching on windows 7 (dualboot) and rebooting into Ubuntu (recently upgraded to 16.04). Test 0:...
Nick S's user avatar
  • 462
36 votes
4 answers
54k views

16.10 fail to resolve DNS

After upgrading my 16.04-installation to 16.10, I have trouble with DNS. First I got problems a couple of times when connected to WiFi, while it worked on ethernet. Now it seems to work on WiFi also. ...
aweibell's user avatar
  • 542
36 votes
6 answers
52k views

docker.io DNS doesn't work, it's trying to use 8.8.8.8

Edit 2020: This is a six year old question. I never figured out how to fix this specific problem back then, but Docker and everything else involved moved on. SE doesn't allow me to delete my question, ...
RemcoGerlich's user avatar
35 votes
4 answers
164k views

Should I edit my resolv.conf file to fix wrong DNS problem?

I have the problem that my Ubuntu machine uses the wrong DNS server. For some reason the machine queries localhost for DNS information. I have added the DNS server in the network settings GUI, but /...
Ahatius's user avatar
  • 2,097
35 votes
2 answers
39k views

What does ".local" do?

I've got several Ubuntu machines on my network at home, but the DNS is provided by a windows server (2K). When I ssh to them from another , if I ssh to them as "machine" I can't connect, but if I ...
Marc's user avatar
  • 505
34 votes
1 answer
42k views

Problem with IPv6 sudo apt-get update/upgrade

I am using Ubuntu 16.04 Beta 2 at the moment and every time I try to update at home via sudo apt-get update or upgrade trough sudo apt-get upgrade I wont get any feedback. Even installing of anything ...
Niclas's user avatar
  • 345
32 votes
9 answers
32k views

No Internet connection after disconnecting from VPN in Ubuntu 18.04

In Ubuntu 16.04 I had no problems with VPN: after disconnecting I had Internet. In Ubuntu 18.04 I have no Internet after disconnecting from the VPN. I can actually ping 8.8.8.8 but not www.google.com ...
Daniel's user avatar
  • 4,000
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 ...
Roel van Duijnhoven's user avatar
30 votes
2 answers
31k views

Having DNS Issues when connected to a VPN in Ubuntu 13.04

I am connecting to a Cisco VPN Server using vpnc. Once connected, my machine was unable to automatically update DNS setting from the new VPN. I tested by temporarily changing /etc/resolv.conf with the ...
etsauer's user avatar
  • 403
30 votes
3 answers
96k views

Why is my /etc/hosts file not queried when nslookup tries to resolve an address?

I have a couple of local domains resolved to 127.0.0.1 in my /etc/hosts file. And it was all alright for a period of time but now when I run: nslookup test.local It results in: Server: 192.168....
Mehran's user avatar
  • 1,787
30 votes
6 answers
60k views

Best way to set up DNS caching?

In order to speed up DNS lookups, I want to install a DNS cache or proxy. I can see at least three programs I think will do the job: bind9, pdnsd, or dnsmasq. I would like to make sure that if I ...
user avatar
29 votes
4 answers
13k views

systemd-resolve high cpu usage after update to 17.04

I have recently upgrade my Xubuntu from 16.10 to 17.04. Every things works well except systemd-resolve. some times it makes cpu usage too high and I don't know why this issue has been happend. And ...
Ali Razmdideh's user avatar
29 votes
5 answers
43k 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 ...
Rob van der Most's user avatar
28 votes
3 answers
64k views

How to know what DNS am I using in Ubuntu 12.04

We used to get current DNS settings by: cat /etc/resolv.conf But Ubuntu 12.04 has changed to use the resolvconf framework. The above commond will only give me this: # Dynamic resolv.conf(5) ...
Koala Yeung's user avatar
  • 1,001
28 votes
2 answers
84k views

How to get the hostname from /etc/hostname & DNS domain name?

How do I get the host name from /etc/hosts? by writing hostname? And what about the dns domain name, how do I get that? How do I get these names through the commandline?
dada dudu's user avatar
  • 381
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 ...
Nick Rice's user avatar
  • 331
26 votes
3 answers
52k views

DNS at systemd's 127.0.0.53 is ignoring some lookups

The systemd's DNS lovated at 127.0.0.53 appears to be working except when I query for local machines by name. But if I query for them and specifically specify the local DNS server (my router) then I ...
schworak's user avatar
  • 871

1
2 3 4 5
50