Questions tagged [dns]

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

Filter by
Sorted by
Tagged with
15
votes
1answer
16k 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) ...
8
votes
2answers
15k 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 [...
7
votes
1answer
8k 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
15k 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
13k 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
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
918 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
2answers
272 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 ...
4
votes
2answers
6k 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 ...
3
votes
3answers
1k 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 ...
3
votes
1answer
2k 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 ...
2
votes
4answers
12k 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....
2
votes
1answer
439 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
537 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
4k 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
8k 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
849 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
362 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
712 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
4answers
4k 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
30 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
1answer
4k 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 ...
2
votes
1answer
225 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
422 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
6k 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
101 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
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
405 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
2answers
608 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
1answer
5k 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 ...
1
vote
1answer
463 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
505 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
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
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
550 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
463 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
2answers
620 views

Setup pi with dynamic DNS on private network only

I'm looking for a solution that allows me to set a dynamic dns on my Pi only for local network, without the need to make configurations on router. In other words I want to set up a pi in a way that I ...
1
vote
2answers
3k views

Can I setup my Raspberry PI 3 with a DNS server that responds natively on Windows

I am pretty sure this has already been answered but I couldn't find any answser yet. My Raspbery PI 3 acts as a web server with Nginx, and the native WIFI is configured as a WIFI hotspot. So from my ...
1
vote
2answers
3k views

I cannot get pihole to block ads on android

I am running PiHole on a raspberry pi 3 model b. The pi is wired with ethernet to my xfinity router and I managed to get pihole working perfectly on my windows 10 pc, ...
1
vote
2answers
182 views

RPI is discoverable via dns over eth but not over wifi

I can find my Raspberry Pi over dns when it is connected via eth, but not when it is connected over wifi. It has a static Ip adress in eth0, and a dhcp address in wifi. I am trying to ssh into my pi,...
1
vote
1answer
2k views

Local names not resolved with static ip Rasbian stretch

I've got a Nas doing DHCP and DNS ip adress = 192.168.0.1 local names are correctly resolved when raspberrypi-0-w ip is set to dynamic pi@raspberrypi0-w2:~ $ ping munin PING munin.cesan.lan (192....
1
vote
1answer
480 views

Pi web server can't be accessed by domain name

I have an earlier Pi model circa 2012, with apache2,php5,mysql-client,mysql-server and phpmyadmin installed. I have an xfinity router (Comcast Cisco DPC3939) the gateway IP is 10.0.0.1. My Pi has a ...
1
vote
1answer
2k views

How to create a Wifi Access Point without internet connection?

It's a strange question: i'm using a Raspberry Pi3 as a 'router' for mobile devices (Android / iOS). Raspberry will be NEVER connected to internet, so if a mobile devices connect to its WiFi, it will ...
1
vote
1answer
116 views

How can my Mac route to the Raspberry Pi with the command?

I was following the tutorial saying that I can connect to the Raspberry Pi with SSH by entering the simple following command: $ ssh pi@raspberrypi.local But I didn't set the host raspberrypi.local. ...
1
vote
1answer
3k views

I can't access the internet through my raspberry pi when connected through ssh

Proof of the error When I try ping 8.8.8.8 through SSH I get this: PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. --- 8.8.8.8 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, ...
1
vote
0answers
52 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 ...
1
vote
1answer
137 views

Avahi listing pi without .local suffix

I have a number of raspberry pis that I swap out (only one running at a time). One responds to ssh pi@raspberrypi rather than ssh pi@raspberrypi.local like the rest. I have looked at how to change ...