LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-29-2014, 08:52 AM   #1
debbb
LQ Newbie
 
Registered: Sep 2014
Posts: 2

Rep: Reputation: Disabled
Help with DNS problem and Webmin


Hi, I have a problem with DNS of my VPS.

I bought a VPS and I would like my domain.com on this VPS.

My domain.com is registered with other hosting and I changed nameservers to ns1.mydomain.com and ns2.mydomain.com

With Webmin I have installed BIND DNS and followed this tutorial: http://www.serverpronto.com/kb/page....S+Using+Webmin

In create master zone:
  • Domain name / Network: domain.com
  • Master server: domain.com
  • Email address: my gmail address
  • IP address for template records: IP of my VPS
  • Check "Add NS record for master server?"
  • Refresh time: 30 minutes

I follow all guide but I don't see site with mydomain.com..always and only with IP of VPS..
I have to create a Virtual Host?

Thank you in advance and sorry for my English
 
Old 09-29-2014, 11:02 AM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Welcome to LQ:

Quote:
Originally Posted by debbb View Post
I changed nameservers to ns1.mydomain.com and ns2.mydomain.com
Change the A Record of those 2 at the IP of your VPS.
Are ns1 and ns2 on your VPS?

Example:
Code:
host -t ns domain.com
domain.com name server ns3.domain.com.
domain.com name server ns2.domain.com.
The A Record (VPS IP) has to be correct on both ns3 and ns2.domain.com

wrt:
Quote:
Originally Posted by debbb View Post
I have to create a Virtual Host?
Yes, apache needs to be configured for domain.com on the VPS.

Last edited by Habitual; 09-29-2014 at 11:11 AM.
 
Old 09-30-2014, 10:10 AM   #3
debbb
LQ Newbie
 
Registered: Sep 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thank you very much, then I have used only A Address from manage DNS page of the registrar, because I have registrar different from hosting of VPS.

Is it the same thing?

Thanks
 
Old 09-30-2014, 01:04 PM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Debbb:

Regardless of Registrar you use, if you want the site to resolve to your VPS then there has to be the VPS's IP as the A Record entry in each of the (up to 3) nameservers. Most configurations only use 2 nameservers and this is OK.

Let's use an example to illustrate what needs to happen.

I'll 'ask' the internet for the nameservers of debbb.com
Code:
host -t ns debbb.com
debbb.com name server dns11.hichina.com.
debbb.com name server dns12.hichina.com.
and now I'll ask each of the nameservers for the A Record of the domain called debbb.com (getting fancy here with code)
Code:
host -t ns debbb.com | while read dom ns server; do dig +short $dom; done
223.7.1.107
223.7.1.107
Each nameserver says the IP of debbb.com is 223.7.1.107.

Next I'll use the "host" command from a terminal for the record for debbb.com
Code:
host debbb.com
debbb.com has address 223.7.1.107
The process will contact (simplified) the first nameserver and if it can't reach the first one, it will ask the second one for the A Record.

223.7.1.107 is the A Record from each of the nameservers and this is where the internet gets pointed to when it asks for debbb.com

This A Record should be the IP of your VPS.

With regard to nameservers, You can use the nameservers provided by the Domain Registrar. Most, if not all Domain Registrars will allow you to point the A Record to any host you desire. Yours should be the assigned public IP of your VPS.

Take my domain, for example: bournetoraiseshell.com, you'll see that I registered at GoDaddy and my nameservers are the ones provided by GoDaddy.
Each of those 2 nameservers has an A Record for bournetoraiseshell.com that points to my actual server.

Please refer to http://www.dashsystems.com/TIP_DNS-explanation.cfm for further explanation.

I hope that's helpful.

Edit:
Quote:
Originally Posted by debbb View Post
Thank you very much, then I have used only A Address from manage DNS page of the registrar
That A Record for the domain (at the Domain Registrar) for both ns1.mydomain.com and ns2.mydomain.com should be the public IP of your VPS.

Last edited by Habitual; 09-30-2014 at 01:11 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] webmin dns vignesh_murali2003 Linux - Newbie 1 06-12-2013 03:03 AM
DNS, webmin and me augurseer Linux - Networking 6 05-17-2006 01:38 PM
Using WebMin to administer DNS depdiver Linux - Networking 1 04-21-2005 06:34 PM
webmin and DNS help Fredstar Linux - Newbie 4 12-08-2004 09:35 AM
BIND-DNS with Webmin problem baz2 Linux - Networking 1 10-18-2004 01:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration