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
1
vote
3answers
217 views

Mapping a range of IP's to a domain name in hosts file

I work with Wi-Fi. Due to that my system's IP changes every time I connect to the network. For my work, I need to map my IP to a specific domain name. So, every day I need to make changes in my hosts ...
1
vote
1answer
19 views

There is any difference between this zone syntax?

I'd like to build bind zone files via Ansible. To decide how to structure the jinja2 template I need to know if there is any difference in any of these zone configurations: 1.) good old fashioned way:...
0
votes
1answer
394 views

bind 9.9.4 rndc: connection to remote host closed

I have installed bind-9.9.4-72 on CentOS 7.6 and everything seems working i can query my local zone and remote address etc. but somehow rndc not working This is what i did to configure rndc rndc-...
1
vote
0answers
23 views

DNS for netdevices [duplicate]

I apologize for my English. So, for example, there is a cisco switch with the following config: hostname cs ip domain name office.local ip name-server XXXXXXXX Is it possible to make that the ...
1
vote
0answers
47 views

DNS for Net devices [closed]

I apologize for my English. So, for example, there is a cisco switch with the following config: hostname cs ip domain name office.local ip name-server XXXXXXXX Is it possible to make so that the entry ...
1
vote
1answer
348 views

Update of /etc/resolve.conf needs restart of application

I am working with an embedded linux Target (ARM) and have the following problem: When /etc/resolv.conf is updated, while a process is running (e.g. C Program using gethostbyname()) the running process ...
1
vote
3answers
461 views

UFW is blocking DNS requests through VPN [closed]

I have a very strange behaviour of my UFW on Ubuntu 18.04. I set up basic rules, everything is OK until I connect client to this server through VPN. On the client side ping works fine but nslookup / ...
1
vote
4answers
72 views

Is it possible to check for DNS-leaks on unix server?

I run a Ubuntu server where I have a split tunnel for VPN. Which means I have a "normal" connection to the internet for most of my services but also a tunneled connection that only a few services use. ...
-1
votes
1answer
40 views

How to forbid my PC in LAN to make DNS queries? (in a PC -> VPN gateway scenario)

scenario: i have 2 pc's that are connected to each other over ethernet in a lan and one of the pc's is configured as a gateway that tunnels the traffic of the other pc over to a vpn service. ...
0
votes
1answer
56 views

using local dns to allow domain based transparent proxy

I am from iran and some websites are blocked for iranian ips (like nvidia and intel and so on). there is this website that advertise that I can access those domains buy just changing my dns to theirs. ...
1
vote
0answers
156 views

request.getRemoteHost() returns IP address instead of FQDN

I am designing a servlet in which I would like to determine the fully qualified domain name (FQDN) of the client. I am attempting to use javax.servlet.HttpServletRequest.getRemoteHost() in order to ...
0
votes
1answer
417 views

DNS zone not loading: Permission denied

i see in the named data file the zone i created will not load because of a permssion error: [root@office1 tmp]# cat /var/named/data/named.run info: managed-keys-zone: loaded serial 11 info: zone 0.in-...
0
votes
1answer
33 views

A question about DNS zone configuration file

Why does the DNS zone configuration file carry "1912"? [root@localhost redhat]# ls /etc | grep 1912 named.rfc1912.zones
0
votes
1answer
174 views

resolv.conf + is it necessary to defined the domain in resolv.conf [duplicate]

We have a DNS server at 103.16.36.88 that resolves all hosts and IP addresses. more /etc/resolv.conf # Generated by NetworkManager search Jupiter.com nameserver 103.16.36.88 domain Jupiter.com But ...
1
vote
1answer
142 views

do “search domain” in networkd configuration and LLMNR conflict?

in networkd man page, the search domains are used to handle single-label names: The domains without the prefix are called "search domains" and are first used as search suffixes for extending single-...
2
votes
2answers
475 views

How single-label dns lookup requests are handled by systemd-resolved?

I looked into the systemd-networkd and systemd-resolved: systemd.network(5) on manpages.ubuntu.com systemd-resolved.service(8) on manpages.ubuntu.com and I am confused by some words: systemd-...
0
votes
1answer
28 views

Exernal addresses not resolving

