Question Local pihole IP over DHCP ignored as DNS? - Google Pixel 6 Pro

Hi,
I configured my pihole as primary DNS and Google (8.8.8.8) as secondary DNS on my DHCP server which just works fine on my laptops and computers. On my P6P the local IP of the pihole is ignored as DNS when I register the phone with the WLAN using DHCP. Under DHCP the primary (and sole) DNS is 8.8.8.8 and the phone also doesn't appear in the logs of the pihole. To get the phone using my pihole I have to assign a static IP with the pihole's IP as primarary DNS. Anybody else using a pihole and experiencing this issue?
Thanks

I was using my Pihole with my 4XL and yes I did have to assign a static IP so that I could maintain the DNS connection with the device. Also I didn't give a secondary DNS for it to fall back to which did work for me so you could try that as well. Not saying that Dynamic doesn't work, but Google does a lot of messing with your connectivity in the background apps of the device and unless you give it no other options there is a chance it could prioritize Google's DNS given the ability to choose.
That is speculation on my part but only having the Pihole DNS on my device worked well and did what I needed it to do. Static IP worked for me when Dynamic didn't on Nest WiFi.

Related

No wifi routing on 3COM wireless router?

For some odd reason I am unable to use WIFI at work on our 3COM wireless routers. I can connect to all the access points fine, but it never routes. I can ping other internal IP addresses, but I am not able to ping public IP addresses outside of our network.
I started looking through logcat and found that it is setting the gateway to 120.123.1.0 when it should obviously be 192.168.1.1. I looked everywhere in the router settings and the gateway is specified as 192.168.1.1. This is obviously a problem! Why in the world is it picking up this bogus gateway IP address from these routers?
I've had no problems with any other routers and an office neighbor is able to get wifi just fine on his iPhone. Any clues?
Well it is definitely just a gateway issue. I opened a shell with adb and set the gateway to 192.168.1.1 manually and I was able to to access the internet via wifi on the 3COM wireless router.
Does anyone have any idea why the EVO would not obtain the correct gateway? Every other system on the wireless network gets the right data from the DHCP server. I don't care how much of a long shot your suggestions or ideas are, I am looking for any leads to investigate. I've already double checked everything in the wireless router and DHCP server and the mysterious gateway IP (120.123.1.0) is nowhere to be found.
IP, netmask, DNS, DHCP server, and lease time are all coming in fine.

[Q] Froyo WIFI problem with dynamic IP

