I realise that this may get overlooked as its been asked a few times here:
When I set up a new site, and get the message in the title. The second & third post from above does fix the issue to a degree, As Ilia states:
It’s not a big of a deal. Help Virtualmin to work out your IP address by settings this up manually in System Settings/Virtualmin Configuration.
but unlike them:
when I put in my IP address, and recheck the issue, it resorts back to eth0. So my system works so long is it remains unchecked. Otherwise, it reverts from ‘detect automatically’ from eth0 and I get the message: Failed to create virtual server : Failed to work out externally visible IP address
Its fine so long as I get it work (and don’t recheck config), it just seems like there is a better way. What I am missing?
This happened out of the blue as well (I’ve set up ~30 working sites previously with no issue). All ears if anyone thinks they can help.
Hi Adam, sorry for the delayed response, I didn’t have time to check this until now. Where do change/add the network dns settings in Virtualmin?
Also, I am happy to run stuff in the command, and or take screenshots of the interface if that is help. I am currently looking in Virtualmin -> system settings -> virtualmin configuration -> network settings, but I don’t think I see an area to to add the google network dns?
This isn’t urgent, since I can add sites without configuration confirmation (so for no probs, which is good because I have a couple more to add today). However, just looking for the best way to go about this.
Maybe related: I ran into the same error message yesterday. I’ve been doing some tests with backup restore and was really puzzled why this error suddenly popped up when things worked fine earlier.
It seems Virtualmin does validation for external IP using software.virtualmin.com. Yesterday, the service returned error 500 on several occassions, which caused the validation to fail. Right now things seem to be better again, with valid responses.
The same issue impacted also DNS resolvability check.
Also, if you are running your system such that its supposed to also be acting as a nameserver, have your correctly configured your glue records at your registrar so that your system is internationally recognised as a nameserver? If not, then you need to consider that there are two methods of using a webhosting system…
it runs as a nameserver for all of its virtual hosts (dns registrars for your clients have an ns record pointing at your nameserver (which in this case is also your hosting system). Your servers own Bind dns is directly involved in linking the outside world with the various domains on your hosting system. OR,
your webhosting system is not a nameserver and therefore all virtual host dns registrars must have an “A record” pointing at your hosting server ip address. virtulamin then use the virtual hosts file to resolve each domain request to the appropriate public_html directory on your web server.
I personally do not use option 1 above because
a. i only have a dozen websites on my system
b. i personally manage all the client domains and most of their dns as well…so i can change the A-records at my client registrars at any time should i need to choose a different ipaddress.
c. i dont like the idea of my hosting server also being a nameserver. Always worries me about the implications of an attack on the dns…its also a direct attack on the exact same system that is hosting websites too.
d. dont have the budget to run the standard 5 systems hosting configuration (webhosting server, mx1 email, mx2 backup email, ns1+ ns2 nameservers)