LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-10-2016, 02:15 PM   #1
vincix
Senior Member
 
Registered: Feb 2011
Distribution: Ubuntu, Centos
Posts: 1,240

Rep: Reputation: 103Reputation: 103
taking control of zone from godaddy registered domain


I've bought a godaddy domain and I have changed (or tried to) the nameservers to my nameserver, which is bind running on a Centos 7.

For whomever is familiar with the Godaddy interface, I added two hostnames (ns1 and ns2.example.com) which I associated with my server's ip address, and then I changed the nameservers from the default ones (provided by Godaddy - ns.domaincontrol.com or thereabouts) to ns1.example.com and ns2.example.com. I'm currently not using the latter.

I configured my zone, as follows:
Code:
$ORIGIN example.com.
$TTL 86400
@	IN	SOA	ns1.example.com.	admin.example.com. (
		2016041002;
		12800;
		15;
		86400;
		12800;
		)

	IN	NS	ns1.example.com.
	IN	MX	10	mail.example.com.
ns1	IN	A	1.2.3.4
	IN	A	1.2.3.4
www	IN	A	1.2.3.4
mail	IN	A	1.2.3.4
test	IN	A	1.2.3.4
The weird thing that is happening now is that example.com isn't associated with my public ip, and neither is test.example.com. However, mail and www did work for some time - I could use nslookup, dig, etc. and they were associated with my server's ip address.

So I couldn't figure out why example.com didn't work. When I tried using dig example.com, a line similar to this showed up:
example.com. IN SOA ns40.domaincontrol.com etc.

Now when I use dig, I get the following line:
com. 900 IN SOA a.gtld-servers.net. nstld.verisign-grs.com. 1460315487 1800 900 604800 86400


Now, mail, www don't work anymore either. So the association might have been created only for a short timespan and then the information was transferred to this a.gtld-servers.net.

I am aware that not enough time might have passed, but I'm not sure if this is the case. So I'm trying to make heads or tails of the whole thing.

Any suggestions?

Last edited by vincix; 04-10-2016 at 02:19 PM.
 
Old 04-10-2016, 02:46 PM   #2
vincix
Senior Member
 
Registered: Feb 2011
Distribution: Ubuntu, Centos
Posts: 1,240

Original Poster
Rep: Reputation: 103Reputation: 103
I have just realised that my second query was an error. I was querying a different non-existent domain. Now, even though I still don't receive any answers from example.com, or www.example.com, or mail.example.com, if I try using dig, then I get the line defined in my own zone:

example.com. 1450 IN SOA ns1.example.com. admin.example.com. 2016041001 12800 15 86400 12800
So that should be fine, but my queries are left answered. Is this simply a matter of time?
 
Old 04-11-2016, 02:03 AM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by vincix View Post
I have just realised that my second query was an error. I was querying a different non-existent domain. Now, even though I still don't receive any answers from example.com, or www.example.com, or mail.example.com, if I try using dig, then I get the line defined in my own zone:

example.com. 1450 IN SOA ns1.example.com. admin.example.com. 2016041001 12800 15 86400 12800
So that should be fine, but my queries are left answered. Is this simply a matter of time?
What happens if you query directly your dns for these hosts? E.g:
Code:
dig example.com @ns1.example.com
 
Old 04-11-2016, 01:54 PM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Code:
for i in ns1_ip ; do dig @$i example.com +short ; done
will show you the A Record assigned on the sole nameserver, (ns1.example.com).

FWIW: It seems you did everything correctly at GD.
Same process I used to edit nameserver A records today on 4 domains.

Hit save, wait < ~5m and bingo.
The splash says "up to 48 hours, blah-lie blah-lie"

Last edited by Habitual; 04-11-2016 at 02:01 PM.
 
1 members found this post helpful.
Old 04-11-2016, 03:48 PM   #5
vincix
Senior Member
 
Registered: Feb 2011
Distribution: Ubuntu, Centos
Posts: 1,240

Original Poster
Rep: Reputation: 103Reputation: 103
Quote:
Originally Posted by Habitual View Post
Code:
for i in ns1_ip ; do dig @$i example.com +short ; done
will show you the A Record assigned on the sole nameserver, (ns1.example.com).

FWIW: It seems you did everything correctly at GD.
Same process I used to edit nameserver A records today on 4 domains.

Hit save, wait < ~5m and bingo.
The splash says "up to 48 hours, blah-lie blah-lie"
Indeed, all I needed was time. It's working fine now.

Thanks
 
Old 04-11-2016, 05:29 PM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by vincix View Post
Indeed, all I needed was time. It's working fine now.

Thanks
I'm waiting on my last 2 domains now...
Glad it worked out for you.
 
  


Reply

Tags
dns, namedconf



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
How to configure a Linux Lamp server and a godaddy domain name? mrapp Linux - Server 2 04-07-2015 04:06 PM
Just registered. entered wrong time zone remorque LQ Suggestions & Feedback 3 12-01-2014 05:32 PM
Apache - Changing port for Godaddy's Simple Control Panel strimp099 Linux - Server 1 04-11-2011 01:57 PM
*.domain.com Wildcard SSL issues (Godaddy WHM/Cpanel) chetanmadaan Linux - Software 1 06-18-2010 10:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:02 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