Questions tagged [dns]
For questions pertaining to Domain Name System (DNS), a service that provides the resolution of host names to IP addresses. Use this tag when you are troubleshooting DNS issues, configuring a DNS resolver or server, or are trying to understand DNS's involvement in your situation.
137 questions
633
votes
29
answers
987k
views
How can I resolve a hostname to an IP address in a Bash script?
What's the most concise way to resolve a hostname to an IP address in a Bash script? I'm using Arch Linux.
368
votes
18
answers
1.2m
views
How do I set my DNS when resolv.conf is being overwritten?
Most of the info I see online says to edit /etc/resolv.conf, but any changes I make there just get overridden.
$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by ...
100
votes
4
answers
290k
views
How to configure systemd-resolved and systemd-networkd to use local DNS server for resolving local domains and remote DNS server for remote domains?
I'm connected to local area network with access to the Internet through gateway. There is DNS server in local network which is capable of resolving hostnames of computers from local network.
I would ...
154
votes
3
answers
306k
views
Why does /etc/resolv.conf point at 127.0.0.53?
I tried to check what my DNS resolver is and I noticed this:
user@ubuntu:~$ cat /etc/resolv.conf
nameserver 127.0.0.53
options edns0
I was expecting 192.168.1.1, which is my default gateway, my ...
22
votes
3
answers
76k
views
Can not resolve .local domains internal to my office LAN
On Linux Debian 9 I am able to resolve a specific local domain e.g. my.sample-domain.local using some commands like nslookup or host, but not with some other commands like ping or the Postgres client ...
5
votes
1
answer
12k
views
Configure BIND as Forwarder only (no root hints), encrypted + RPZ blacklist / whitelist all together
My setup is getting more complex, generally I tend to divide things in pieces and assemble them together by myself. But it seems this time I need more help to get the whole gears working together. ...
2
votes
2
answers
8k
views
resolving DNS via Tor
When I am using Tor, and not using the Tor bundle there is a possibility of DNS leaks in certain situations.
What can be done to minimize it? Is it possible to resolve DNS via Tor?
429
votes
15
answers
1.4m
views
What DNS servers am I using?
How can I check which DNS server am I using (in Linux)? I am using network manager and a wired connection to my university's LAN. (I am trying to find out why my domain doesn't get resolved)
7
votes
4
answers
11k
views
How to stop dhclient from updating resolvconf on Debian?
I want to use certain DNS servers on my Debian, regardless of whatever I get through DHCP. I'm trying to configure dhclient to ignore those, but I can't seem to get it to work.
Per advice from this ...
4
votes
1
answer
8k
views
Large zone file for bind9 : ad-blocking
I was successfully using a small (20,000 entries) zone file with bind9 server, but today my data provider sent an update which caused the zone file to become 300,000+ entries large (30Mb+).
The ...
136
votes
5
answers
261k
views
How to troubleshoot DNS with systemd-resolved?
How would you go about finding the DNS servers used by systemd-resolved, for troubleshooting purposes?
Generally I can use dig and test the DNS servers shown in /etc/resolv.conf. (Or windows - ...
79
votes
2
answers
94k
views
dig vs nslookup
Why do the commands dig and nslookup sometimes print different results?
~$ dig facebook.com
; <<>> DiG 9.9.2-P1 <<>> facebook.com
;; global options: +cmd
;; Got answer:
;; -&...
25
votes
5
answers
219k
views
ping displays "Name or service not known"
I am running Arch Linux on a Raspberry Pi.
Suddenly:
I am unable to ping to a website.
I am unable to access a website from the browser.
I have two more computers (all running Arch Linux) connected ...
22
votes
2
answers
27k
views
nslookup, dig, firefox ignoring /etc/hosts file entries
There is something terribly wrong with my current Debian install. Most programs like firefox, nslookup, dig etc. are ignoring entries in /etc/hosts file, actually I use this file for Ad-blocking.
an ...
14
votes
4
answers
52k
views
I can resolve a *.local domain, ping the IP, but I can't ping this domain
I am trying to get *.local domains to use the DNS server with vagrant-dns. In order for that to work I set up dnsmasq to run in front of it.
NetworkManager is installed but is set to dns=none
resolve....