#StackBounty: #pi-2 #dns #raspbian-buster #pi-hole PiHole not resolving local DNS entries

Bounty: 50

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 everything) uses the local pihole for DNS. The router’s firmware is DD-WRT v3.0-r33413 mini (09/27/17)

This is working great and ads are being blocked as expected, however, I want to add some local network DNS entries.

As an example, I want to be able to type http://router in a web browser and have that resolve to http://192.168.2.1

I have followed this tutorial but had no luck (I even restarted the pi)
When I try to ping router or ping router.local from my Windows machine, I get a could not find host error. However, I can ping router from the pi but I can’t ping router.local

My etc/pihole/lan.list looks like this

192.168.2.1 router.local router

I have also tried adding the same entry as above to the /etc/hosts file again with no luck.

What am I missing here?


Get this bounty!!!

#StackBounty: #pi-2 #dns #raspbian-buster PiHole not resolving local DNS entries

Bounty: 50

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 everything) uses the local pihole for DNS. The router’s firmware is DD-WRT v3.0-r33413 mini (09/27/17)

This is working great and ads are being blocked as expected, however, I want to add some local network DNS entries.

As an example, I want to be able to type http://router in a web browser and have that resolve to http://192.168.2.1

I have followed this tutorial but had no luck (I even restarted the pi)
When I try to ping router or ping router.local from my Windows machine, I get a could not find host error. However, I can ping router from the pi but I can’t ping router.local

My etc/pihole/lan.list looks like this

192.168.2.1 router.local router

I have also tried adding the same entry as above to the /etc/hosts file again with no luck.

What am I missing here?


Get this bounty!!!

#StackBounty: #macos #dns #configuration-managment macOS – Where is the documentation for the Dynamic Store keys and their usage?

Bounty: 50

I am making an app that modifies some DNS settings, and to do it I am using the SystemConfiguration framework’s SCDynamicStore. This can be used to modify the values of specific keys in the store, but I want to see some documentation for the usage of keys by the system. Is there anywhere I can find this information?

Specifically, I want to modify the DNS servers of specific network interfaces. It seems as though each interface has a key that looks something like the following (my Wi-Fi interface):

State:/Network/Service/5D1F97DD-8AC2-45EE-7552-A69C5C41254F/DNS

But there is also a global key State:/Network/Global/DNS. I want to know the specifics of how the global key is used and when it overrides the NIC-specific key, as I noticed that when changing DNS servers through Mac Network settings, the global key gets updated and not the Wi-Fi-specific key. I know the first one is for Wi-Fi because the key disappears/reappears from scutil output when I disable/enable Wi-Fi.

It would be great to have some sort of reference for the keys in the Dynamic Store and what they are used for. What’s the point of having an API to manage them if we don’t know the specification of what each entry is used for?


Get this bounty!!!

#StackBounty: #16.04 #dns How do I allow more than 3 DNS servers in Ubuntu 16?

Bounty: 50

In my /etc/network/interfaces I have multiple servers listed on dns-nameservers, one set of ubuntu servers has 3, another 4. We had no issues until we were forced to add yet 2 more to each, but we still could not successfully resolve using the new DNS servers. After some investigation, we found that only 3 DNS servers were copied into /etc/resolv.conf. We are able to resolve our immediate issue by putting the 3 primary servers in there and omitting the backup DNS servers, but I’d like to get keep all necessary DNS servers available.

As for why so many:

  • 8.8.8.8 is used because it gets updated information faster than our internal ones
  • Our internal network DNS
  • Another DNS for a DB cluster


Get this bounty!!!

#StackBounty: #dns #hosts-file `.dev` TLD resolves to 127.0.0.1

Bounty: 150

My Mac (Mojave 10.14) is unable to access any website with a .dev domain name, such as get.dev. I tried running $ ping get.dev and got the following output:

PING get.dev (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.044 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.161 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.070 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.166 ms
64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=0.189 ms
64 bytes from 127.0.0.1: icmp_seq=5 ttl=64 time=0.056 ms
^C
--- get.dev ping statistics ---
6 packets transmitted, 6 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.044/0.114/0.189/0.059 ms

I know it’s been popular to remap .dev to localhost, and thought I might have done that at some point in the past and forgot about it. However, when I run $ cat /etc/hosts:

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1   localhost
255.255.255.255 broadcasthost
::1             localhost

I’m not sure where to continue troubleshooting this. Are there any other hosts files that might add additional entries?

EDIT: My DNS is set up to use 1.1.1.1, according to their instructions.


Get this bounty!!!

#StackBounty: #heroku #dns #cname Heroku's DNS is causing conflicts with Google Suite MX records

Bounty: 100

Heroku DNS is causing troubles: cannot recieve any email at myuser@stickersgallito.com that uses Google Suite as Mailbox.

My host provider is Punto.pe a peruvian company.

My projects is hosted in Heroku, in there I’ve 2 DNS:

1) www.stickersgallito.pe -> ancient-crab-bwwmzXXXXXXXXXXXX.herokudns.com
2) stickersgallito.pe -> functional-wallaby-XXXXXXXXXXXXXXXX.herokudns.com

enter image description here

I need that people can visit the site entering: www.stickersgallito.pe or just stickersgallito.pe.

So I’ve entered these 2 records as CNAMEs in my Host Provider Registry Panel.

Problem:

I’ve also set up other tools like MailGun and Google Suite (to have mailboxes like omar@stickersgallito.pe). MailGun functions correctly, I can visit the page either using: www.stickersgallito.pe or stickersgallito.pe.

But I cannot recieve emails at omar@stickersgallito.pe.

I’ve consulted my Host Provider and the say that the record for
stickersgallito.pe ->
functional-wallaby-XXXXXXXXXXXXXXXX.herokudns.com is the
problem
. It’s interfering with other records.

They don’t offer any solution, but point to Heroku for a response.
Heroku point me to their documentation and if after following it’s steps it doesn’t work I should talk to my Host Provider.

My host provider says that if I can provide an IP Address from Heroku we could solve this. Heroku’s doesn’t offer an IP address as far as I know.

Google Documentation to Set Up MX Records:

https://support.google.com/a/answer/140034?hl=en

What can I do?

DNSs in Host Provider:

enter image description here

Registers:

enter image description here


Get this bounty!!!

#StackBounty: #networking #server #dns Network Troubles – Cannot Ping Windows PC

Bounty: 50

I’ve seen a lot of similar questions but nothing seems to quite describe my situation.

I have a few devices on my network, LinuxPC, WindowsPC, Laptop, and NAS.

From my LinuxPc running Ubunutu 18.04 I can successfully ping Laptop and NAS:

ping Laptop
PING LAPTOP (192.168.1.5) 56(84) bytes of data.
64 bytes from LAPTOP.local (192.168.1.5): icmp_seq=1 ttl=128 time=1.04 ms

ping NAS
PING NAS (192.168.1.12) 56(84) bytes of data.
64 bytes from NAS.local (192.168.1.12): icmp_seq=1 ttl=128 time=1.04 ms

However, when I try to ping the WindowsPc it fails

ping WindowsPc
ping: WindowsPc: System error

Now, it’s not that WindowsPc isn’t the correct type. If I ping a random name that doesn’t exist – ping asdfasdf – I get a different message entirely: ping: asdfasdf: Name or service not known

I also thought it might be a firewall issue, but if I use my Windows Laptop, I can ping WindowsPC without any trouble. And if I ping the IP address directly from my Linux PC it works great.

So every other device on the network can access WindowsPC by name, except Ubuntu.

I’ve done things like install netbind and added ‘wins’ to my /etc/nsswitch.conf file and that allowed me to ping everything else. But not my PC.

What am I doing wrong here?


Get this bounty!!!

#StackBounty: #dns #dhcp #amazon-web-services #amazon-ec2 dhclient lease renewal occasionally breaks DNS resolution

