View Full Version : configuring my own DNS : Am I wrong ?
burtathis
7th March 2006, 14:02
Hi,
I want to use my own DNS, so when i bought a new domain (petiteboitesansfond.net) i put this infos in configuration pannel of ovh.net (my registrar) :
- I put one entry :
ns1.petiteboitesansfond.net A 82.227.0.130
- I waited a while and i add a host :
ns1.petiteboitesansfond.net with IP= 82.227.0.130
- And finally i change the DNS entry to :
primary : ns1.petiteboitesansfond.net
secondary : dns.ovh.net
- After that, i made a new website in ispconfig with :
co-domain : 192.168.0.5 ns1 petiteboitesansfond.net
- And, in the domain :
primary : ns1.petiteboitesansfond.net
secondary : dns.ovh.net
Now, when i ping ns1.petiteboitesansfond.net, it is unreachable and it show my internal IP (192.168.0.5).
Of course i can't reach http://petiteboitesansfond.net or http://www.petiteboitesansfond.net
Did i forgot some steps ?
Thanks in advance !
till
7th March 2006, 19:26
The problem with this setup is, that you have only one domain.
It is not possible that the nameserver of a domain (petiteboitesansfond.net) is only reachable by the domain itself or a subdomain (ns1.petiteboitesansfond.net).
Thats the Hen <==> Egg problem :)
If you have only one domain, I recommend that you create the A and MX records for petiteboitesansfond.net in the DNS servers of your registrar ovh.net and do not use your local DNS manager in ISPConfig. If you get a second domain, you can configure the second domain in ISPConfig DNS-Manager without problems.
burtathis
7th March 2006, 21:55
Thanks !
It's funny ! i had this feeling about the "hen-egg" problem...
So, to be sure i understood : if i have a domain aaa.org and a second domain bbb.org,
can i use for aaa.org :
primary DNS : bbb.org
secondary DNS : aaa.org
and for bbb.org :
primary DNS :aaa.org
secondary DNS : bbb.org
I am sorry, i only start to put my nose in those "concepts" but feel it still the same aviary problem !
till
7th March 2006, 22:05
Not completely, but better :) You must think of DNS as something like an addressbook. Its useless if you ask "where is the address book" and the actual location of the address book is noted in the address book itself.
So:
if you have aaa.org and bbb.org:
Configure aaa.org at your registrars DNS, set an A-Record ns1.aaa.org pointing to your server IP and an A-Record ns2.aaa.org, pointing to your secondary DNS servers IP or in case you own only one server, let ns2.aaa.org point also to your servers IP address.
Now if you get domain bbb.org, you can set the primary DNS to ns1.aaa.org and the secondary DNS to ns2.aaa.org.
On your server, you create a primary DNS Record for bbb.org.
If you enter now bbb.org in a browser, the nameserver on your server will be asked for the correct IP for bbb.org and its subdomains.
falko
7th March 2006, 22:59
This post might help you: http://www.howtoforge.com/forums/showpost.php?p=6292&postcount=4
burtathis
8th March 2006, 20:26
Thanks Till and Falko,
I follow all your advises and i pay attention to put external IP for the DNS entry in ispconfig.
When i ping http://gastfall.org it show the good external IP and when i make a whois gastfall.org, it show the good entries for dns :
Name Server:NS1.PETITEBOITESANSFOND.NET
Name Server:NS2.PETITEBOITESANSFOND.NET
but... the website still unreachable outside my network
any clues ?
falko
8th March 2006, 21:21
but... the website still unreachable outside my network
It's working for me. Is this your IP address? 82.227.0.130
You might have to wait up to 72 hours until DNS changes propagate over the internet.
burtathis
8th March 2006, 21:53
Realy ? do you see gastfall.org ? great !!
and, yes 82.227.0.130 it's my IP !
ok, ok ! i'm forced to watch tv for 72h :D
Thanks a lot
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.