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!

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

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!

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?

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!

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?

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!

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

For that response:

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

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 --> from network interface.

Defaut ip adress for dns records --> 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?

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.

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!

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.

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 “host zonevente.com” 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!

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!

but i dont understand why isnt working.[/quote/ because you have no A record
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.

yes you can have 1 ip, but Error: ns1.zonevente.com (24.202.139.48): Returned REFUSED error for zonevente.com. (A).
For that ip adress : 68.178.232.100
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.
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 "host zonevente.com" in a terminal on the server.
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/
- When i'm querying zonevente.com, i'm querying the root nameservers.
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.


But there is still no A record that holds the address of the server as far as i can see
- If they dont know my ns records they're asking godaddy nameservers..and the same thing until they can return me something..
at godaddy you would have your external IP pointing to the ns1 and ns2 and A records :)
I also readed a couple of times that we need to put an in.arpa adress for the gateway in the soa records.
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..
Is it possible that it's what i need to do to have it working?
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.
Is it also possible that is an ACL problem?
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.
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.


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

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!

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

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!

You're thinking that the problem come from an impossibility for my isp to make glue records because of dhcp resolution?

Your ISP has nothing to do with glue records. A "glue" 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.