2 domains 1 .co.uk 1.com the .com isnt working!

Hi there
i have a problem with virtual i have to web address’s lets call them www.abc.co.uk and www.abc.com the .co.uk works fine but the .com resolves the right ip address but doesnt work and i cant ping it either, anyone have any ideas?

What kind of server did you create for abc.com? If you just want it pointing to the same site as abc.co.uk, you’d create an Alias Server.

I Created 2 seperate servers both with slightly differnt content, the weird thing is when i type it in on my home computers (any of them i get page cannot bee found) but if i use a proxy browser it works fine
and i can also email the .com address, the dns was last updated about 3 days ago so i doubt it could be anything to do with ttl. i have tried clearing the computers DNS cache and even using a fresh install on one machine all to no luck, any ideas
thanks for your response!

Your glue records at your registrar are probably botched somehow–maybe one is pointing to a dead server. NS records can also cause inconsistent behavior.

glue records? the ns record is the name of the server right ns1.abc.co.uk? if i make a new virtual server does it make a new nameserver i.e. ns1.abc.com?

glue records?

The records at your registrar that tells the world where to look for your zone.

See: http://doxfer.com/Webmin/BINDTroubleshootingTools

The bit about whois, in particular.

the ns record is the name of the server right ns1.abc.co.uk?

I don’t know. That’s up to you and your configuration. :wink:

You can find out, though, with the BIND DNS module in Webmin, or you can ask your server:

host -t ns abc.co.uk

For example:

$ host -t ns virtualmin.com
virtualmin.com name server ns0.virtualmin.com.
virtualmin.com name server ns1.virtualmin.com.

But, note that the glue records must match this for everybody to be happy. Virtualmin has no control over glue records. They are provided by your registrar.

if i make a new virtual server does it make a new nameserver i.e. ns1.abc.com?

No, not by default. That would be painful as hell. Springing a name server into existence is a big nuisance, because of the glue records requirement mentioned earlier. Far easier to have two name servers in your favorite domain that you use for all name service for all of your zones. It is transparent to end users, so it doesn’t matter where name service comes from. We use ns0/ns1.virtualmin.com for pretty much all of our zones, and I’ve got them setup as the name servers that are automatically assigned for new zones when I buy new domains at my registrar (usually GoDaddy, though we also use Register.com through our domain registration plugin–which actually can manage glue records, I believe).

I’d suggest you read the BIND section of the Webmin documentation:


It’ll give you a good baseline of knowledge to help you grasp what all of this terminology means, and how Webmin (and thus Virtualmin) interacts with it.

starting to understand a bit better now, so i should have 2 dns servers ns1.abc.com and ns2.abc.com (atleast) so i need a seperate machine to be ns2.abc.com?

oh and forgot to add does the ns2.abc.com also have to run bind or could it run windows based simple dns plus?

The advantage to a second machine for your NS2 is that it offers additional redundancy in your DNS. That said, whether or not you actually use a second machine is optional.

Some folks prefer to setup a second IP on the same box, and assign one IP to NS1 and the other IP to NS2. It does require two IP’s, but it is capable of being on the same server.

If you choose to have a second server, the DNS itself can work regardless of your DNS server choice.

The advantage to Webmin/BIND for your second DNS server is that Webmin can manage it all for you, and do so fairly seemlessly.

ok sorry about the slow reply, if create a new server running centos 5 and install just bind or install webmin, and then what do i do?


Looks like you have really no clue how to admin a server so I’ll point out what the forums are for and what they aren’t for.

The forums are for help with problems with Virtualmin eg; bugs or setup issues – they are not a class room for learning how to admin a server.

If you don’t understand how to admin a server how are you going to offer server support to your customers? Sure VM makes setting up and running websites a lot easier but that does make admining it easy.

Everyone that wants to use VM should know the workings of a server and how things need to be setup without the need of being spoon fed each step.

Now I know I’ll be flamed and yelled at but I see in the future with you and others here that every time you have a server problem/question you will be running here for a answer.

The short answer on getting proper dns up is google or hire a admin or buy a book about BIND and NOT coming here because this forum is NOT a class room for "Server 101".


I just want to verify, before we get too far, that you actually need a DNS server setup (it’s one thing to have BIND running to perform DNS lookups, it’s another to be using it to host DNS records).

You seemed to imply earlier that you have working DNS records somewhere. Are you looking to host a bunch of domains on this server? Or are you just dealing with a small handful that may already have DNS setup somewhere else?

If you’re only talking about a handful of domains that aren’t going to be changing much, most domain registrars provide DNS service for free. You can setup all your DNS records there, you just need to make sure the “nameservers” for each domain are set correctly within the registrar (which is where Joe was going with his post).

And just to clarify what I mean by “nameservers”, you’d want to check out the section in the docs Joe pointed out called “Using Whois to Confirm Glue Records”:


If your nameservers (or glue records as Joe likes to call them :wink: aren’t pointing to where your DNS records currently reside, things won’t work right!

nameservers and glue records are different but the same.

Nameservers is really a server that has BIND installed.
Glue records is not a nameserver in that definition.

Glue records are IP’s that POINT to a nameserver, eg; ns1.virtualmin.com is assigned IP which has been registered, just like a domain name would be, as a registered namerserver domain.

$ owhois nameserver ns1.virtualmin.com

Whois Server Version 2.0

IP Address:
Whois Server: whois.directnic.com
Referral URL: http://www.directnic.com

This is a GLUE record which has been registered to be used in the ROOT nameservers. http://en.wikipedia.org/wiki/Root_server

And root servers ONLY contain 1 record for each domain – The NS records, nothing else.

Thanks for the response from everyone (well nearly, i thought that the newbie part of the forum would be for newbie like questions, and does it really hurt that i am trying to learn and people pointing each other in the right direction can help the community as a whole?) What i have got is a server running virtualmin and i want a secondary server in a different location running a secondary name server i.e. ns2.my-hcs.co.uk, my main problem is at the moment the second location only has a windows machine and unfortuantly i cant get there for a few days, so i have remotly installed simple dns plus but dont no how to tell ns1.abc.co.uk that there is an ns2.my-hcs.co.uk is it by going to the edit master zone of abc.co.uk and clicking on new nameserver and then entering the name and absolute name?

The simple and to-the-point answer…

ns1.my-hcs.co.uk & ns2.my-hcs.co.uk must be registered as a child-nameserver or a host-nameserver depending on who your registrar was.

They must be different IP’s and should be on different networks for redundancy.

There is no other way to explain it.

Second installing webmin on windows is not easy nor do I recommend it. Getting true bind to work on it is not easy.

this is why i went with simple dns plus, i have the same records on both ns1 and ns2 but i dontno what to do now, what kind of record links nameservers?

Looks like you have really no clue how to admin a server so I'll point out what the forums are for and what they aren't for.

Actually, the newbie forums are intended for folks to ask any questions that have–general system administration tasks as they relate to Virtualmin and hosting are certainly welcome.

If the questions are too vague, they’re less likely to get a good response…but even groping questioners that aren’t sure what they need to know are welcome.

Ignore the questions you don’t want to deal with.

if create a new server running centos 5 and install just bind or install webmin, and then what do i do?

It’s your lucky day. There’s documentation for exactly that:


Though there’s still one tricky bit not covered: Springing name servers into existence at your registrar. Some make it easy, some (GoDaddy, for example, who are otherwise a fine registrar) make it a horrible chore.