Questions tagged [dns]

The Domain Name System. A mechanism for translating Internet domain names to IP addresses.

Filter by
Sorted by
Tagged with
17
votes
2answers
22k views

Can't connect to Pi on local network via hostname.local on Windows

I'm setting up a Raspberry Pi for the first time, and have been SSHing into it on a Mac on the same network like so: ssh pi@raspberrypi.local However on my Windows 10 box (also on the same network) ...
10
votes
3answers
19k views

How to debug avahi-daemon? Hostname not coming through

I installed Avahi with libnss-mdns to be able to access my pi by hostname. Relevant info: $ cat /etc/hostname raspberrypi $ ps ax | grep avahi 2103 ? S 0:00 avahi-daemon: running [...
8
votes
1answer
9k views

Proper way to prevent dnsmasq from overwriting DNS server list supplied by DHCP?

I have two interfaces: wlan0 - Wi-Fi client configured via DHCP; wlan1- static IP address, running hostapd to act as access point, running dnsmasq to give out IP addresses and service DNS requests ...
6
votes
3answers
16k views

Cannot make Pi visible on network

I'm running Jessie on a Raspberry 2, and have setup on the network so it can reach the web and ssh is enabled, but cannot see it on the network. The router shows nothing. I've followed various other ...
5
votes
2answers
18k views

Problem with DNS

Can't connect to www.google.com even being connected to the Internet. I always need to change the DNS to 8.8.8.8 in /etc/resolv.conf but it changes automatically into 127.0.0.1 and then www.google....
5
votes
2answers
9k views

Raspberry Pi Zero Stretch /etc/resolv.conf DNS problem

I cannot use apt update as every reboot my sudo vim /etc/resolv.conf file resets to the below # Generated by resolvconf search home nameserver 127.0.0.1 I have tried to change the nameserver to a ...
5
votes
3answers
2k views

USB OTG w/ Raspberry Pi Zero

I'm following Simple guide for setting up OTG modes on the Raspberry Pi Zero, the fast way! What I've done; flashed latest (2017-04-10) Raspbian image onto SD card, added dtoverlay=dwc2 on new line ...
5
votes
3answers
1k views

Clients connected through OpenVPN unable to process DNS requests through Pi-hole

I am on Rasbian Stretch. I installed OpenVPN (via PiVPN) and Pi-Hole (4.2). I setup my Pi-Hole (that runs on 192.168.1.6 on the LAN) to use Cloudflare DNS over TLS (using the cloudflared service on ...
5
votes
3answers
15k views

ssh: connect to host … port 22: Connection refused

I have dnsmasq configured on a DNS/DHCP server, which is set up so that the domain name mycompany.com is automatically appended to the hostname of each device connected over DHCP. e.g. the computer ...
4
votes
3answers
8k views

PiHole not resolving local DNS entries

I have a piHole set up on my network with address 192.168.2.10 My router is 192.168.2.1 and the DNS settings on the router point to 192.168.2.10 meaning all traffic that goes via the router (which is ...
4
votes
2answers
388 views

Raspberry Pi Wifi Repeater – Block Ads

I configured my raspberry pi as a wireless repeater (using hostapd and dnsmasq). Now I wonder how I could use it to block known ad-servers? What would be the best way? Using iptables? Or setting up ...
3
votes
5answers
14k views

How to prevent /etc/resolv.conf from being overwritten?

I use a static IP for my RPi: root@rpi2:/etc# cat /etc/network/interfaces auto lo iface lo inet loopback allow-hotplug wlan0 iface wlan0 inet static address 192.168.0.2 netmask 255....
3
votes
1answer
5k views

AVAHI Daemon doesn't work on RPI

I have installed lighttpd on my RPI 3 : sudo apt-get install lighttpd I have managed to access the web server from /home/pi/www And it works, I can find my Hello World when I entered 192.168.2.31 in ...
3
votes
1answer
3k views

Raspberry Pi uses .local not FQDN

I would like to access my RPi on my local network by a FQDN that I have. Example: my home network can be reached at www.mydomain.com and that in turn with port forwarding will reach my RPi internally ...
3
votes
0answers
255 views

How to netboot Ubuntu 20.04.1 Pi4 to Pi4 with dnsmasq…?

I've been trying to netboot my Pi4's using a Pi4 with dnsmasq on Ubuntu. So the idea is to have one Pi with attached storage serving the others. My setup is: master PI with an USB SSD running Ubuntu ...
3
votes
0answers
2k views

How to be sure pi-hole is working and how to make it block youtube ads?

I have installed pi-hole on my raspberry to stop ads. For the moment, I added the IP of the raspaberry to the DNS list in my Mac. The list of the DNSs in my Mac is the following: 8.8.8.8 8.8.8.4 ...
3
votes
0answers
3k views

DNSmasq error: Too few arguments

When I check the status of DNSmasq I get a "Too few arguments" error. Dec 12 11:05:18 Indigo101 dnsmasq[3593]: dnsmasq: syntax check OK. Dec 12 11:05:19 Indigo101 dnsmasq[3601]: started, version ...
2
votes
1answer
4k views

Cannot resolve local hostname of my Raspberry Pi

Currently I am using a pi 3 model B+ as a mopidy server. I set this up at home and I was able to access the pi with the hostname from a browser (e.g. going to http://hostname.local/ in a browser). I ...
2
votes
1answer
7k views

How to ping raspberrypi instead of raspberrypi.local [closed]

I recently noticed that when I run ping raspberrypi it resloves to an IP that is not part of my name but when I run ping raspberrypi.local I get the raspberrypi in my LAN. I am wondering if there is ...
2
votes
3answers
977 views

Raspberry does not register to windows DNS server

It gets its local dynamic IP correctly assigned by dhcp from the windows server 2008r2. Also, the dns server is assigned correctly (can ping anything inside and outside my local network). But i ...
2
votes
1answer
1k views

Configure Caching IPv4/IPv6 DNS Stub Resolver using “systemd-resolved”

"How Do I configure a local caching DNS stub Resolver using "systemd-resolved"?" I've been using BIND to enhance performance by caching name queries on hosts. Since systemd-resolved is part of the ...
2
votes
1answer
1k views

Run a system startup script after network and DNS resolution are available

I'm trying to set up a system init script on my Raspbian, just to send an HTTP POST request to a public web server (99,9% uptime), reporting that the Raspbian has just been started up (or rebooted). ...
2
votes
1answer
6k views

What is the “static domain_name_servers=192.168.0.1” for?

While implementing a static IP for my Raspberry I had to update /etc/dhcpcd.conf interface eth0 static ip_address=192.168.0.10/24 static routers=192.168.0.1 static domain_name_servers=192.168.0.1 I ...
2
votes
2answers
9k views

Raspberry Pi has two ip addresses [closed]

when I enter nslookup in my macbooks terminal, the output is: Server: 192.168.2.1 Address: 192.168.2.1#53 Name: raspberrypi.fritz.box Address: 192.168.2.32 Name: raspberrypi.fritz.box ...
2
votes
2answers
1k views

Resolving Windows Shares

RPi can access smb://$server/$share no problem through file manager RPi can not resolve //$server/$share RPi can not ping/nslookup //$server/$share RPi can ping IP address of //$server Looking ...
2
votes
1answer
3k views

How to setup DNS server on a closed network?

I have a network, with no internet connection, with a few computers and a raspberry pi on it. I want to setup a DNS server on the raspberry pi so that the computers on the network may use it. For ...
2
votes
1answer
701 views

Cannot SSH to EC2 whilst using iPhone hotspot

My Rpi needs to connect to an EC2 instance. This works fine when the Pi is connected to internet using ethernet or my home wi-fi, but stops working when connected via an iPhone hotspot. I'm using a ...
2
votes
3answers
907 views

Local DNSMasq .local domain problem

I have a problem with name resolution on one of my Pis. I have set my router to start dnsmasq with LAN domain local. Other systems except this Pi can ping host.local addresses just fine. I installed ...
2
votes
1answer
584 views

What are my RasPi DNS Server's resolvers?

I'm setting up a Raspberry Pi 3 as a DNS Server. I've configured it to use a Static IP Address using /etc/dhcpcd.conf and changed /etc/resolvconf.conf to use 127.0.0.1 as my nameserver, and /etc/...
2
votes
4answers
6k views

Cannot access raspberry pi by hostname

I have a wifi extender at home, every device is connected to it, not the router. After connecting to the wifi extender, I can access RPi by local ip address, but not its hostname. When I try to ping ...
2
votes
0answers
75 views

DNS and NTP not working after installing NetworkManger on Raspberry Pi

can anyone help me, this issue has been driving me mad for 4 months, I have very limited experience with any form or Linux and at a complete loss at to how to make it work. I have a Raspberry Pi 4 ...
2
votes
0answers
2k views

Pi-Hole + Unbound ==> Unbound anchor not ok // SERVFAIL

Problem with unbound and pi-hole I followed the official guide for installing Unbound alongside Pi-hole for my network, see Setting up Pi-hole as a recursive DNS server solution A week ago I first ...
2
votes
1answer
277 views

Raspberry Pi on Network with ethernet but not connecting to internet

I've had Pi-Hole on my pi to some success but after a while of inaction my pi cannot connect to the internet now. Unsure what will help, as I've tried what I thought were all the obvious things. I'm ...
2
votes
1answer
492 views

Assigning IP to eth0 device using Pi already set up as a wireless access point

I have followed the tutorial at https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md and successfuly turned my pi into a standalone wireless access point to control my ...
2
votes
1answer
7k views

Failed to start Avahi mDNS/DNS-SD Stack

Posted a question last night about not being able to ssh my pi. Connected the pi to a monitor and the following error came up: Failed to start Avahi mDNS/DNS-SD Stack This is stopping me from ...
2
votes
0answers
104 views

No-IP + extenal IP not even pinged

I set up my RPi using no-ip with this video. Locally I can access SSH at port 22 as normal. But when using my external IP or my NOIP from a mobile connected to 3g with the 22 port forwarded it does ...
1
vote
1answer
33 views

spy urls on rpi hotspot

I have setup a rpi wifi hotspot which I can switch on and off using NodeRed. I use it to control my kids internet access time. Trouble is, I have no idea what they are looking at and they seem to be ...
1
vote
2answers
51 views

Raspberry - same address in every location

I have an RPI2 what I want to use as a "developer platform" with git and mysql server. I using dyndns for remote access, but! when I home I can access it from 192.168.1.125 and when I'm remote I can ...
1
vote
3answers
5k views

WLAN access point no internet connection

Situation There's a intranet with access to the internet. However, you can only gain access to this network, and therefore the internet, if your device has a whitelisted MAC address. This is no ...
1
vote
3answers
423 views

Raspberry pi as public web server

I want to make my raspberry pi server public, I have successfully used it locally and "it works". There are a lot of tutorials on this but they all say that you have to do some port forwarding in your ...
1
vote
1answer
902 views

Preventing DNS Leaks on Raspberry Pi VPN Router

This is my first post, so hopefully I am doing it right. I am still a complete noob at Raspberry Pis, so bear with me here... Here is the story. I followed these tutorials on creating a WiFi hotspot, ...
1
vote
2answers
971 views

pi-hole acting as nameserver for a domain?

I feel that I may be making a mistake in my plans to host my own DNS for a domain I own. I want devices within the private network to all have subdomains to my main domain, e.g. laptop.example.com, ...
1
vote
2answers
4k views

Pi DNS Resolution

I've looked through a bunch of similar posts but none solve my problem nor match my conditions. I have connected my pi to my local network. I can reach the internet (google) but for some reason I ...
1
vote
1answer
777 views

Can't use docker on RPi with Raspbian and Pi-Hole installed?

Anyone else running docker AND Pi-Hole on Raspbian? I wanted to experiment with docker on my RPi, but I've hit a brick wall. After installing the docker.io using apt, it can't seem to pull anything ...
1
vote
1answer
845 views

Register Raspberry pi to DNS server

In the enterprise network, As a client how can i connect my pi to the (Windows)DNS server ? so that i can ssh/ping the pi by hostname without the ip address. Eg: myraspberrypi.domain.org Instead ...
1
vote
2answers
7k views

Fritz!box DNS settings with Pihole

I'm trying to configure the DNS settings of a Fritz!box 3490 so that the host names are revealed in Pihole. Fritz is DHCP server WAN DNS set to Pihole (DSL) DHCP DNS forward to Pihole (Local Network) ...
1
vote
2answers
1k views

set up dns server

My Pi will connect to different routers. They all provide the same network with the same SSID. Now I would like to set up the dns server of my Pi with the IP of those routers, (there's a dns server ...
1
vote
1answer
576 views

WIFI - DNS works but internet does not

I am trying to connect my raspberry to WPA2-Personal network. Raspberry connects to the WIFI and is assigned IP but I am not able to use the internet (DNS seems to work tho): pi@raspberrypi ~ $ ping ...
1
vote
1answer
513 views

SSH works only with public IP but not with dynamic DNS hostname

I configured my Raspberry Pi B+ with OSMC to accept incoming connection from outside. This works fine if I use directly the public IP from ssh command on console, but if I use my No-IP hostname (...
1
vote
1answer
72 views

networkd DNS issues (cannot resolve pip name)

I have configured my pi0w's wifi as per my own answer to this other question (and this great answer by Ingo that it's based on) to utilise both AP and Client modes. Everything generally works fine, ...