I recently changed ISPs. I got a new router. After a lot of messing about I have the router running almost the way I want it. However, since then my Raspberry Pi can't resolve external addresses. So, ...
0
votes
1answer
62 views

Different page from a browser and wget [closed]

EDITED TO REMOVE OBSOLETE EXAMPLES I have a very curious case that has dumbfounded me. I was trying to get a certificate from letsencrypt and I was consistently getting errors that certbot is unable ...
1
vote
1answer
389 views

BIND Reverse DNS Ignoring out-of-zone data

I have a simple, single-address reverse DNS PTR for 10.142.0.2 to gbox.example.com record set up like so: # cat /var/named/zones/0.142.10.in-addr.arpa.db $ORIGIN . $TTL 1D 0.142.10.in-addr.arpa. IN ...
0
votes
0answers
317 views

Bind - Configure different Forwarders only for Specific Domains CDNs (eg. Wetransfer, Cloudflare, Amazon AWS)

INTRO I've setup a linux box where there's a BIND that serves me as a local dns. Basically by taking advantage of RPZ I can restrict some hosts and at same time with DNSCRYPT I forward everything to ...
7
votes
1answer
503 views

How to deal with underscores in hostnames?

I got DNS set up on my company's server and it works just fine, except I got problem with some phones. For example one of the phones is “Huawei P9 lite”, and it's hostname (set on the phone, no chance ...
6
votes
2answers
576 views

systemd-resolved block a domain name

Using systemd-resolved how do I block, route, or resolve, a domain name to a black hole, or a nowhere address. Bonus points for subdomains as well. I tried a single domain in /etc/hosts: 127.0.0.1 ...
-1
votes
1answer
214 views

List DNS Servers Obtained Via DHCP

Is there a way to list the DNS servers obtained through DHCP alongside IP addresses information (equivalent to the Windows command "ipconfig /all")? It seems needlessly tedious to run either "nmcli ...
2
votes
1answer
671 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
1answer
61 views

Some web sites can not be reached [closed]

With my laptop running an arch-linux I can not access some websites when I am at home like for example: https://www.wikipedia.org/ https://wiki.archlinux.org/ https://www.leo.org/ But I can access ...
0
votes
1answer
64 views

Adminstering GoDady using CLI/API

Is there any tool CLI/API where one can automate the GoDady DNS related operations such as addind/removing DNS records and managing SSL certificates and domain names? without wasting time around on ...
0
votes
1answer
114 views

Debian 9 allows hidden DNS queries?

In previous Debian Jessie I could configure iptables to restrict DNS traffic to my own router (192.168.1.1): Chain OUTBOUND (1 references) target prot opt source destination ...
1
vote
2answers
26 views

servresolv.conf become blank when system is running

I use dhcpcd to manage this file. First, start dhcpcd service, and the file has something with namesever. All things can be done correctly. But this file will become blank after a while. I try ...
0
votes
1answer
58 views

Restricting systemd units to specific host based on DNS alias?

I know that it is possible to restrict systemd units to a specific host by using the ConditionHost condition in the unit file. This ConditionHost is tested against the result of calling hostname. ...
0
votes
1answer
92 views

How to locate the module that handles DNS resolving in buildroot?

I have 2 different Linux devices, one's kernel is done using ltib (L from now on), and the other's by buildroot (B from now on). I manage to add a DNS resolver to B by using: echo "nameserver 8.8....
0
votes
2answers
219 views

not all nameservers are looked up

So I have multiple nameservers in my /etc/resolv.conf, but regarding the order in which they appear, I am able or not to resolve my corporate VPN hostnames: when VPN's DNS precedes my local one, I am ...
0
votes
1answer
273 views

Domain Name Routing on Ubuntu Server [closed]

I am trying to route my domain name on my DigitalOcean Ubuntu Droplet. I was curious if there is a default location where I can go to route this or if it is not that simple. The server is running ...
-2
votes
1answer
82 views

Tracing DNS request

I have static IP in my Debian Lenny system and ping by IP to Internet works fine. Unfortunately www.google.com is not resolved by name. I can't install any additional software to my Linux since it ...
0
votes
1answer
1k views

dnsmasq not working after reboot

After rebooting, dnsmasq service is running, but does not respond to remote requests (trying using "dig @10.0.0.1 stackexchange.com" from another machine). The log looks good in my opinion: Aug 11 17:...
1
vote
1answer
343 views

How do I specify the order that Network-Manager populates /etc/resolv.conf

Network Manager is posting the correct name servers and search domains into /etc/resolv.conf when I restart the network. However, it is not in an order I like. How can I tell Network Manager to ...
0
votes
0answers
61 views

How to address error messages when using openntpd's “constraints from” feature?

My openntp configuration is as so: servers pool.ntp.org sensor * constraints from "https://www.google.com" And I am seeing the following messages: constraint request to 2607:f8b0:4007:80b::2004 tls ...
-5
votes
1answer
521 views

DNS spoofing in Kali Linux [duplicate]

I'm trying to learn some stuff about DNSspoofing, but it didn't work well for me. Here's what i have done. step 1 : turn my NIC into promisc mode using the following command ifconfig wlan0 promisc ...
0
votes
1answer
240 views

Chainging proxychains DNS port

I am using a proxychains on Kali with a DNSCrypt nameserver which operates on port 443. When I start proxychains it tries to connect to the DNS server on port 53 and it returns a timeout. How can I ...
4
votes
2answers
3k views

How to make systemd-resolved stop trying to use offline DNS servers?

I have configured my DHCP server to supply two nameservers for redundancy, so that if one is offline the other one can be used. I have configured my PCs with systemd-resolved and according to ...
1
vote
2answers
609 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 ...
0
votes
1answer
1k views

How do I get DNSMasq to serve up DNS to Windows hosts without a domain?

I Have an Ubuntu 16.04 host (10.0.10.2) with DNSMasq installed which is only serving up DNS, and a couple Windows hosts on the same subnet, as well as a couple other Linux hosts on the same subnet. ...
1
vote
0answers
148 views

qemu guest is bypassing host's firewall

I've got a Ubuntu host running several virtual machines using qemu-kvm. Every guest should use our local DNS server, so I blocked outgoing DNS requests using ufw on the host machine: sudo ufw deny ...
1
vote
1answer
183 views

Can't get authoritative DNS server working (BIND9)

I'm trying to make a BIND9 DNS server work on a Debian server for an assignment at school. The problem is that, when I try to test my DNS server with dig -t soa my.domain.com @ns.my.domain.com, I just ...
1
vote
1answer
790 views

Can not resolve domains in all programs except ping

I've got a server for HPC usage, and it's RedHat. It appears to have a strange bug. I tried: $ curl https://www.aliyun.com/ -vv Couldn't resolve host 'www.aliyun.com' I tried these as well: wget ...
0
votes
1answer
1k views

DNS is not applied with systemd-resolved

I'm using Kubuntu 18.04. When I'm in the office network, everything works fine, but when I connect to any other network (wired of wifi) I don't get proper DNS names - the old ones are still in systemd-...
1
vote
3answers
386 views

macOS Sierra (10.12.6) hostname command not appending “.local”

To be brief: From what I understand the hostname command has an option -f. From the man page: -f Include domain information in the printed name. This is the default behavior. As it's the ...
1
vote
1answer
110 views

How to find and change local DNS rules? [closed]

I'm trying to understand routing on my machine. On my VM, there is the address sandbox-hdp-security that resolves to 127.0.0.1. > dig sandbox-hdp-security ;; ANSWER SECTION: sandbox-hdp-...
0
votes
1answer
115 views

DHCP DNS and Domain resolution NetworkManager

My environment is following, all cabled with gigalan, all latest Debian 9, vm with virtualbox on 2 different physical hosts. A mikrotik internet router which acts as DHCPD I configured it setting ...
0
votes
0answers
157 views

How to update resolv.conf? [duplicate]

I am experiencing DNS resolution issues. I can ping an I.P. on my LAN but when I type it's URL into my browser it does not resolve to the I.P. and I can't access the webpage. I took a look at the ...
-2
votes
1answer
732 views

Can't resolve hostname on Linux server

Using Digital Ocean for a webhost, I setup 2 droplets, prod.domain.com, dev.domain.com. Where I manage the domain through Digital Ocean, I created 2 different A records (dev/prod) pointing them to ...