Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have ipv6.domain.tld set up and pointing to my server's IPV6 address. I have added my server's IPV6 address through Webmin. When I restart Apache, I get

Restarting web server: apache2[Mon Jul 16 02:51:57 2012] [error] (EAI 2)Name or service not known: Failed to resolve server name for 2607:5300:20:101::1:1023 (check DNS) -- or specify an explicit ServerName
 ... waiting [Mon Jul 16 02:51:58 2012] [error] (EAI 2)Name or service not known: Failed to resolve server name for 2607:5300:20:101::1:1023 (check DNS) -- or specify an explicit ServerName
.

When I try to visit ipv6.domain.tld, I just get a domain down page. What is wrong with it?

share|improve this question
    
What's the ServerName configuration for that virtual host? Looks like there isn't one, so it's guessing at the name based on the (non-existent) reverse DNS for that address? –  Shane Madden Jul 16 '12 at 1:07

2 Answers 2

up vote 1 down vote accepted

Each VirtualHost in which you've used the IPv6 address requires a ServerName to be set. If you aren't using VirtualHost then you need to set the global ServerName.

share|improve this answer
    
That was my problem. Thanks :) –  tristan Jul 16 '12 at 12:49
    
Remember to accept the answer that solved your problem by clicking the outline of the check mark next to it. Welcome to Server Fault! –  Michael Hampton Jul 16 '12 at 14:16

In Apache configuration files you must often enclose the IPv6 address between [ and ] to avoid confusion between the :'s in the address and the : between the address and the optionsl port number.

share|improve this answer
    
That was done by Webmin. It does have it in brackets. –  tristan Jul 16 '12 at 12:47

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.