Since installing Froyo on my Desire, I can not connect to my local wireless router (Belkin N1 Wireless router) when using a dynamic IP address. Previously (on eclair) this was no problem what so ever.
When I try connecting, it keeps saying it's trying to aqcuire an IP address, but nothing happens.
When I check the routers overview of connected devices (DHCP client list), I see this:
ip address: 192.168.2.4
host name: android_f07d6a45ÿÿÿÿþÿÿÿ (yup, strange characters)
I tried connecting to my macbook via WIFI, and that worked without a hitch.
After restoring factory settings on my Desire, factory settings on the router, installing newest router firmware... I tried again, but to no avail!
Then I gave the Desire a static IP address and presto; I could connect to my wireless router without a problem.
In conclusion:
Before Froyo: connecting to wireless router with dynamic IP addresses = no problem
With Froyo: can only connect to router with static IP and Desire's hostname contains strange characters
Most other wifi networks seems to work.
Anyone else having similair problems? Is the Desire's strange hostname the problem?
This was a problem for me with Eclair too, and yes I'm still experience it, the only solution I found before was "wifi-fixer" or what ever the app was called (it's found via the market). But it did not work all the time... :-(
Update: I can connect to Dynamic-IPs without noticing any strange Chars. But its the "unable to..." that's similar to your's.
static IP won't help
I'm a little frustrated becouse even static IP is not helping
can you tell me how your exact PHONE config's are?
like gateway dns and so on,..
THX,
s.
s.zamani said:
I'm a little frustrated becouse even static IP is not helping
can you tell me how your exact PHONE config's are?
like gateway dns and so on,..
THX,
s.
Click to expand...
Click to collapse
These settings should be different from router to router
I can give you mine, but I doubt it will help you:
IP: 192.168.2.4
Gateway: 192.168.2.1
Subnetmask: 255.255.255.0
DNS 1: 192.168.2.1
DNS 2: BLANK
Depening on your router and settings, you might have to change the ".2." in all of these to ".0."
The "4" in the IP address is also free for you to chose (must be available though)

Router cheat sheet for DLNA

So, I was having some strange issues maintaining a connection to my tv and after exhausting options device side, I began looking at the networking side and after some serious tuning of the router settings, I believe I may have found a recipe for success:
Make sure upnp is on.
Ensure DNS IP addresses are being filled in under Setup/Internet/Manual.
Turn off ALL QoS (DIR only) GameFuel (DGL only and if ON.) options. Advanced/QoS or Gamefuel.
Turn off Advanced DNS Services if you have this option under Setup/Internet/Manual.
Turn on DNS Relay under Setup/Networking.Setup DHCP reserved IP addresses for all devices on the router.
Ensure devices are set to auto obtain an IP address.
Set Firewall settings to Endpoint Independent for TCP and UDP
I also have my wireless set to wpa and aes in case the encryption was causing the problem.
Hope this helps
What do you mean you were having trouble staying connected to your tv? It would just disconnect or you had trouble connecting to your router?
w7excursion said:
What do you mean you were having trouble staying connected to your tv? It would just disconnect or you had trouble connecting to your router?
Click to expand...
Click to collapse
Either it would time out after connecting, or would not see the tv. I have two wireless routers too so I i had too make sure it was done on both.

[Q] How to assign static wifi IP address?

just updated my SW3 to Android 5.1.1
my office wifi router required every client to set manual/static IP address.
any suggestion how to do this on SW3?
jalmago said:
just updated my SW3 to Android 5.1.1
my office wifi router required every client to set manual/static IP address.
any suggestion how to do this on SW3?
Click to expand...
Click to collapse
I am pretty sure you can do this in the advanced section of the wifi settings on the watch.
hi i can't find any option to set a static ip. Not on the watch and not on the dialog on the phone where i have to enter the password.
 @Joachim Winter have you tried it, cause i dont know how i should set it there?
Thanks
Something like this might work via adb assuming it's just like regular Android?
http://stackoverflow.com/questions/...tic-ip-address-using-android-debug-bridge-adb
Can't find too much info on changing WiFi configuration with adb
Assigning a static IP address would be an issue on thew watch especially if you want to use the WiFi connectivity option on other networks.
But reserving an address on your router would be a better option, meaning DHCP would always assign the same IP address to your watches MAC address. It's usually under DHCP and Address Reservation in your router settings.

Question Change DNS for both Wi-Fi and Data.

As the title says I want to change the DNS for both Wi-Fi and data to Google's DNS servers.
Before this phone I used a Magisk module to change the DNS for my Mi Pad 4 (Wi-Fi only), but the module is not available anymore and I don't think it works for data networks.
All methods are welcome: ADB, terminal (root), Magisk module, app (root)...
Nemix77 said:
As the title says I want to change the DNS for both Wi-Fi and data to Google's DNS servers.
Before this phone I used a Magisk module to change the DNS for my Mi Pad 4 (Wi-Fi only), but the module is not available anymore and I don't think it works for data networks.
All methods are welcome: ADB, terminal (root), Magisk module, app (root)...
Click to expand...
Click to collapse
Can't you just use a DNS changer app that acts as a VPN
Also on AOSP you can change your DNS in network and internet settings under private DNS
I'll look into it, I'd rather not go through a VPN. The description for the app is a bit confusing.
Miui has private DNS also, but IPv4 addresses are not accepted.
I think I have to provide the Google's host name for private DNS to work?
The Magisk module I used a while back uses terminal and requires root.
Nemix77 said:
Miui has private DNS also, but IPv4 addresses are not accepted.
I think I have to provide the Google's host name for private DNS to work?
Click to expand...
Click to collapse
You can use hostnames :
1dot1dot1dot1.clouldflare-dns.com
dns.quad9.net
dns.google
1695 said:
You can use hostnames :
1dot1dot1dot1.clouldflare-dns.com
dns.quad9.net
dns.google
Click to expand...
Click to collapse
Personally I use dns.adguard.com it doesn't track and is quite good and at blocking ads
1695 said:
You can use hostnames :
1dot1dot1dot1.clouldflare-dns.com
dns.quad9.net
dns.google
Click to expand...
Click to collapse
I'm a networking specialist and the network settings on Android (perhaps it's just Miui) make no sense at all.
It's very basic and counter intuitive to have hostnames for DNS servers for DNS settings.
All other operating systems including Cisco's IOS (which is based on Unix) uses 32-bit or 128-bit addresses for DNS, simply because these are direct IP addresses and are not alias hostnames.
Furthermore, direct public IP addresses do not need to be translated from hostname to IPv4/IPv6 address blocks in order to contact the DNS server, it's the DNS server's job for address translation.
Both Linux and Windows Servers need administrative/root (su) permissions to set the DNS addresses, I was expecting the same thing on Android (root permission via Magisk) since the kernel is based on Linux.
Despite my annoyance, thanks for all the help guys!
Blokada. I use it since last year, it acts like a vpn but u only have a vpn if u pay the premium, the free version allows you to block tracking, ads and change dns from both wifi and mobile. Doesn't drain battery.
Blokoda for blocking ads goes through a VPN server, that's understandable.
Edit:
Much easier to understand and search if they just label private DNS as DoT and DoH, currently not implemented in company networks yet.
Hello,
I am an experienced user on jailbroken ios and I inform you that we can change the dns server just by defining an ip address and its working and by just editing a system file, no need for third party application or vpn.
I change dns as if I were on windows I defined the dns ip address and it all works immediately in 4G cellular data.
On android at the time on android kitkat 4.4.4 or 4.4.2 and lollipop 5.0.1 and 5.1.1 you could change the dns server by editing the build prop and its market perfectly in mobile data and wifi.
Then in December 2020 I bought a smartphone to go back to android for the custom modding side so I bought the S20 FE 5G under android 10 and the dns in cellular 4G does not work at all, even by putting a domain name it didn't work at all.
On android the dns in wifi can be changed but the mobile data I couldn't find, so I went back to jailbroken ios a thousand times better than a personalized android.
roid personnalisé.
yassine71100 said:
Hello,
I am an experienced user on jailbroken ios and I inform you that we can change the dns server just by defining an ip address and its working and by just editing a system file, no need for third party application or vpn.
I change dns as if I were on windows I defined the dns ip address and it all works immediately in 4G cellular data.
On android at the time on android kitkat 4.4.4 or 4.4.2 and lollipop 5.0.1 and 5.1.1 you could change the dns server by editing the build prop and its market perfectly in mobile data and wifi.
Then in December 2020 I bought a smartphone to go back to android for the custom modding side so I bought the S20 FE 5G under android 10 and the dns in cellular 4G does not work at all, even by putting a domain name it didn't work at all.
On android the dns in wifi can be changed but the mobile data I couldn't find, so I went back to jailbroken ios a thousand times better than a personalized android.
roid personnalisé.
Click to expand...
Click to collapse
You don't need root to change DNS on Android. You can use Private DNS which work on both WiFi and Mobile Data just fine. I don't think you can do that on iOS without jailbreaking.
kima09 said:
You don't need root to change DNS on Android. You can use Private DNS which work on both WiFi and Mobile Data just fine. I don't think you can do that on iOS without jailbreaking.
Click to expand...
Click to collapse
Hello,
Android's private dns does not work very well precisely depending on the dns server.
When I enter the DNS domain name and well it does not work at all!
This "FDN" DNS server, for example, does not work on Android at all, even when entering its domain name.
FDN - Fournisseur d'Accès à Internet associatif depuis 1992
Going back to ios you can change the dns without jailbreak it's possible but you have to go through an application etc which simulates a vpn connection, except.
Off on ios at least once root I can define the dns server of my choice by defining an ip address as on windows when you change the dns server, also it works afterwards in non-jailbreak mode.
On my iPhone my DNS at FDN works perfectly 3G/4G/5G Wifi.
If on android I can define the dns server of my choice by entering the dns ip address it's perfect but unfortunately it's not the case!

Categories

Resources