You have a problem with name resolution on the client you try to connect from (W7).
All connections are made to a destination IP address. If you supply a name, the computer first resolves that name into an IP address. This is where you fail today.
If your gentoo box / home router's IP address can't be looked up from either the
hosts file, or with an
AAAA for IPv6) record in DNS (possibly via a CNAME), your windows machine won't understand what IP the gentoo box has.
To be able to give a good answer to your question, we need a bit more information from you, describing the network setup a bit, so we don't make wrong guesses.
- are the windows and gentoo boxes both on the "inside" network?
- are they both configured as DHCP clients?
- is the router the only DHCP server on the internal network?
Did you use any DynDNS service when it was working earlier, or has the W7 installation changed somehow? (Different PC, reinstall, virus, etc?) Perhaps you had an entry in the hosts file before, when it was working, and it is now missing.
Why the router can figure out the internal/private IP address of the linux box while the windows box cannot, is because they use different sources for their name information. Maybe the router itself has that information. Is it also a DHCP server? Maybe that's why the router knows.
Based on new input,
On the gentoo box, make sure you have an entry in
/etc/hosts that looks like this:
192.168.0.3 hostname.domain.tld hostname
(replace 192.168.0.3 with the real (internal) IP address of the gentoo server, and hostname.domain.tld to be the fully qualified domain name you wish to use, and the last word on the line to be the hostname without the domain (ie, the word before the first
Put the same line in the
%WINDIR%\System32\drivers\etc\hosts file, but remember that windows name lookups of your gentoo box will be then taken from that file, and not from DNS.
This should make the name lookups work (locally) on both the gentoo server itself, and the windows client, without consulting DNS.
/etc/apache2/vhosts.d/00_default_vhost.conf (if that's where your web server is configured), make the
ServerName entry match the FQDN (hostname.domain.tld) that you have in the
This should allow apache to start without warnings.