Comments (6)
Yeah, that isn't good. I'll figure some way to better get the IP.
from pi-hole.
I don't know if the order is always IPV4, then IPV6 (which a cut or awk command would work), but the following sed would keep it regardless of order:
hostname -I | sed -r -e 's/.*(\b[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\b).*/\1/'
from pi-hole.
I'm also have this issue but I've only one IPv4.
pi@pidns ~ $ hostname -I |xargs
192.168.6.212
pi@pidns ~ $
I've to replace the whitespace with the IP manually in gravity.list about 1.6M lines (Thanks to Ctrl+H for that).
p.s RPi B+ running rasbian Jessie.
from pi-hole.
I restored the script to how it used to be until a better solution can be devised.
from pi-hole.
I started some changes on the development branch to address this issue. Any feedback is welcome.
from pi-hole.
The version in dev is working fine with me (dated 15 oct)
my hostname is :
192.168.1.55 2a01:e35:xxx:xxx:xxx:xxx:xxx:xxx 2a01:e35:yyy:yyy:yyy:yyy:yyy:yyy
therefore I have 1 IPV4 and 2 IPV6
script successfully extract the IPV4 and the 2nd IPV6
then accretion.txt is created with 2 lines per blocked site
it seems that if some sites are both in blacklist.txt and other lists then they are duplicate entries in accretion.txt (1IPV4 entry + 1 IPV6 entry twice)
note: I didn't checked yet whitelisting with this version.
from pi-hole.
Related Issues (20)
- Installation fails HOT 1
- Install: Check for valid upstream DNS IP addresses excludes IPv6 HOT 4
- (development-v6) cannot update FTL on arm device HOT 1
- (development-v6) cannot update FTL on amd64 device HOT 4
- Intermittent issues using custom dns_records HOT 2
- In an LXC container, the website displays a ‘load average’ that is very different from top HOT 7
- FTL database shouldn't be readable by unprivileged users HOT 6
- Raspberry Pi 5 having trouble binding interfaces when using NetworkManager HOT 1
- Update of pi-hole not possible on Linuxmint 6 (Debian) HOT 2
- pihole -v shows update available but pihole -up doesn't HOT 6
- Default list author fine with breaking functionality -- suggest finding alternative HOT 4
- Dashboard hanging HOT 1
- Consider NOT rate-limiting queries from the local router HOT 4
- Update (pihole -up) fails as installer (basic-install.sh) bypasses local DoH proxy HOT 3
- DHCP static reservation will not reset when changed. HOT 1
- v6: documentation on PUT /clients/ is not complete HOT 3
- Pihole stop working at all after reboot. Can't access internet by itself HOT 3
- pihole -up Banana Pi M1 not working HOT 2
- OS Detection saying supported OS is not Supported HOT 9
- "Restart DNS resolver" required every few days to make browsing work again! HOT 42
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pi-hole.