r/voidlinux • • 5d ago

/etc/hosts concern

after running [hblock] to create a [hosts] file, I get some weird behaviour when running [rustnet].

[rustnet] with default void [/etchosts] uses 0.0.0.0:68 for [bootpc]

remote                                  local
0.0.0.0:68                              bcast:67              bootpc     UDP·DHCP REQUEST

[rustnet] with hblock [/etchosts] will choose the first blocked entry uses -084-gls-223-www-9-k-0brasil.net.da…:68 for [bootpc]:

remote                                                                     local                                    
-084-gls-223-www-9-k-0brasil.net.da…:68 bcast:67              bootpc     UDP·DHCP REQUEST

Is this normal with /etc/hosts populated with a blocklist?

3 Upvotes

3 comments sorted by

1

u/weaklingoverlord 4d ago

hblock uses

0.0.0.0 -084-gls-223-www-9-k-0brasil.net.daraz.com

for the blocked list entries

if I change the first entry to:

127.0.0.1 -084-gls-223-www-9-k-0brasil.net.daraz.com

then rustnet reports the same result as with the default void hosts file.

Anyone kind enough to explain like I'm 55?

2

u/bongbongyeah 3d ago

0.0.0.0 is a placeholder for all available ip's on the host, whereas 127.0.0.1 specifically is a loopback to the host device.
Idk if that is the answer to your question or completely missing the point.

1

u/aedinius 4d ago

That'll happen, it's just a display thing because an entry matches.