The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [dns]

Domain Name System (DNS) is a service that provides the resolution of host names to IP addresses. Use the [tag:dns] tag when you are troubleshooting DNS issues, configuring a DNS resolver or server, or are trying to understand DNS's involvement in your situation.

Filter by
Sorted by
Tagged with
5
votes
4answers
12k views

How to fix OpenVPN DNS leak

I just subscribed to a VPN provider. I have Xubuntu 17.10, openvpn 2.4.3. After launching the openvpn command I check the IP (fine) and performed a simple DNS leak test: not fine, it shows my ...
3
votes
1answer
34 views

Nameserver locked on public access point

I can connect to a wifi hotspot that is free and only asks registration (this is the city's facility). I got kicked from using it, because it detected my Tor usage. But thankfully, it was only ...
0
votes
1answer
108 views

DNS + DHCP in home lab [closed]

Setting up a home lab. I was originally planning on using static ips for everything and then powerdns + poweradmin for DNS. Recently though it dawned on me that it would be a lot simpler to just use ...
1
vote
0answers
98 views

Fedora 29 VirtualBox will not use DNS from host VPN

I am running a Windows 10 machine for work (required) and so use VirtualBox to get a Fedora 29 machine so I can run code locally before pushing to production. Our github is behind a VPN and we use ...
21
votes
5answers
57k views

Iptables to redirect DNS lookup IP and Port

I have discovered that my ISP (verizon) is intercepting all DNS traffic on port 53. Using iptables, I want to redirect all DNS lookup traffic to a specific IP and Port (5353). Any attempt for my ...
0
votes
1answer
26 views

Should I configure the DNS2 to an other company's DNS address?

When I configure the interface's DNS, we often configure 8.8.8.8 and 8.8.4.4, but I have a question, because the 8.8.8.8 and 8.8.4.4 all are belong to google. will the bellow be better than the ...
2
votes
2answers
840 views

Iptables masquerade breaks dns lookups

I'm testing something with IP masquerade on locally generated traffic but it seems to be breaking DNS lookups. Everything else works fine--all IP traffic without DNS queries work. $ iptables -t ...
9
votes
4answers
30k views

Reverse DNS lookups slowing down network operations on LAN

Environment My LAN setup is quite basic: A router connected to the ISP's modem and the internet My development pc directly connected to the router The router provides DHCP but does not run its own ...
1
vote
2answers
3k views

Name Lookup takes a long time

I was using a script that uses curl. Quite often curl fail. The error is name lookup timed out I tried to ping google.com and and other sites. Indeed dns (or whatever do the translation from domain ...
1
vote
1answer
389 views

Redirect all outgoing DNS queries to local stub resolver at 127.0.0.1:53

I am attempting to redirect all outgoing DNS queries on my Linux box to my local caching stub resolver (unbound). iptables -t nat -A OUTPUT -p tcp --dport 53 -j DNAT --to 1.1.1.1:53 iptables -t nat -...
2
votes
1answer
2k views

dnsmasq as dns only, map mac-address to hostname for dynamic ip

I'm using dnsmasq as a DNS server only (no dhcp), mapping Lan's hostnames to relative ip using /etc/hosts, but in the same Lan there's some ip assigned dynamically by a router (and I'd like to keep so,...
3
votes
1answer
149 views

Make separate mail server from web server [closed]

We have one physical server: there are www (web site) and mail on it. Server has 2 public ip addresses, one for www and one for mail. Server also has DNS on it, O/S is Red Hat Linux. We want to ...
3
votes
1answer
212 views

How do I force dnsmasq to use a specific DNS server without affecting the host systems DNS settings?

How do I set dnsmasq to use one specific DNS server without changing which DNS server the host system uses for its own DNS requests? I should clarify I am not using dnsmasq as a DHCP server but only ...
2
votes
0answers
30 views

Can I alter the result of DNS resolution for a VPS?

I have a VPS hosted by a no frills provider and have an IP that I log into through SHH. When I run a traceroute on it, the final hop identifies the location service as ip-somebrand.com. As my ipv4 ...
2
votes
0answers
306 views

ntp using ipv6 address instead of ipv4

I have a laptop running a version of Linux ( 3.12 ). I have ntpd installed and configured to sync with time.google.com. The problem I am having is if I am plugged into a network that only provides ...
-1
votes
1answer
953 views

Error in named.conf

I am getting the following error: Starting named: Error in named configuration: zone blk1999.lab/IN: loaded serial 2001062501 zone localhost.localdomain/IN: loading from master file named.localhost ...
0
votes
2answers
186 views

SSH-keys ipv4 ipv6 connection issue

Update: I found this question which seems to be very related. Not sure how exactly. What am I missing? I can only use ssh when it resolves through https hostnames? Normal ssh it hangs kinda like ...
5
votes
0answers
337 views

What is the recommended way to set a global DNS server override on a system using systemd-resolved?

I would like my newer GNU/Linux system (Ubuntu 18.04 LTS) to use a single, manually-configured, DNS server for all DNS queries. In the past, I could simply do echo "nameserver 1.1.1.1" | sudo tee /etc/...
0
votes
1answer
323 views

Redhat repos not found

I have a Redhat 7 system on loan from a customer in order to install a 32-bit application. To get the application to work, I need to install the gtk2.i686 toolkit. By doing this command: yum list --...
16
votes
3answers
3k views

Who reads /etc/resolv.conf?

My Centos 7 server doesn't resolve domain names properly. From what I see, in modern Linux systems /etc/resolv.conf is often generated with dhclient, dnsmasq or Network Manager. Thus I have a ...
2
votes
0answers
74 views

How do I configure my system, to use a specified DNS server, for all connections? [closed]

I want to use a set of custom DNS addresses, for all connection, without resorting to change configuration for each connection individually. In the Network Manager I can change the preferred DNS ...
0
votes
0answers
85 views

How to auto populate /etc/resolv.conf when using a static configuration

I'm on an IoT device running busybox with glibc. When I have a DHCP setup in /etc/network/interfaces then udhcpc atuomatically updates /etc/resolv.conf. I can see this by clearing /etc/resolv.conf and ...
1
vote
2answers
2k views

dnsmasq causes inability to resolve DNS queries made by host

On a headless Ubuntu 14.04 vanilla machine I setup dnsmasq as a DNS proxy with the following configuration in /etc/dnsmasq.conf no-resolv nameserver=<some working custom dns ip> port=5555 #to ...
2
votes
1answer
84 views

Forward DNS requests for a zone except one record?

I've got a domain name and hosting web content with a provider, so have for example server.example.com hosted in the cloud. The provider also manage my DNS. Now I would like to run nextcloud on my ...
3
votes
1answer
959 views

resolve my ip with dig returns empty string

When trying to resolve my public IP address I get an ampty string ip=$(dig +short myip.opendns.com @resolver1.opendns.com)
0
votes
0answers
43 views

Unbound resolving to high ping servers

I have installed unbound on my Pi Hole to get DNS over TLS for my entire home network. I realized that my home network had gotten slower than before. At first, I thought it may be because of Unbound ...
1
vote
2answers
1k views

bind9named binary missing - not starting

I have just compiles and installed BIND 9.9.1-P1 on Debian 6.0 as the version in the repositories is too old for Samba4, and am getting the said error. I have been looking for source for named, but ...
3
votes
1answer
1k views

OpenBSD cannot find host names

I have an OpenBSD instance under vultr. I installed OpenBSD 5.8 and I can ssh into it just fine. But I can't seem to use pkg_add, ftp, ping or any other internet-dependent program. For example, I've ...
0
votes
1answer
751 views

why resolv.conf is changing

I am using Red Hat 6.7 when I update my resolv.conf file as the following: options attempts:2 options timeout:1 search usa.Pe.corp tedcruz.usa.fb.corp nameserver 10.9.145.145 nameserver 10.9....
1
vote
1answer
315 views

Can you assign different DNS servers to different network interfaces?

I am trying to have my eth1 use 10.50.1.11 and 10.50.1.12 dns servers whilst my eth0 interface uses 8.8.8.8 and 8.8.4.4 dns servers. I am running centos 7 vms within xenserver 6.5. eth1 is a closed-...
0
votes
1answer
54 views

host header url for linux web server

I am running a webpage on Apache at my vps(Debian) with the url of http://vps.foo.com/stuff.html. How can I change it so that the url is only stuff.foo.com? I use to do this in IIS many years ago, not ...
0
votes
1answer
3k views

Ethernet Connected But No Internet

I am trying this on Intel Galileo Gen 2 which runs Yocto Linux and I am unable to connect to Internet using Ethernet. I have WiFi card but that doesn't connect as well. I have tried following commands ...
0
votes
2answers
511 views

nmcli won't let me remove DNS entry from /etc/resolv.conf

Centos 7.5, nmcli version 1.20.2 Whenever I try to remove entries from /etc/resolv.conf I get the following errors. [root@client ~]# cat /etc/resolv.conf # Generated by NetworkManager search home ...
17
votes
5answers
32k views

How to log all my DNS queries?

How can I create logs of every DNS query that my computer makes along with the responses it gets?
0
votes
0answers
20 views

AWS route53 domain not resolving to private ubuntu 16.04

I have the domain and sub-domain in AWS route 53. domain.com sub.domain.com the 'A' record of sub.domain.com added with the public ip of the instance. And an ubuntu 16.04 server privately hosted, ...
0
votes
0answers
84 views

Manage a VPN TUN connection under fedora 29 dhcp routing dns

SoftEther is a nice project to establish a VPN a bit easily using both windows and linux enviorment. It has also a vpn azure ddns. My enviorment is A network 192.168.1.0/24 with various host most ...
0
votes
0answers
217 views

Weird DNS problem with Ubuntu 18.04

I'm facing the following rather strange issue with my DIY NAS running Ubuntu 18.04. (I think that's when this happens...) When the system is restarted (say, after a power failure) it sometimes isn't ...
0
votes
2answers
856 views

named.run file deleted but data left on disk? [duplicate]

Today I had a name-server stop resolving DNS due to the /var directory being full from the named.run cache build up. I tried removing all the files using: rm -rf name* However, although running ls ...
1
vote
1answer
87 views

DNS forward only

Need clarification on the documentation on this topic somewhat and wanted to get more info on the following but just can't put my finger on it. Below is a snippet from a DNS BIND 9.9 configuration. ...
1
vote
0answers
153 views

dnsmasq dns nameserver priority parameters - strict-order

I have a setup specifying two DNS namservers. One in local, the other is external. The local one is a pihole, which itself forwards requests externally after url filtering. The external one is set ...
0
votes
2answers
509 views

How to access a device connected in local network with hostname?

I tried accessing a webpage in a server within the local network with the host name of the device followed by its folder path and the name of the file(it is a basic php file). In first system it ...
2
votes
1answer
1k views

What are DNS server, resolver and stub resolver?

https://www.freedesktop.org/software/systemd/man/systemd-resolved.service.html#Description says Additionally, systemd-resolved provides a local DNS stub listener on IP address 127.0.0.53 on the ...
5
votes
1answer
2k views

Interpreting the output from systemd-resolve --status

It seems that on newer Linux systems you can no longer check the DNSs by doing cat /etc/resolv.conf. It is now done by systemd-resolve --status. Below is an example output of that command: user@user:...
0
votes
1answer
28 views

Command to resolve domain name giving only IP address/in-addr.arpa

I currently this to return the IP address of a host or return the in-addr.arpa record: host $1 | perl -pe 's/.* mail is .*//; s/\n//;s/.* has address //;s/.* domain name pointer //;s/.* not found: ....
9
votes
3answers
4k views

How do `/etc/hosts` and DNS work together to resolve hostnames to IP addresses?

In Linux, how do /etc/hosts and DNS work together to resolve hostnames to IP addresses? if a hostname can be resolved in /etc/hosts, does DNS apply after /etc/hosts to resolve the hostname or treat ...
2
votes
4answers
3k views

How shall I understand the format of `/etc/resolv.conf`?

How shall I understand the format of /etc/resolv.conf? $ cat /etc/resolv.conf # This file is managed by man:systemd-resolved(8). Do not edit. # # This is a dynamic resolv.conf file for connecting ...
0
votes
1answer
35 views

Is it possible to suppress upstream DNS records with dnsmasq

Using dnsmasq, I can set new values for existing records, and add new records, event to a zone I don't own. But is it possible to mask or suppress an existing record ? In my case I want a CNAME to be ...
0
votes
0answers
86 views

How to install Postfix in an all default way (no setup wizard) and to be used with no email DNS records?

The following question is a follow up to this question. In a latest Debian 9 stable I desire to install Postfix to send email from my machine to my very own Gmail account by the quickest install ...
1
vote
1answer
72 views

Debian 8 - Lan connection works but no internet [Unknown host]

I have a Debian 8 server that has been running great for about a year. All of a sudden I am no longer getting internet access. The server is connected over an ethernet cable and I can SSH into over ...
3
votes
2answers
305 views

Compare domain blocking by iptables vs dnsmasq-/etc/hosts

I now use dnsmasq, with a large /etc/hosts file obtained from Energized packs [https://energized.pro/#packs]. Some of these are quite large. Trying to get info from the dnsmasq team, which is still ...