Reflector: Ignoring reflector.conf country parameter or... what is going on here?

Hi all,

I’ve recently joined EndeavourOS (coming from Manjaro) and I started using reflector for the first time.
I’ve also enabled the relevant systemd timer so that I won’t have to bother with it again manually.

I inspected my generated mirrorlist today and noticed something strange:
My mirrorlist includes domains that should probably be excluded by my configuration defining a country list

/etc/xdg/reflector/reflector.conf

# Recommended Options
--save /etc/pacman.d/mirrorlist
--protocol https
--age 6
--fastest 20
--sort score

# Select the country (--country).
# Consult the list of available countries with "reflector --list-countries" and
# select the countries nearest to you or the ones that you trust. For example:
--country Greece,Germany,Denmark,Finland,Netherlands,Norway,Poland

/etc/pacman.d/mirrorlist

################################################################################
################# Arch Linux mirrorlist generated by Reflector #################
################################################################################

# With:       reflector @/etc/xdg/reflector/reflector.conf
# When:       2023-06-05 11:49:51 UTC
# From:       https://archlinux.org/mirrors/status/json/
# Retrieved:  2023-06-05 11:49:27 UTC
# Last Check: 2023-06-05 11:45:02 UTC

Server = https://archlinux.thaller.ws/$repo/os/$arch
Server = https://de.arch.mirror.kescher.at/$repo/os/$arch
Server = https://mirrors.niyawe.de/archlinux/$repo/os/$arch
Server = https://packages.oth-regensburg.de/archlinux/$repo/os/$arch
Server = https://pkg.fef.moe/archlinux/$repo/os/$arch
Server = https://mirror.iusearchbtw.nl/$repo/os/$arch
Server = https://mirror.mikrogravitation.org/archlinux/$repo/os/$arch
Server = https://mirror.23m.com/archlinux/$repo/os/$arch
Server = https://mirror.kumi.systems/archlinux/$repo/os/$arch
Server = https://mirror.wuki.li/archlinux/$repo/os/$arch
Server = https://mirror.cj2.nl/archlinux/$repo/os/$arch
Server = https://mirror.fra10.de.leaseweb.net/archlinux/$repo/os/$arch
Server = https://mirror.srv.fail/archlinux/$repo/os/$arch
Server = https://mirror.pseudoform.org/$repo/os/$arch
Server = https://archlinux.richard-neumann.de/$repo/os/$arch
Server = https://mirror.selfnet.de/archlinux/$repo/os/$arch
Server = https://mirrors.xtom.nl/archlinux/$repo/os/$arch
Server = https://mirror.metalgamer.eu/archlinux/$repo/os/$arch
Server = https://ftp.icm.edu.pl/pub/Linux/dist/archlinux/$repo/os/$arch
Server = https://mirror.mijn.host/archlinux/$repo/os/$arch

Notice the inclusion of the top mirror (.ws) which I honestly see for the first time in my life and googling it come up with “West Samoa”.
Similarly, other strange domains include .li (Liechtenstein), .moe (I couldn’t even find relevant information for that domain), .fail, .host

What’s going on here? How can I resolve this?

A domain name doesn’t indicate where the server is located. For example, archlinux.thaller.ws appears to be in Germany.

1 Like

Thanks for the fast reply!
I see, I didn’t think to trace it.

That said, is there an easy way to also filter the domains for the same countries with reflector or would I have to write my own custom script and service?

I don’t know of a built-in way to do that.

Reflector has options --exclude and --include which can match mirrors.
See reflector --help for more info.

1 Like

Thank you so much!

I added
--include "\.(org|edu|com|gr|de|dk|fi|nl|no|pl)\/"
works like a charm

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.