Reroute xxxx.com to lokal ip of nextcloud?

hmm, i have also tried it from my windows pc.
first i removed the host entry
192.168.240.2 xxxx.com
and tried to connect…i got an error with adress not found
in network/ host i set
hostname to xxxx
and also
xxxx.com
it is the same.

than i set the windows host setting again and the traffic goes direkt.

i have tried the network/host settings on 2 phones and on winows pc and it doesnt work. i modified the host and the traffic is only in lan.

for me it seems that i miss something in ipfire
is there no hostfile in /etc/ipfire or so ?

Host definitions for DNS are defined with Network —> Edit Hosts from the WUI.
BTW, is your DNS server working ( Network —> Domain Name System )?

1 Like

BTW, is your DNS server working ( Network —> Domain Name System )?

yes but i didnt change anything.
should i set it to the ipfire dns ?

I thought of the IPFire DNS server. The status can be found in the WUI.

Or do you have another server in your local net?

Status: funktioniert (Recursor-Modus)
working
should i set the dns to the green dns (192.168.220.1) ?
i didnt touch the settings until now

no, the fritzbox and ipfire not more…nextcloud of course

Have you set the host in IPFire? Can you show a screenshot of it?

1 Like

Just an idea. Could you define a DNS server in DNS page of the WUI?
I’ve set recursor mode some hours before to test it and therefore had problems to resolve some page names.
Maybe unbound isn’t working as expected in recursor mode.

i did

Hostname: xxx
Domainname: com

gives an address record for xxx.com

There are no ISP DNS server listed.
So you can untick the option.
BTW, it is usually to let this disabled. Many ISP’s DNS servers don’t speak DNSSEC, which is necessary in IPFire.

It would be helpful to capture the DNS traffic using tcpdump.

i will try.
but after change the settings

is no change on the iphone but on the windows pc.
after remove the host entry in windows i connected to nextcloud and the traffic goes from windows to nextcloud without red zone :slight_smile:
but not on the iphone

Would it be better to use a subdomain for Nextcloud, like nextcloud.domain.com. Externally this should resolve to your WAN IP or be a CNAME record for your WAN IP. Internally, you can set up a host in the hosts file with a hostname of nextcloud, using the domainname domain.com. Use anything you want instead of nextcloud, if you want. You could even use the real machine name, but the machine name and hostname don’t have to match. You may also have to change the nextcloud setting to allow the new hostname and any certificate you have.

so, after some times…
on the smartphone the traffic goes from green to sbs to red and back.
on the windows pc the traffic goes from smartphone to the nextcloud.

so i had to reconfigure the network/host settings to regulate the pc traffic. on the iphone i cant regulte the traffic.

Have you tried this?.

1 Like

i have tried it now with an pixel 6 phone and i can see that the traffic goes now from phone to nextcloud direkt.
so, on windows and android pixel it works like it should.
on the iphone with ios not.

for me it it ios and ipfire works like it should :slight_smile:
thank you all for the help :slight_smile:

1 Like

I have a feeling iOS tries to use DoH or DoT if it can.

1 Like