Setting up DNS with Godaddy

40 posts / 0 new
Last post
#1 Sat, 05/31/2008 - 07:44
PatTzZ

Setting up DNS with Godaddy

Hi Dears!

After creating a new virtual server with virtualmin, i want to set it up to work with the domain name i have at Godaddy.com.

I setted up virtualmin to use dyndns.

I added ns1 and ns2 to the new virtual server zone adresses in BIND.

I setted these last ones into the custom nameservers at Godaddy.com with the auxiliary dns ip of my isp.

It's supposed to need 24 to 48 hours to propagate the dns so i dont want to wait that time to see that is not working.. and doing it 17 times during 1 month.

So, if you can tell me if what i did is ok and why if it's not, it will be really appreciated!

Thanks and Regards!

Sat, 05/31/2008 - 14:57
ronald
ronald's picture

normally I check if dns is okay with this tool
http://www.squish.net/dnscheck/

which generally gives result after 2 hours waiting for propagation if not immediately

Thu, 06/05/2008 - 04:12 (Reply to #2)
ronald
ronald's picture

i have no experience with godaddy and dyndns
the best thing is always to have a static IP but you don't have one.
this is where dyndns comes in and it seems to me it isn't configured correctly since your ns show up and not the ones of dyndns

I'm just thinking outloud now but: "your BIND can not be used as a external nameserver but only internal for your domains. to use for email and such. the rest of the dns must be done by dyndns"

there are other users with experience in dyndns and godaddy and they can advice you much better than I can
Did you do a search in the forum?

Thu, 06/05/2008 - 06:10 (Reply to #3)
ronald
ronald's picture

aha then I take it you are behind a router as well. I would first do and check the following:

at godaddy change the A record to point to you server. this would be the most easiest thing to do.
and
at virtualmin - system settings - Module config - server settings from drop down menu - make sure you set the "Default virtual server IP address" and "Default IP address for DNS records" correct.

then see how that works.
ns records are public records, internal IP wont work as they need to be public.
you can host all domains on 1 single internal IP like 192.168.1.100 though

Thu, 06/05/2008 - 11:53 (Reply to #4)
ronald
ronald's picture

here is an example of a zone file, where xx.xxx.130.15 is my external and also internal IP as I have no router:

$ttl 10H
domain.eu. IN SOA ns1.hostname.nl. postmaster.hostname.nl. (
2008032303
4H
1H
1W
10H )
@ IN NS ns1.hostname.nl.
domain.eu. IN A xx.xxx.130.15
www.domain.eu. IN A xx.xxx.130.15
ftp.domain.eu. IN A xx.xxx.130.15
m.domain.eu. IN A xx.xxx.130.15
mail.domain.eu. IN A xx.xxx.130.15
domain.eu. IN MX 5 mail.domain.eu.
domain.eu. IN TXT "v=spf1 a mx a:domain.eu ip4:xx.xxx.130.15 ?all"
domain.eu. 38400 IN NS ns2.hostname.nl.

Thu, 06/05/2008 - 14:57 (Reply to #5)
ronald
ronald's picture

the zonevente.com has as IP: 68.178.232.100
I guess that is not correct.

You have added your ns1 and ns2 at godaddy, but you do not have 2 machines as a nameserver and registered those 2 machines at the registrar.
So imo telling a registrar your ns records won't help much as no one knows about the IP's of those non-existing nameservers.

What I think you should do is at godaddy, use their nameservers for zonevente.com (I assume this is the FQDN/hostname you used for your machine, something like: server1.zonevente.com)) so use the ns records they give by default.

Then change and add all other records to point to your external IP.
There might be easier ways of doing things but this is how I did it.

All other domains I host I just change the ns records for that domain at the registrar to point to ns1 and ns2 and virtualmin does the rest. As you see the ns records suddenly have an IP and can be found in the internet

A zonevente.com -> my.external.IP.here
A *.zonevente.com -> my.external.IP.here
A ns1.zonevente.com -> my.external.IP.here
A ns2.zonevente.com -> my.external.IP.here
A server1.zonevente.com -> my.external.IP.here
ftp zonevente.com -> my.external.IP.here
mx5 zonevente.com -> server1.zonevente.com
CNAME pop3.zonevente.com -> server1.zonevente.com
CNAME mail.zonevente.com -> server1.zonevente.com
CNAME smtp.zonevente.com -> server1.zonevente.com
CNAME pop.zonevente.com -> server1.zonevente.com
PTR sv01.zonevente.com -> my.external.IP.here

when your dynamic IP changes then obviously you have to log in at godaddy and change the IP.

Thu, 06/05/2008 - 19:24 (Reply to #6)
ronald
ronald's picture

<div class='quote'>but i dont understand why isnt working.[/quote/
because you have no A record

<div class='quote'>Is it only because i dont have 2 ip adresses with 2 nameservers?[quote]
no you can have 1 IP but you have now
Referral: zonevente.com is at ns1.zonevente.com (24.202.139.48)
Referral: zonevente.com is at ns2.zonevente.com (24.200.241.37)

[quote]I readed on some wesites that is possible to use only 1 adress.
</div>
yes you can have 1 ip, but
Error: ns1.zonevente.com (24.202.139.48): Returned REFUSED error for zonevente.com. (A).

<div class='quote'>For that ip adress : 68.178.232.100</div>
that is still the A record for your domain at go daddy
you can see it here http://whois.domaintools.com/zonevente.com and see:
Server Data
IP Address: 68.178.232.100
it could be that propagation hasn't come through but I have no oversight on what is happening on your box.

<div class='quote'>Did you tried with that tool?
http://pingability.com/zoneinfo.jsp
With that tool, i see my external ip adress.
I also see the same ip when i'm doing a &quot;host zonevente.com&quot; in a terminal on the server.</div>
yes but you still have no A record, the A record is the address of the server. and i prefer http://www.squish.net/dnscheck/

<div class='quote'>- When i'm querying zonevente.com, i'm querying the root nameservers.</div>
that is because .com is a world domain/ggTLD
If you had a ccTLD for a country then it would (also) query your own nameservers

[quote- If they have my ns records in their registry, they're returning me my external ip and it's ok.</div>
But there is still no A record that holds the address of the server as far as i can see

<div class='quote'>- If they dont know my ns records they're asking godaddy nameservers..and the same thing until they can return me something..</div>
at godaddy you would have your external IP pointing to the ns1 and ns2 and A records :)

<div class='quote'>I also readed a couple of times that we need to put an in.arpa adress for the gateway in the soa records.</div>
it must resolve to a name, so that you won't be on a spamblock list easily. Best thing is when you have a static IP and then ask your ISP to add it..

<div class='quote'>Is it possible that it's what i need to do to have it working?</div>
first start with all the records I posted. and again there might be better ways, but it is how i did it and its working great for me.

<div class='quote'>Is it also possible that is an ACL problem?</div>
i don't see how at the moment, but the refuse error might be a bit bothersome as i don't know where it is coming from.

Thu, 06/05/2008 - 19:38 (Reply to #7)
ronald
ronald's picture

<div class='quote'>A question is... my ip is dynamic, so, i cant use it for these name servers in godaddy.

I readed somewhere that i only need to put my isp dns in it... thats what i did.</div>
your ISP dns you can put in the networking section of webmin not at go daddy. I dont see how that would work actually. Your ISP doesn't know about your domain name and ns records, go daddy does

If my suggestion doesn't work for some reason then you would need the help of a specialist like Joe or Jamie

Thu, 06/12/2008 - 03:48 (Reply to #8)
ronald
ronald's picture

actually the question is logical from a non english speaker point of view or per haps from a non specialist point of view.

because as the way of thinking goes -&gt;ip needs to be static -&gt;dyndns provides the correct route, so that must be converting non-static to static and if ns1.dyndns.org has an IP then why not use their IP for glue. hehe and that can not work as the IP's keeps changing dynamically, that is why they are called Dyndns

If you try that service and check with a tool as intodns.com you will notice that everytime you call the domain, it has a set of IP's that constantly change.

if your IP changes once a month or every three months you can use that to experiment with at home, but not for hosting purposes. If it changes more often then you will need to get a static IP from your provider, although likely this will be expensive.

I don't think that terms like &quot;wasting time&quot; is appropriate at all. As a registered member one can ask questions and keep asking until the clouds in the head disappear.
As a member you can also choose not to answer and simply go on with your own business. There is no need ever to be rude.

Fri, 06/13/2008 - 00:00 (Reply to #9)
sgrayban

GLUE records requires a IP. That is a RFC.

Second you are right Joe, I have no patience when I have answered the question and I get repeated question again.

DNS servers <b>can not</b> be run correctly under a dynamic IP. This is why root servers all have dedicated IP's.

Frankly english barrier or not GLUE records has been an established RFC for over 15 years.

Fri, 06/13/2008 - 00:02 (Reply to #10)
sgrayban

And it IS 'wasting' my time and everyone elses when this user just can't get his &quot;yes&quot; answer and needs to keep complaining about everyones answers. I take that as *if* they are calling me a idiot and they are the ones asking in 2 locations and getting the same flippin answers.

Sun, 06/07/2009 - 07:33 (Reply to #11)
jdamron

Well if it is a waste of your time for someone to learn then don&acirc;

Sun, 06/07/2009 - 07:33 (Reply to #12)
jdamron

Well if it is a waste of your time for someone to learn then don&acirc;

Sat, 05/31/2008 - 16:59
PatTzZ

If you're hosting at home, are you supposed to see your computer ip now after only 2 hours ?

I can only see which name servers i registered for that domain name in my godaddy control panel.

ns1.myserver.com
ns2.myserver.com

A question is... my ip is dynamic, so, i cant use it for these name servers in godaddy.

I readed somewhere that i only need to put my isp dns in it... thats what i did.

I'm using dyndns like i said and setted up virtualmin to work with but i cannot use an url for the name servers... so.. thats why i'm not sure if what i did is ok.

Thanks for the support!

Sat, 05/31/2008 - 17:27
PatTzZ

By the way,, i can also see my isp dns that i setted up for the name servers.

Do i absolutly need a static ip pointing to my computer to set in godaddy for my domain name servers or my bind server will propagate them trought my network and trought my isp by port 53 and it will work in 1 or 2 days?

Thu, 06/05/2008 - 00:58
PatTzZ

I'm sorry to didnt edit my previous post but you probably know that i can't.

I'm on the right way now with BIND but i'm not enough experienced to know what is my bugs so if you can help, i will appreciate.

This is what dns check of http://pingability.com/zoneinfo.jsp is telling me:

Warning zonevente.com does not have an IP Address (A) record

Heads-up There is no 'www' subdomain for zonevente.com

Heads-up The A record localhost.zonevente.com. pointing to 127.0.0.1 is a within private address space. This IP is not reachable from the Internet.

Information zonevente.com./my-external-ip is located in Canada (CA)

Information localhost.zonevente.com./127.0.0.1 is located in N/A (--)

Heads-up localhost.zonevente.com. points to 127.0.0.1, which has no 1.0.0.127.in-addr.arpa PTR record .

For the 127.0.0.1 adress, there's already an information in the 127.0.0.1 zone for pointing to 1.0.0.127.in-addr.arpa PTR record.

There's also an A record for www. in monsite.com.

For the ip adress (A record) of monsite.com, there's also an instruction in the adresses of this one..

I restarted BIND. Restarted the computer. Tried 329874897 other things.

If i can get some help, it will be appreciated!

See ya!

Thu, 06/05/2008 - 05:25
PatTzZ

I'm sorry to confused you with dyndns and godaddy. They have nothing to see in that... i think.

I'm using my external ip given by my isp(dynamic but dont change often) to understand well what i'm doing before taking a static ip.

for the ns1, i took my external ip.

for the ns2, i took dns of my isp (stop to work when i'm using my same external ip for the two ns).

An idea for the previous problem?

Thanks!

Thu, 06/05/2008 - 07:46
PatTzZ

For that response:

&quot;at godaddy change the A record to point to you server. this would be the most easiest thing to do&quot;.

If i want to host someone who's needing to have my dns for pointing his domain to my computer,, can i if i do it like that?

About my settings, there they are.

In the virtualmin module configuration i have the followings:

Defaut virtual server ip adress --&gt; from network interface.

Defaut ip adress for dns records --&gt; same as virtual server ip.

In the virtualmin virtual servers panel, i setted up dynamic ip update to have my external ip adress pointing to the server behind the router.
(for sure, i forwared the corect ports to the corect adresses).

I opened ports 53 and 5353 in my linux firewall.

I can see that the dns query is answered by my server because of the 127.0.0.1 error.

When i put my external ip for localhost.zonevente.com A record in BIND, the query dont tell that error anymore.

What's the better thing to do?

Thu, 06/05/2008 - 14:14
PatTzZ

I tried it with exactly the same settings than you and it told me the same error.

There's no ip adress for that domain, no www. for that domain and no SOA records.

I'm sorry to post a lot like that but i want to understand.

I'm reading, trying, reading, asking and i didnt had great victory for now.

It will probably coming soon with your help!

;p

Thanks!

Thu, 06/05/2008 - 17:04
PatTzZ

That's nice and i will follow your instructions if i dont have other choice but i dont understand why isnt working.

Is it only because i dont have 2 ip adresses with 2 nameservers?

I readed on some wesites that is possible to use only 1 adress.

For that ip adress : 68.178.232.100

I dont understand why you have that old one from godaddy.

Did you tried with that tool?

http://pingability.com/zoneinfo.jsp

With that tool, i see my external ip adress.

I also see the same ip when i'm doing a &quot;host zonevente.com&quot; in a terminal on the server.

My goal isnt just to have it working. I want to understand well what i'm doing.

If i'm on the right way, tell it to me please.

- When i'm querying zonevente.com, i'm querying the root nameservers.

- If they have my ns records in their registry, they're returning me my external ip and it's ok.

- If they dont know my ns records they're asking godaddy nameservers..and the same thing until they can return me something..

Is it right?

and

I also readed a couple of times that we need to put an in.arpa adress for the gateway in the soa records.

Is it possible that it's what i need to do to have it working?

I appreciate your help!

Thu, 06/05/2008 - 17:15
PatTzZ

By the way, with www.network-tools.com i can either see my external ip for ns1.zonevente.com but i received an error message who's telling me query refused.

Is it also possible that is an ACL problem?

Sorry to ask so many questions in the same time!

Fri, 06/06/2008 - 06:21
PatTzZ

Thanks a lot Ronald!

I did few tests yesterday night but without good results.

I will retry that later today and i'll come back to telling you what's happened.

Maybe that like sgrayban said, Fedora often goes wrong...

Regards!

Fri, 06/06/2008 - 23:12 (Reply to #22)
sgrayban

Why don't you just buy a couple ip's from your ISP ?

Sun, 06/08/2008 - 18:40
PatTzZ

Hi Dears!

Sorry to didnt came back before.

I didnt worked on it this week end. I got some bad news and need to transform myself in accounter for few days.

In answer to Sgrayban:

I dont want to buy a couple of ip from my isp now because its 100$ more than what it cost me actually and additionally, i think that i'm not ready to run a production server now.

I'm a dummy with linux and i want to understand it well before investing in it. ( i know that bind have nothing to see with linux but thats all new for me).

Why did you ask me about it? You're thinking that the problem come from an impossibility for my isp to make glue records because of dhcp resolution?

I'll come back to you with fresh news soon.

Thanks and regards!

Mon, 06/09/2008 - 14:41 (Reply to #24)
Joe
Joe's picture

<div class='quote'>You're thinking that the problem come from an impossibility for my isp to make glue records because of dhcp resolution?</div>

Your ISP has nothing to do with glue records. A &quot;glue&quot; record is what your registrar uses to connect your domain name service zone to your domain name server. You cannot run a DNS server on a dynamic address (at least not reliably).

You can, however, use Virtualmin's DynDNS.org support. You would then point the glue records (at your registrar) to the DynDNS name servers, and configure Virtualmin to keep your DynDNS records up to date.

--

Check out the forum guidelines!

Tue, 06/10/2008 - 00:57 (Reply to #25)
sgrayban

But.... Glue record changes takes much longer then normal dns updates, up to 24 hours compared to 1-8 hours for normal dns. The reason is because the root servers only update twice a day and I know a couple only do it once a day.

Mon, 06/09/2008 - 18:04
PatTzZ

Ok. Thanks a lot Joe!

That's very interesting.

I asked dyndns to know if it's possible to create a name server with their free domain (like ns1.mywebsite.webhop.net) but they told me not because of an impossibility to make glue records.

It's really nice an easier if i can do it like you said.

I will try all that this week and come back soon to tell you what's happened.

Best Regards!

Tue, 06/10/2008 - 17:59
PatTzZ

Hi!

I tried to make glue records at my registrar (godaddy) but i cant use domain names to point to.

I can only use ip adresses.

Tue, 06/10/2008 - 21:56 (Reply to #28)
sgrayban

That's right. Glue records REQUIRE IP's because those are synced to the root name servers, eg; A.ROOT-SERVERS.NET

Wed, 06/11/2008 - 02:46
PatTzZ

Finally, is it possible to use dyndns to point to my BIND or not?

Wed, 06/11/2008 - 11:34 (Reply to #30)
Joe
Joe's picture

<div class='quote'>Finally, is it possible to use dyndns to point to my BIND or not?</div>

Hmmm...I have no idea, though I imagine you could. But, why would you? The point of the DynDNS support in Virtualmin is so that DynDNS.org provides your DNS service.

As I said earlier, it is not possible to reliably run a name server on dynamic IP. So the simple solution is to <i>not run a DNS server on a dynamic IP</i>. Let DynDNS provide your DNS service, and let Virtualmin setup the IP synchronization so that DynDNS mostly knows where your server is.

--

Check out the forum guidelines!

Wed, 06/11/2008 - 14:49
PatTzZ

Oh ok.

My router is already setted up to use dyndns, so, i dont need ton configure it in virtualmin.

What i wanted to do is finding a way to bypass dynamic ip for ns but it's seem's to be impossible.

For a last chance, i will try Ronald solution this week and come back to telling you what's happenend.

Thanks a lot friends!

Wed, 06/11/2008 - 15:26 (Reply to #32)
sgrayban

You asked this same stuff on DynDNS forum and they gave you the same answer we did.

Posted: Tue Jun 10, 2008
http://dyndnscommunity.com/forum/viewtopic.php?f=17&amp;p=1617

Not wanting to be rude here but you have wasted not just our time but yours.

No matter where you ask you will get the same answer so please - please stop.

DNS server requires a static IP plain and simple and more so if you are going to use VM since it controls the dns directly.

Wed, 06/11/2008 - 15:29 (Reply to #33)
sgrayban

6 months wasted trying to get a &quot;yes&quot; answer and you could have bought a IP by now.

un-subscribing from this thread because its wasting my time.

Wed, 06/11/2008 - 16:04 (Reply to #34)
Joe
Joe's picture

I suspect we're working against a language barrier (I'm pretty sure English is not PatTzZ' native tongue), in addition to a bit of inexperience on the part of PatTzZ, rather than any intent to waste folks time.

Scott's right that it's generally considered good form to let people know when you're discussing the same issue in multiple locations (and conversely, bad form to post the same question to multiple locations without letting everyone know). In this case, a lot of folks did spend a lot of time trying to help, and it's likely that spending a little time digesting their answers (which were almost universally correct both here and at the DynDNS forums) would have saved everybody some time. Reading some documentation never hurts, either...there's quite a lot of really good documentation about DNS in a lot of different places, just a Google search away. (And the Webmin wiki also has some great BIND coverage written by Jamie, me, and some other folks.)

--

Check out the forum guidelines!

Wed, 06/11/2008 - 17:08
PatTzZ

It may be a good thing to take a look at the date on the other posts before telling that i make you loose your time...

It was yesterday and it was because Joe told me to point glue records to dyndns..

When i'm learning something, i appreciate to have opinion from different people.. maybe that's stupid.. sorry.

Thanks for the support and dont be worry, i will find answers by myself next time.

Regards!

Wed, 06/11/2008 - 22:56 (Reply to #36)
sgrayban

It was NOT yesterday -- you asked this same question on the DynDNS forum at http://dyndnscommunity.com/forum/viewtopic.php?f=17&amp;p=1617

And we told you the answer !! 4-5 times PLUS the dyndns people did as well.

YOU MUST HAVE A STATIC IP ---- there is now way around this at all.

You are wasting everyones time on this.

DynDNS only works for A records NOT -- I repeat NOT for GLUE records.

Cessez de perdre notre temps!

Wed, 06/11/2008 - 23:31 (Reply to #37)
Joe
Joe's picture

Relax, Scott. We're all just trying to make things work and learn something new. PatTzZ hasn't committed any great crime, he's just having trouble understanding how DNS works. We have a lot of folks who don't grok DNS the first (or second, or third) time around. It seems to be one of those topics that's just too boring to spend enough time studying for most folks. You and I are weird enough to have found it interesting, so we didn't fall asleep when we read about how it works.

PatTzZ, you're welcome to ask any question you have (dumb or otherwise). That's what the forums are for. Scott's not renowned for his patience. Knowledge, perhaps, but not so much patience. ;-)

I will say, however, that taking the time to actually understand DNS is probably the single best thing any web developer, system administrator, or even web designer, can do for their future productivity. The O'Reilly DNS and BIND book is the first one I recommend to <i>anyone</i> wanting to work with networked systems. The sections of the Webmin wiki on the topic are &quot;light reading&quot; in contrast, but will at least give you the basics.

--

Check out the forum guidelines!

Tue, 12/02/2008 - 12:39
Joe
Joe's picture

This thread is 6 months old. Let it rest.

Thanks.

--

Check out the forum guidelines!

Tue, 12/02/2008 - 13:37 (Reply to #39)
jdamron

sorry