Bounty: 50

I have a set of ec2 instances (ubuntu trusty 14.04) that I have never done any special dhcp configuration with. It’s on a VPC with the default dhcp options.

For some reason, roughly ever 25 minutes, I see this in my logs

(IP’s and xid are scrubbed)

DHCPREQUEST of 172.16.1.111 on eth0 to 172.16.0.1 port 67 (xid=0x0000000c)
DHCPACK of 172.16.1.111 from 172.16.0.1
bound to 172.16.1.111 -- renewal in 1693 seconds.

(The exact number of seconds changes between 1300 and 1700.)

Occasionally, like once every 10 days, this renewal will break DNS, and my running application will start giving errors like getaddrinfo: Name or service not known. Once the renewal runs again in about 25 minutes, the problem is resolved. I have tested this by waiting for a failure and manually renewing the dhclient lease (sudo dhclient -v -r eth0 then sudo dhclient -v eth0), and seeing that fix the issue instantly.

I have 2 questions:

  1. Why is the renewal time this strange ~25 minute number? I know that I can set this through a conf file, but this seems like it’s a strange default.

  2. Why does it sometimes break DNS resolution? This is the main issue here. My other sets of ec2 instances also have this short DHCP renewal time, but only this one set of instances has the issue where, occasionally, DNS breaks when DHCP is renewed.


Get this bounty!!!

#StackBounty: #networking #wireless-networking #dns #bluetooth How does expressjs serve website over bluetooth without internet?

Bounty: 100

Trying to make an app that would work for clubs that meet in locations without internet or wifi (ie church basements).

I found this question and answer, but found no hope https://stackoverflow.com/questions/10502645/serving-a-local-website-via-bluetooth-to-a-cellphone-without-using-the-internet since the top answer was super high level from 2011.

I then found this from 2014
https://discussions.apple.com/thread/4308091

This part worked:

You need to make it work, by assigning blutooth PAN a
manually assigned ip address.

192.168.2.1 subnet 255.255.255.0 and in router address field 192.168.2.1, provide DNS as 8.8.8.8 and second dns 8.8.4.4. Of course enable the internet sharing beforehand.

My Mac was serving on localhost:9190 and I was able to go to http://macname.local:9190 to hit my website where macname is what showed up in my “Sharing” system settings when doing Internet Sharing from Bluetooth PAN to computers using Bluetooth PAN.

I celebrated this working, but I have no idea what the DNS bit is for, given I never type those numbers. What am I doing manually that makes this work? Ensuring that the ip and router are the same address? I tested this with zero internet (wifi off) on my laptop. Really just looking to understand why/how this works


Get this bounty!!!

#StackBounty: #networking #browser #dns #xmlhttprequest Stale host addresses in Chrome

Bounty: 50

I’m tracking down a problem with our web application whereby a CNAME record swap of our site’s domain is not picked up by Chrome for a long time, far exceeding the 300 second TTL of the DNS record. The remote address reported in Chrome inspector network tab for all XHR requests to our server is stale.

If I copy the XHR requests as curl and run it in the terminal then I can confirm it uses the IP addresses of the newly swapped-to domain, as expected. nslookup also reports the same addresses, so my local DNS cache appears to be fine.

In Chrome’s netlog viewer (catapult) I can see our website’s domain has an expired entry in the DNS cache with a TTL set to 10 seconds. I can also see requests made well after the entry expired, so it seems like Chrome isn’t even checking the cache at all!

Curiously, when I flush the idle sockets on chrome://net-internals/#sockets then the host resolver does trigger as part of the SSL handshake and the new IP address is picked up.

My feeling is this is our web application is doing something to cause this weird behaviour. I’ve checked another one of our sites but cannot reproduce the problem. I thought we might be hanging on to a connection somewhere, but we’re not using websockets and I can’t see any other hanging network requests.

Any help greatly appreciated!


Get this bounty!!!